Class ScanRange
- All Implemented Interfaces:
Serializable,SdkPojo,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:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ScanRange.Builderbuilder()final Longend()Specifies the end of the byte range.final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()static Class<? extends ScanRange.Builder>final Longstart()Specifies the start of the byte range.final StringtoString()Returns a string representation of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
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
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
- Specified by:
toBuilderin interfaceToCopyableBuilder<ScanRange.Builder,ScanRange>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
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. -
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-