@ThreadSafe public class S3APositionReader extends ObjectPositionReader
ObjectPositionReader
that reads from S3A object store.Modifier and Type | Field and Description |
---|---|
protected com.amazonaws.services.s3.AmazonS3 |
mClient
Client for operations with s3.
|
mBucketName, mFileLength, mPath
Constructor and Description |
---|
S3APositionReader(com.amazonaws.services.s3.AmazonS3 client,
String bucketName,
String path,
long fileLength) |
Modifier and Type | Method and Description |
---|---|
protected InputStream |
openObjectInputStream(long position,
int bytesToRead) |
readInternal
protected final com.amazonaws.services.s3.AmazonS3 mClient
protected InputStream openObjectInputStream(long position, int bytesToRead)
openObjectInputStream
in class ObjectPositionReader
position
- position of the file to start reading databytesToRead
- bytes to readCopyright © 2023. All Rights Reserved.