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, tryToAdd
buildComposite, buildComposite, buildSingle, buildSingle, configure, handleSettings
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public FileSystemPipesIterator()
public FileSystemPipesIterator(Path basePath)
protected void enqueue() throws InterruptedException, IOException, TimeoutException
enqueue
in class PipesIterator
InterruptedException
IOException
TimeoutException
public void checkInitialization(InitializableProblemHandler problemHandler) throws TikaConfigException
checkInitialization
in interface Initializable
checkInitialization
in class PipesIterator
problemHandler
- if there is a problem and no
custom initializableProblemHandler has been configured
via Initializable parameters,
this is called to respond.TikaConfigException
public void initialize(Map<String,Param> params) throws TikaConfigException
initialize
in interface Initializable
initialize
in class PipesIterator
params
- params to use for initializationTikaConfigException
@Field public void setCountTotal(boolean countTotal)
public void startTotalCount()
startTotalCount
in interface TotalCounter
public TotalCountResult getTotalCount()
TotalCounter
TotalCountResult.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 TotalCounter
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2007–2022 The Apache Software Foundation. All rights reserved.