Class JsonPipesIterator
java.lang.Object
org.apache.tika.config.ConfigBase
org.apache.tika.pipes.pipesiterator.PipesIterator
org.apache.tika.pipes.pipesiterator.json.JsonPipesIterator
- All Implemented Interfaces:
Iterable<FetchEmitTuple>, Callable<Integer>, Initializable
Iterates through a UTF-8 text file with one FetchEmitTuple
json object per line.
-
Field Summary
Fields inherited from class PipesIterator
COMPLETED_SEMAPHORE, DEFAULT_MAX_WAIT_MS, DEFAULT_QUEUE_SIZE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class PipesIterator
build, call, checkInitialization, getEmitterName, getFetcherName, getHandlerConfig, getOnParseException, initialize, iterator, setEmitterName, setFetcherName, setHandlerType, setMaxEmbeddedResources, setMaxWaitMs, setOnParseException, setOnParseException, setParseMode, setParseMode, setQueueSize, setThrowOnWriteLimitReached, setWriteLimit, tryToAddMethods inherited from class ConfigBase
buildComposite, buildComposite, buildSingle, buildSingle, configure, handleSettingsMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Initializable
checkInitialization, initializeMethods inherited from interface Iterable
forEach, spliterator
-
Constructor Details
-
JsonPipesIterator
public JsonPipesIterator()
-
-
Method Details
-
enqueue
- Specified by:
enqueuein classPipesIterator- Throws:
InterruptedExceptionIOExceptionTimeoutException
-
setJsonPath
-