Class ScanRange
- java.lang.Object
-
- software.amazon.awssdk.services.s3.model.ScanRange
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ScanRange.Builder,ScanRange>
@Generated("software.amazon.awssdk:codegen") public final class ScanRange extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ScanRange.Builder,ScanRange>
Specifies the byte range of the object to get the records from. A record is processed when its first byte is contained by the range. This parameter is optional, but when specified, it must not be empty. See RFC 2616, Section 14.35.1 about how to specify the start and end of the range.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceScanRange.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ScanRange.Builderbuilder()Longend()Specifies the end of the byte range.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends ScanRange.Builder>serializableBuilderClass()Longstart()Specifies the start of the byte range.ScanRange.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
start
public final Long start()
Specifies the start of the byte range. This parameter is optional. Valid values: non-negative integers. The default value is 0. If only
startis supplied, it means scan from that point to the end of the file. For example,<scanrange><start>50</start></scanrange>means scan from byte 50 until the end of the file.- Returns:
- Specifies the start of the byte range. This parameter is optional. Valid values: non-negative integers.
The default value is 0. If only
startis supplied, it means scan from that point to the end of the file. For example,<scanrange><start>50</start></scanrange>means scan from byte 50 until the end of the file.
-
end
public final Long end()
Specifies the end of the byte range. This parameter is optional. Valid values: non-negative integers. The default value is one less than the size of the object being queried. If only the End parameter is supplied, it is interpreted to mean scan the last N bytes of the file. For example,
<scanrange><end>50</end></scanrange>means scan the last 50 bytes.- Returns:
- Specifies the end of the byte range. This parameter is optional. Valid values: non-negative integers. The
default value is one less than the size of the object being queried. If only the End parameter is
supplied, it is interpreted to mean scan the last N bytes of the file. For example,
<scanrange><end>50</end></scanrange>means scan the last 50 bytes.
-
toBuilder
public ScanRange.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ScanRange.Builder,ScanRange>
-
builder
public static ScanRange.Builder builder()
-
serializableBuilderClass
public static Class<? extends ScanRange.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-