public class S3Fetcher extends AbstractFetcher implements Initializable, RangeFetcher
Constructor and Description |
---|
S3Fetcher() |
Modifier and Type | Method and Description |
---|---|
void |
checkInitialization(InitializableProblemHandler problemHandler) |
InputStream |
fetch(String fetchKey,
long startRange,
long endRange,
Metadata metadata) |
InputStream |
fetch(String fetchKey,
Metadata metadata) |
void |
initialize(Map<String,Param> params)
This initializes the s3 client.
|
void |
setAccessKey(String accessKey) |
void |
setBucket(String bucket) |
void |
setCredentialsProvider(String credentialsProvider) |
void |
setEndpointConfigurationService(String endpointConfigurationService) |
void |
setExtractUserMetadata(boolean extractUserMetadata)
Whether or not to extract user metadata from the S3Object
|
void |
setMaxConnections(int maxConnections) |
void |
setMaxLength(long maxLength) |
void |
setPathStyleAccessEnabled(boolean pathStyleAccessEnabled) |
void |
setPrefix(String prefix)
prefix to prepend to the fetch key before fetching.
|
void |
setProfile(String profile) |
void |
setRegion(String region) |
void |
setRetries(int retries) |
void |
setSecretKey(String secretKey) |
void |
setSleepBeforeRetryMillis(long sleepBeforeRetryMillis) |
void |
setSpoolToTemp(boolean spoolToTemp) |
getName, setName
public InputStream fetch(String fetchKey, Metadata metadata) throws TikaException, IOException
fetch
in interface Fetcher
TikaException
IOException
public InputStream fetch(String fetchKey, long startRange, long endRange, Metadata metadata) throws TikaException, IOException
fetch
in interface RangeFetcher
TikaException
IOException
@Field public void setSpoolToTemp(boolean spoolToTemp)
@Field public void setPrefix(String prefix)
prefix
- @Field public void setExtractUserMetadata(boolean extractUserMetadata)
extractUserMetadata
- @Field public void setMaxConnections(int maxConnections)
@Field public void setRetries(int retries)
@Field public void setMaxLength(long maxLength)
@Field public void setSleepBeforeRetryMillis(long sleepBeforeRetryMillis)
public void initialize(Map<String,Param> params) throws TikaConfigException
initialize
in interface Initializable
params
- params to use for initializationTikaConfigException
public void checkInitialization(InitializableProblemHandler problemHandler) throws TikaConfigException
checkInitialization
in interface Initializable
problemHandler
- if there is a problem and no
custom initializableProblemHandler has been configured
via Initializable parameters,
this is called to respond.TikaConfigException
@Field public void setEndpointConfigurationService(String endpointConfigurationService)
@Field public void setPathStyleAccessEnabled(boolean pathStyleAccessEnabled)
Copyright © 2007–2023 The Apache Software Foundation. All rights reserved.