Package alluxio.proxy.s3
Class S3RangeSpec
- java.lang.Object
-
- alluxio.proxy.s3.S3RangeSpec
-
public class S3RangeSpec extends java.lang.ObjectThis class is Range Spec for Amazon S3 API.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classS3RangeSpec.FactoryFactory forS3RangeSpec.
-
Field Summary
Fields Modifier and Type Field Description static S3RangeSpecINVALID_S3_RANGE_SPEC
-
Constructor Summary
Constructors Modifier Constructor Description protectedS3RangeSpec(boolean isValid)S3RangeSpec(long start, long end)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetLength(long objectSize)Get real length of object.longgetOffset(long objectSize)Get real offset of object.
-
-
-
Field Detail
-
INVALID_S3_RANGE_SPEC
public static final S3RangeSpec INVALID_S3_RANGE_SPEC
-
-
Method Detail
-
getLength
public long getLength(long objectSize)
Get real length of object.- Parameters:
objectSize- the object size- Returns:
- the real object length referring to range
-
getOffset
public long getOffset(long objectSize)
Get real offset of object.- Parameters:
objectSize- the object size- Returns:
- the real object offset referring to range
-
-