Class PipesIteratorBase
java.lang.Object
org.apache.tika.plugins.AbstractTikaExtension
org.apache.tika.pipes.pipesiterator.PipesIteratorBase
- All Implemented Interfaces:
Iterable<FetchEmitTuple>,Callable<Integer>,PipesIterator,TikaExtension
- Direct Known Subclasses:
AZBlobPipesIterator,CSVPipesIterator,FileSystemPipesIterator,GCSPipesIterator,JDBCPipesIterator,JsonPipesIterator,KafkaPipesIterator,S3PipesIterator,SolrPipesIterator
Abstract class that handles the testing for timeouts/thread safety
issues. Concrete classes implement the blocking
enqueue().
If there's an exception in the enqueuing thread, this will throw
a RuntimeException. It will throw an IllegalStateException if
next() is called after hasNext() has returned false.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final intFields inherited from class org.apache.tika.plugins.AbstractTikaExtension
pluginConfigFields inherited from interface org.apache.tika.pipes.api.pipesiterator.PipesIterator
COMPLETED_SEMAPHORE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.tika.plugins.AbstractTikaExtension
getExtensionConfigMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface org.apache.tika.plugins.TikaExtension
getExtensionConfig
-
Field Details
-
DEFAULT_MAX_WAIT_MS
public static final long DEFAULT_MAX_WAIT_MS- See Also:
-
DEFAULT_QUEUE_SIZE
public static final int DEFAULT_QUEUE_SIZE- See Also:
-
-
Constructor Details
-
PipesIteratorBase
-
-
Method Details
-
call
-
enqueue
-
tryToAdd
- Throws:
InterruptedExceptionTimeoutException
-
iterator
- Specified by:
iteratorin interfaceIterable<FetchEmitTuple>
-