public class IndexListenerReportConsole extends IndexListener
Constructor and Description |
---|
IndexListenerReportConsole() |
Modifier and Type | Method and Description |
---|---|
void |
charsDone(long charsDone)
Some number of characters has been processed.
|
boolean |
errorOccurred(Throwable e,
String path,
File f)
Report an error and decide whether to continue or not.
|
void |
indexEnd()
The indexing process ended
|
void |
warning(String msg) |
closeEnd, closeStart, documentDone, documentStarted, fileDone, fileStarted, getCharsProcessed, getCloseTime, getDocsDone, getErrors, getFilesProcessed, getIndexStartTime, getIndexTime, getOptimizeTime, getTokensProcessed, getTotalTime, indexerClosed, indexerCreated, indexStart, luceneDocumentAdded, rollbackEnd, rollbackStart, tokensDone
public void charsDone(long charsDone)
IndexListener
charsDone
in class IndexListener
charsDone
- the number of characters processed since the last callpublic void indexEnd()
IndexListener
indexEnd
in class IndexListener
public boolean errorOccurred(Throwable e, String path, File f)
FileProcessor.ErrorHandler
errorOccurred
in interface FileProcessor.ErrorHandler
errorOccurred
in class IndexListener
e
- the exceptionpath
- path to the file that the error occurred in. This includes
pathing in archives if the file is inside an archive.f
- (optional, if known) the file from which the InputStream was built,
or - if the InputStream is a file within an archive - the archive.public void warning(String msg)
warning
in class IndexListener
Copyright © 2020 Instituut voor Nederlandse Taal (INT). All rights reserved.