Class GCSFetcher
java.lang.Object
org.apache.tika.pipes.fetcher.AbstractFetcher
org.apache.tika.pipes.fetcher.gcs.GCSFetcher
- All Implemented Interfaces:
Initializable
,Fetcher
Fetches files from google cloud storage. Must set projectId and bucket via the config.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
checkInitialization
(InitializableProblemHandler problemHandler) void
initialize
(Map<String, Param> params) This initializes the gcs storage client.void
void
setExtractUserMetadata
(boolean extractUserMetadata) Whether or not to extract user metadata from the S3Objectvoid
setProjectId
(String projectId) void
setSpoolToTemp
(boolean spoolToTemp) Methods inherited from class org.apache.tika.pipes.fetcher.AbstractFetcher
getName, setName
-
Constructor Details
-
GCSFetcher
public GCSFetcher()
-
-
Method Details
-
fetch
- Specified by:
fetch
in interfaceFetcher
- Throws:
TikaException
IOException
-
setSpoolToTemp
-
setProjectId
-
setBucket
-
setExtractUserMetadata
Whether or not to extract user metadata from the S3Object- Parameters:
extractUserMetadata
-
-
initialize
This initializes the gcs storage client.- Specified by:
initialize
in interfaceInitializable
- Parameters:
params
- params to use for initialization- Throws:
TikaConfigException
-
checkInitialization
public void checkInitialization(InitializableProblemHandler problemHandler) throws TikaConfigException - Specified by:
checkInitialization
in interfaceInitializable
- Parameters:
problemHandler
- if there is a problem and no custom initializableProblemHandler has been configured via Initializable parameters, this is called to respond.- Throws:
TikaConfigException
-