public class FileSystemPipesIterator extends PipesIterator implements TotalCounter, Initializable, Closeable
COMPLETED_SEMAPHORE, DEFAULT_MAX_WAIT_MS, DEFAULT_QUEUE_SIZE| Constructor and Description |
|---|
FileSystemPipesIterator() |
FileSystemPipesIterator(Path basePath) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkInitialization(InitializableProblemHandler problemHandler) |
void |
close() |
protected void |
enqueue() |
TotalCountResult |
getTotalCount()
Returns the total count so far.
|
void |
initialize(Map<String,Param> params) |
void |
setBasePath(String basePath) |
void |
setCountTotal(boolean countTotal) |
void |
startTotalCount() |
build, call, getEmitterName, getFetcherName, getHandlerConfig, getOnParseException, iterator, setEmitterName, setFetcherName, setHandlerType, setMaxEmbeddedResources, setMaxWaitMs, setOnParseException, setOnParseException, setParseMode, setParseMode, setQueueSize, setWriteLimit, tryToAddbuildComposite, buildComposite, buildSingle, buildSingle, configure, handleSettingsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic FileSystemPipesIterator()
public FileSystemPipesIterator(Path basePath)
protected void enqueue()
throws InterruptedException,
IOException,
TimeoutException
enqueue in class PipesIteratorInterruptedExceptionIOExceptionTimeoutExceptionpublic void checkInitialization(InitializableProblemHandler problemHandler) throws TikaConfigException
checkInitialization in interface InitializablecheckInitialization in class PipesIteratorproblemHandler - if there is a problem and no
custom initializableProblemHandler has been configured
via Initializable parameters,
this is called to respond.TikaConfigExceptionpublic void initialize(Map<String,Param> params) throws TikaConfigException
initialize in interface Initializableinitialize in class PipesIteratorparams - params to use for initializationTikaConfigException@Field public void setCountTotal(boolean countTotal)
public void startTotalCount()
startTotalCount in interface TotalCounterpublic TotalCountResult getTotalCount()
TotalCounterTotalCountResult.getStatus()
to figure out if the count has completed yet, if it is unsupported or if
there was an exception during the counting.getTotalCount in interface TotalCounterpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2007–2022 The Apache Software Foundation. All rights reserved.