Class GCSFetcherFactory
java.lang.Object
org.apache.tika.pipes.fetcher.gcs.GCSFetcherFactory
- All Implemented Interfaces:
FetcherFactory, TikaExtensionFactory<Fetcher>, org.pf4j.ExtensionPoint
Factory for creating Google Cloud Storage fetchers.
Example JSON configuration:
"fetchers": {
"gcs-fetcher": {
"my-gcs-fetcher": {
"projectId": "my-project",
"bucket": "my-bucket",
"spoolToTemp": true,
"extractUserMetadata": true
}
}
}
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildExtension(ExtensionConfig extensionConfig) Class<?> getName()
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
GCSFetcherFactory
public GCSFetcherFactory()
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceTikaExtensionFactory<Fetcher>- Returns:
- name of the extension in the config file
-
buildExtension
public Fetcher buildExtension(ExtensionConfig extensionConfig) throws IOException, TikaConfigException - Specified by:
buildExtensionin interfaceTikaExtensionFactory<Fetcher>- Throws:
IOExceptionTikaConfigException
-
getConfigClass
- Specified by:
getConfigClassin interfaceFetcherFactory- Returns:
- the config POJO class for this fetcher; used to generate the JSON schema that
describes the
fetcher_config_jsona client must supply when saving a fetcher.
-