public class S3AReadOpContext extends S3AOpContext
dstFileStatus| Constructor and Description |
|---|
S3AReadOpContext(org.apache.hadoop.fs.Path path,
Invoker invoker,
org.apache.hadoop.fs.FileSystem.Statistics stats,
S3AStatisticsContext instrumentation,
org.apache.hadoop.fs.FileStatus dstFileStatus,
VectoredIOContext vectoredIOContext,
org.apache.hadoop.fs.statistics.IOStatisticsAggregator ioStatisticsAggregator,
org.apache.hadoop.fs.impl.prefetch.ExecutorServiceFuturePool futurePool,
int prefetchBlockSize,
int prefetchBlockCount)
Instantiate.
|
| Modifier and Type | Method and Description |
|---|---|
S3AReadOpContext |
build()
validate the context.
|
long |
getAsyncDrainThreshold() |
org.apache.hadoop.fs.store.audit.AuditSpan |
getAuditSpan()
Get the audit which was active when the file was opened.
|
ChangeDetectionPolicy |
getChangeDetectionPolicy() |
org.apache.hadoop.fs.impl.prefetch.ExecutorServiceFuturePool |
getFuturePool()
Gets the
ExecutorServiceFuturePool used for asynchronous prefetches. |
S3AInputPolicy |
getInputPolicy()
Get the IO policy.
|
org.apache.hadoop.fs.statistics.IOStatisticsAggregator |
getIOStatisticsAggregator()
Return the IOStatistics aggregator.
|
org.apache.hadoop.fs.Path |
getPath()
Get the path of this read.
|
int |
getPrefetchBlockCount()
Gets the size of prefetch queue (in number of blocks).
|
int |
getPrefetchBlockSize()
Gets the size in bytes of a single prefetch block.
|
long |
getReadahead()
Get the readahead for this operation.
|
Invoker |
getReadInvoker()
Get invoker to use for read operations.
|
VectoredIOContext |
getVectoredIOContext()
Get Vectored IO context for this this read op.
|
String |
toString() |
S3AReadOpContext |
withAsyncDrainThreshold(long value)
Set builder value.
|
S3AReadOpContext |
withAuditSpan(org.apache.hadoop.fs.store.audit.AuditSpan value)
Set builder value.
|
S3AReadOpContext |
withChangeDetectionPolicy(ChangeDetectionPolicy value)
Set builder value.
|
S3AReadOpContext |
withInputPolicy(S3AInputPolicy value)
Set builder value.
|
S3AReadOpContext |
withReadahead(long value)
Set builder value.
|
getDstFileStatus, getInvoker, getStatsgetOperationId, getS3AStatisticsContext, newOperationIdpublic S3AReadOpContext(org.apache.hadoop.fs.Path path,
Invoker invoker,
@Nullable
org.apache.hadoop.fs.FileSystem.Statistics stats,
S3AStatisticsContext instrumentation,
org.apache.hadoop.fs.FileStatus dstFileStatus,
VectoredIOContext vectoredIOContext,
org.apache.hadoop.fs.statistics.IOStatisticsAggregator ioStatisticsAggregator,
org.apache.hadoop.fs.impl.prefetch.ExecutorServiceFuturePool futurePool,
int prefetchBlockSize,
int prefetchBlockCount)
path - path of readinvoker - invoker for normal retries.stats - Filesystem statistics (may be null)instrumentation - statistics contextdstFileStatus - target file statusvectoredIOContext - context for vectored read operation.ioStatisticsAggregator - IOStatistics aggregator for each thread.futurePool - the ExecutorServiceFuturePool instance used by async prefetches.prefetchBlockSize - the size (in number of bytes) of each prefetched block.prefetchBlockCount - maximum number of prefetched blocks.public S3AReadOpContext build()
public 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 S3AReadOpContext withInputPolicy(S3AInputPolicy value)
value - new valuepublic S3AReadOpContext withChangeDetectionPolicy(ChangeDetectionPolicy value)
value - new valuepublic S3AReadOpContext withReadahead(long value)
value - new valuepublic S3AReadOpContext withAuditSpan(org.apache.hadoop.fs.store.audit.AuditSpan value)
value - new valuepublic S3AReadOpContext withAsyncDrainThreshold(long value)
value - new valuepublic long getAsyncDrainThreshold()
public VectoredIOContext getVectoredIOContext()
public org.apache.hadoop.fs.statistics.IOStatisticsAggregator getIOStatisticsAggregator()
public org.apache.hadoop.fs.impl.prefetch.ExecutorServiceFuturePool getFuturePool()
ExecutorServiceFuturePool used for asynchronous prefetches.ExecutorServiceFuturePool used for asynchronous prefetches.public int getPrefetchBlockSize()
public int getPrefetchBlockCount()
public String toString()
toString in class ActiveOperationContextCopyright © 2008–2024 Apache Software Foundation. All rights reserved.