public class S3AReadOpContext extends S3AOpContext
dstFileStatus| Constructor and Description |
|---|
S3AReadOpContext(org.apache.hadoop.fs.Path path,
boolean isS3GuardEnabled,
Invoker invoker,
Invoker s3guardInvoker,
org.apache.hadoop.fs.FileSystem.Statistics stats,
S3AInstrumentation instrumentation,
org.apache.hadoop.fs.FileStatus dstFileStatus,
S3AInputPolicy inputPolicy,
ChangeDetectionPolicy changeDetectionPolicy,
long readahead)
Instantiate.
|
| Modifier and Type | Method and Description |
|---|---|
ChangeDetectionPolicy |
getChangeDetectionPolicy() |
S3AInputPolicy |
getInputPolicy()
Get the IO policy.
|
org.apache.hadoop.fs.Path |
getPath()
Get the path of this read.
|
long |
getReadahead()
Get the readahead for this operation.
|
Invoker |
getReadInvoker()
Get invoker to use for read operations.
|
String |
toString() |
getDstFileStatus, getInstrumentation, getInvoker, getS3guardInvoker, getStats, isS3GuardEnabledpublic S3AReadOpContext(org.apache.hadoop.fs.Path path,
boolean isS3GuardEnabled,
Invoker invoker,
Invoker s3guardInvoker,
@Nullable
org.apache.hadoop.fs.FileSystem.Statistics stats,
S3AInstrumentation instrumentation,
org.apache.hadoop.fs.FileStatus dstFileStatus,
S3AInputPolicy inputPolicy,
ChangeDetectionPolicy changeDetectionPolicy,
long readahead)
path - path of readisS3GuardEnabled - true iff S3Guard is enabled.invoker - invoker for normal retries.s3guardInvoker - S3Guard-specific retry invoker.stats - statistics (may be null)instrumentation - FS instrumentationdstFileStatus - target file statusinputPolicy - the input policyreadahead - readahead for GET operations/skip, etc.changeDetectionPolicy - change detection policy.public Invoker getReadInvoker()
public org.apache.hadoop.fs.Path getPath()
public S3AInputPolicy getInputPolicy()
public ChangeDetectionPolicy getChangeDetectionPolicy()
public long getReadahead()
Copyright © 2008–2020 Apache Software Foundation. All rights reserved.