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,
S3AStatisticsContext instrumentation,
org.apache.hadoop.fs.FileStatus dstFileStatus,
S3AInputPolicy inputPolicy,
ChangeDetectionPolicy changeDetectionPolicy,
long readahead,
org.apache.hadoop.fs.store.audit.AuditSpan auditSpan)
Instantiate.
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.fs.store.audit.AuditSpan |
getAuditSpan()
Get the audit which was active when the file was opened.
|
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, getInvoker, getS3guardInvoker, getStats, isS3GuardEnabledgetBulkOperationState, getOperationId, getS3AStatisticsContext, newOperationIdpublic S3AReadOpContext(org.apache.hadoop.fs.Path path,
boolean isS3GuardEnabled,
Invoker invoker,
@Nullable
Invoker s3guardInvoker,
@Nullable
org.apache.hadoop.fs.FileSystem.Statistics stats,
S3AStatisticsContext instrumentation,
org.apache.hadoop.fs.FileStatus dstFileStatus,
S3AInputPolicy inputPolicy,
ChangeDetectionPolicy changeDetectionPolicy,
long readahead,
org.apache.hadoop.fs.store.audit.AuditSpan auditSpan)
path - path of readisS3GuardEnabled - true iff S3Guard is enabled.invoker - invoker for normal retries.s3guardInvoker - S3Guard-specific retry invoker.stats - Fileystem statistics (may be null)instrumentation - statistics contextdstFileStatus - target file statusinputPolicy - the input policychangeDetectionPolicy - change detection policy.readahead - readahead for GET operations/skip, etc.auditSpan - active auditpublic Invoker getReadInvoker()
public org.apache.hadoop.fs.Path getPath()
public S3AInputPolicy getInputPolicy()
public ChangeDetectionPolicy getChangeDetectionPolicy()
public long getReadahead()
public org.apache.hadoop.fs.store.audit.AuditSpan getAuditSpan()
public String toString()
toString in class ActiveOperationContextCopyright © 2008–2022 Apache Software Foundation. All rights reserved.