Class FileSystemPipesIterator
java.lang.Object
org.apache.tika.config.ConfigBase
org.apache.tika.pipes.pipesiterator.PipesIterator
org.apache.tika.pipes.pipesiterator.fs.FileSystemPipesIterator
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Iterable<FetchEmitTuple>
,Callable<Integer>
,Initializable
,TotalCounter
public class FileSystemPipesIterator
extends PipesIterator
implements TotalCounter, Initializable, Closeable
-
Field Summary
Fields inherited from class org.apache.tika.pipes.pipesiterator.PipesIterator
COMPLETED_SEMAPHORE, DEFAULT_MAX_WAIT_MS, DEFAULT_QUEUE_SIZE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
checkInitialization
(InitializableProblemHandler problemHandler) void
close()
protected void
enqueue()
Returns the total count so far.void
initialize
(Map<String, Param> params) void
setBasePath
(String basePath) void
setCountTotal
(boolean countTotal) void
Methods inherited from class org.apache.tika.pipes.pipesiterator.PipesIterator
build, call, getEmitterName, getFetcherName, getHandlerConfig, getOnParseException, iterator, setEmitterName, setFetcherName, setHandlerType, setMaxEmbeddedResources, setMaxWaitMs, setOnParseException, setOnParseException, setParseMode, setParseMode, setQueueSize, setThrowOnWriteLimitReached, setWriteLimit, tryToAdd
Methods inherited from class org.apache.tika.config.ConfigBase
buildComposite, buildComposite, buildSingle, buildSingle, configure, handleSettings
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
FileSystemPipesIterator
public FileSystemPipesIterator() -
FileSystemPipesIterator
-
-
Method Details
-
setBasePath
-
enqueue
- Specified by:
enqueue
in classPipesIterator
- Throws:
InterruptedException
IOException
TimeoutException
-
checkInitialization
public void checkInitialization(InitializableProblemHandler problemHandler) throws TikaConfigException - Specified by:
checkInitialization
in interfaceInitializable
- Overrides:
checkInitialization
in classPipesIterator
- Parameters:
problemHandler
- if there is a problem and no custom initializableProblemHandler has been configured via Initializable parameters, this is called to respond.- Throws:
TikaConfigException
-
initialize
- Specified by:
initialize
in interfaceInitializable
- Overrides:
initialize
in classPipesIterator
- Parameters:
params
- params to use for initialization- Throws:
TikaConfigException
-
setCountTotal
-
startTotalCount
public void startTotalCount()- Specified by:
startTotalCount
in interfaceTotalCounter
-
getTotalCount
Description copied from interface:TotalCounter
Returns the total count so far. Check theTotalCountResult.getStatus()
to figure out if the count has completed yet, if it is unsupported or if there was an exception during the counting.- Specified by:
getTotalCount
in interfaceTotalCounter
- Returns:
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-