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.PipesIteratorCOMPLETED_SEMAPHORE, DEFAULT_MAX_WAIT_MS, DEFAULT_QUEUE_SIZE
 
- 
 - 
Constructor SummaryConstructors Constructor Description FileSystemPipesIterator()FileSystemPipesIterator(Path basePath)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckInitialization(InitializableProblemHandler problemHandler)voidclose()protected voidenqueue()TotalCountResultgetTotalCount()Returns the total count so far.voidinitialize(Map<String,Param> params)voidsetBasePath(String basePath)voidsetCountTotal(boolean countTotal)voidstartTotalCount()- 
Methods inherited from class org.apache.tika.pipes.pipesiterator.PipesIteratorbuild, call, getEmitterName, getFetcherName, getHandlerConfig, getOnParseException, iterator, setEmitterName, setFetcherName, setHandlerType, setMaxEmbeddedResources, setMaxWaitMs, setOnParseException, setOnParseException, setParseMode, setParseMode, setQueueSize, setWriteLimit, tryToAdd
 - 
Methods inherited from class org.apache.tika.config.ConfigBasebuildComposite, buildComposite, buildSingle, buildSingle, configure, handleSettings
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface java.lang.IterableforEach, spliterator
 
- 
 
- 
- 
- 
Constructor Detail- 
FileSystemPipesIteratorpublic FileSystemPipesIterator() 
 - 
FileSystemPipesIteratorpublic FileSystemPipesIterator(Path basePath) 
 
- 
 - 
Method Detail- 
enqueueprotected void enqueue() throws InterruptedException, IOException, TimeoutException- Specified by:
- enqueuein class- PipesIterator
- Throws:
- InterruptedException
- IOException
- TimeoutException
 
 - 
checkInitializationpublic void checkInitialization(InitializableProblemHandler problemHandler) throws TikaConfigException - Specified by:
- checkInitializationin interface- Initializable
- Overrides:
- checkInitializationin class- PipesIterator
- Parameters:
- problemHandler- if there is a problem and no custom initializableProblemHandler has been configured via Initializable parameters, this is called to respond.
- Throws:
- TikaConfigException
 
 - 
initializepublic void initialize(Map<String,Param> params) throws TikaConfigException - Specified by:
- initializein interface- Initializable
- Overrides:
- initializein class- PipesIterator
- Parameters:
- params- params to use for initialization
- Throws:
- TikaConfigException
 
 - 
setCountTotal@Field public void setCountTotal(boolean countTotal) 
 - 
startTotalCountpublic void startTotalCount() - Specified by:
- startTotalCountin interface- TotalCounter
 
 - 
getTotalCountpublic TotalCountResult getTotalCount() Description copied from interface:TotalCounterReturns 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:
- getTotalCountin interface- TotalCounter
- Returns:
 
 - 
closepublic void close() throws IOException- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Closeable
- Throws:
- IOException
 
 
- 
 
-