Class GCSPipesIterator
- java.lang.Object
-
- org.apache.tika.config.ConfigBase
-
- org.apache.tika.pipes.pipesiterator.PipesIterator
-
- org.apache.tika.pipes.pipesiterator.gcs.GCSPipesIterator
-
-
Constructor Summary
Constructors Constructor Description GCSPipesIterator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckInitialization(org.apache.tika.config.InitializableProblemHandler problemHandler)protected voidenqueue()voidinitialize(Map<String,org.apache.tika.config.Param> params)This initializes the gcs client.voidsetBucket(String bucket)voidsetPrefix(String prefix)voidsetProjectId(String projectId)-
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
-
-
-
-
Method Detail
-
setBucket
@Field public void setBucket(String bucket)
-
setPrefix
@Field public void setPrefix(String prefix)
-
setProjectId
@Field public void setProjectId(String projectId)
-
initialize
public void initialize(Map<String,org.apache.tika.config.Param> params) throws org.apache.tika.exception.TikaConfigException
This initializes the gcs client.- Specified by:
initializein interfaceorg.apache.tika.config.Initializable- Overrides:
initializein classorg.apache.tika.pipes.pipesiterator.PipesIterator- Parameters:
params- params to use for initialization- Throws:
org.apache.tika.exception.TikaConfigException
-
checkInitialization
public void checkInitialization(org.apache.tika.config.InitializableProblemHandler problemHandler) throws org.apache.tika.exception.TikaConfigException- Specified by:
checkInitializationin interfaceorg.apache.tika.config.Initializable- Overrides:
checkInitializationin classorg.apache.tika.pipes.pipesiterator.PipesIterator- Throws:
org.apache.tika.exception.TikaConfigException
-
enqueue
protected void enqueue() throws InterruptedException, IOException, TimeoutException- Specified by:
enqueuein classorg.apache.tika.pipes.pipesiterator.PipesIterator- Throws:
InterruptedExceptionIOExceptionTimeoutException
-
-