Class ObjectReadParameters
java.lang.Object
org.apache.hadoop.fs.s3a.impl.streams.ObjectReadParameters
Parameters for object input streams created through
ObjectInputStreamFactory.
It is designed to support extra parameters added
in future.
Note that the validate()
operation does not freeze the parameters -instead it simply
verifies that all required values are set.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.fs.store.audit.AuditSpanGetter.org.apache.hadoop.fs.LocalDirAllocatorGetter.Getter.validate()Validate that all attributes are as expected.withAuditSpan(org.apache.hadoop.fs.store.audit.AuditSpan value) Set audit span.Set bounded thread pool.Set callbacks to store read operation.withContext(S3AReadOpContext value) Set read operation context.withDirectoryAllocator(org.apache.hadoop.fs.LocalDirAllocator value) Set allocator of local FS storage.Set encryption secrets.Set object attributes.Set SetStream statistics callback.
-
Constructor Details
-
ObjectReadParameters
public ObjectReadParameters()
-
-
Method Details
-
getEncryptionSecrets
Getter.- Returns:
- Encryption secrets.
-
withEncryptionSecrets
Set encryption secrets.- Parameters:
value- new value- Returns:
- the builder
-
getContext
- Returns:
- Read operation context.
-
withContext
Set read operation context.- Parameters:
value- new value- Returns:
- the builder
-
getObjectAttributes
- Returns:
- Attributes of the object.
-
withObjectAttributes
Set object attributes.- Parameters:
value- new value- Returns:
- the builder
-
getCallbacks
- Returns:
- callbacks to store read operations.
-
withCallbacks
Set callbacks to store read operation.- Parameters:
value- new value- Returns:
- the builder
-
getStreamStatistics
- Returns:
- Stream statistics.
-
withStreamStatistics
Set SetStream statistics callback.- Parameters:
value- new value- Returns:
- the builder
-
getBoundedThreadPool
- Returns:
- Bounded thread pool for submitting asynchronous work.
-
withBoundedThreadPool
Set bounded thread pool.- Parameters:
value- new value- Returns:
- the builder
-
getDirectoryAllocator
public org.apache.hadoop.fs.LocalDirAllocator getDirectoryAllocator()Getter.- Returns:
- Allocator of local FS storage.
-
withDirectoryAllocator
Set allocator of local FS storage.- Parameters:
value- new value- Returns:
- the builder
-
getAuditSpan
public org.apache.hadoop.fs.store.audit.AuditSpan getAuditSpan()Getter.- Returns:
- Audit span.
-
withAuditSpan
Set audit span.- Parameters:
value- new value- Returns:
- the builder
-
validate
Validate that all attributes are as expected. Mock tests can skip this if required.- Returns:
- the object.
-