Class Chunk.Builder
-
- All Implemented Interfaces:
-
org.apache.avro.data.RecordBuilder
public class Chunk.Builder extends SpecificRecordBuilderBase<T> implements RecordBuilder<T>
RecordBuilder for Chunk instances.
-
-
Field Summary
Fields Modifier and Type Field Description public String
requestId
public SecureHash
checksum
public SecureHash.Builder
checksumBuilder
public int
partNumber
public long
offset
public ByteBuffer
data
public KeyValuePairList
properties
public KeyValuePairList.Builder
propertiesBuilder
-
Method Summary
Modifier and Type Method Description String
getRequestId()
Gets the value of the 'requestId' field. Chunk.Builder
setRequestId(String value)
Sets the value of the 'requestId' field. SecureHash
getChecksum()
Gets the value of the 'checksum' field. Chunk.Builder
setChecksum(SecureHash value)
Sets the value of the 'checksum' field. SecureHash.Builder
getChecksumBuilder()
Gets the Builder instance for the 'checksum' field and creates one if it doesn't exist yet. Chunk.Builder
setChecksumBuilder(SecureHash.Builder value)
Sets the Builder instance for the 'checksum' field checksum of assembled chunks int
getPartNumber()
Gets the value of the 'partNumber' field. Chunk.Builder
setPartNumber(int value)
Sets the value of the 'partNumber' field. long
getOffset()
Gets the value of the 'offset' field. Chunk.Builder
setOffset(long value)
Sets the value of the 'offset' field. ByteBuffer
getData()
Gets the value of the 'data' field. Chunk.Builder
setData(ByteBuffer value)
Sets the value of the 'data' field. KeyValuePairList
getProperties()
Gets the value of the 'properties' field. Chunk.Builder
setProperties(KeyValuePairList value)
Sets the value of the 'properties' field. KeyValuePairList.Builder
getPropertiesBuilder()
Gets the Builder instance for the 'properties' field and creates one if it doesn't exist yet. Chunk.Builder
setPropertiesBuilder(KeyValuePairList.Builder value)
Sets the Builder instance for the 'properties' field Optional list of chunk properties. boolean
hasRequestId()
Checks whether the 'requestId' field has been set. Chunk.Builder
clearRequestId()
Clears the value of the 'requestId' field. boolean
hasChecksum()
Checks whether the 'checksum' field has been set. boolean
hasChecksumBuilder()
Checks whether the 'checksum' field has an active Builder instance checksum of assembled chunks Chunk.Builder
clearChecksum()
Clears the value of the 'checksum' field. boolean
hasPartNumber()
Checks whether the 'partNumber' field has been set. Chunk.Builder
clearPartNumber()
Clears the value of the 'partNumber' field. boolean
hasOffset()
Checks whether the 'offset' field has been set. Chunk.Builder
clearOffset()
Clears the value of the 'offset' field. boolean
hasData()
Checks whether the 'data' field has been set. Chunk.Builder
clearData()
Clears the value of the 'data' field. boolean
hasProperties()
Checks whether the 'properties' field has been set. boolean
hasPropertiesBuilder()
Checks whether the 'properties' field has an active Builder instance Optional list of chunk properties. Chunk.Builder
clearProperties()
Clears the value of the 'properties' field. Chunk
build()
-
-
Method Detail
-
getRequestId
String getRequestId()
Gets the value of the 'requestId' field. some unique identifier that indicates the group this chunk belongs with
-
setRequestId
Chunk.Builder setRequestId(String value)
Sets the value of the 'requestId' field. some unique identifier that indicates the group this chunk belongs with
- Parameters:
value
- The value of 'requestId'.
-
getChecksum
SecureHash getChecksum()
Gets the value of the 'checksum' field. checksum of assembled chunks
-
setChecksum
Chunk.Builder setChecksum(SecureHash value)
Sets the value of the 'checksum' field. checksum of assembled chunks
- Parameters:
value
- The value of 'checksum'.
-
getChecksumBuilder
SecureHash.Builder getChecksumBuilder()
Gets the Builder instance for the 'checksum' field and creates one if it doesn't exist yet. checksum of assembled chunks
-
setChecksumBuilder
Chunk.Builder setChecksumBuilder(SecureHash.Builder value)
Sets the Builder instance for the 'checksum' field checksum of assembled chunks
- Parameters:
value
- The builder instance that must be set.
-
getPartNumber
int getPartNumber()
Gets the value of the 'partNumber' field. number of chunk
-
setPartNumber
Chunk.Builder setPartNumber(int value)
Sets the value of the 'partNumber' field. number of chunk
- Parameters:
value
- The value of 'partNumber'.
-
getOffset
long getOffset()
Gets the value of the 'offset' field. offset of this chunk from beginning of complete binary artifact
-
setOffset
Chunk.Builder setOffset(long value)
Sets the value of the 'offset' field. offset of this chunk from beginning of complete binary artifact
- Parameters:
value
- The value of 'offset'.
-
getData
ByteBuffer getData()
Gets the value of the 'data' field. the binary data fop the chunk. Zero data has a special meaning, signaling the last chunk in the sequence
-
setData
Chunk.Builder setData(ByteBuffer value)
Sets the value of the 'data' field. the binary data fop the chunk. Zero data has a special meaning, signaling the last chunk in the sequence
- Parameters:
value
- The value of 'data'.
-
getProperties
KeyValuePairList getProperties()
Gets the value of the 'properties' field. Optional list of chunk properties.
-
setProperties
Chunk.Builder setProperties(KeyValuePairList value)
Sets the value of the 'properties' field. Optional list of chunk properties.
- Parameters:
value
- The value of 'properties'.
-
getPropertiesBuilder
KeyValuePairList.Builder getPropertiesBuilder()
Gets the Builder instance for the 'properties' field and creates one if it doesn't exist yet. Optional list of chunk properties.
-
setPropertiesBuilder
Chunk.Builder setPropertiesBuilder(KeyValuePairList.Builder value)
Sets the Builder instance for the 'properties' field Optional list of chunk properties.
- Parameters:
value
- The builder instance that must be set.
-
hasRequestId
boolean hasRequestId()
Checks whether the 'requestId' field has been set. some unique identifier that indicates the group this chunk belongs with
-
clearRequestId
Chunk.Builder clearRequestId()
Clears the value of the 'requestId' field. some unique identifier that indicates the group this chunk belongs with
-
hasChecksum
boolean hasChecksum()
Checks whether the 'checksum' field has been set. checksum of assembled chunks
-
hasChecksumBuilder
boolean hasChecksumBuilder()
Checks whether the 'checksum' field has an active Builder instance checksum of assembled chunks
-
clearChecksum
Chunk.Builder clearChecksum()
Clears the value of the 'checksum' field. checksum of assembled chunks
-
hasPartNumber
boolean hasPartNumber()
Checks whether the 'partNumber' field has been set. number of chunk
-
clearPartNumber
Chunk.Builder clearPartNumber()
Clears the value of the 'partNumber' field. number of chunk
-
hasOffset
boolean hasOffset()
Checks whether the 'offset' field has been set. offset of this chunk from beginning of complete binary artifact
-
clearOffset
Chunk.Builder clearOffset()
Clears the value of the 'offset' field. offset of this chunk from beginning of complete binary artifact
-
hasData
boolean hasData()
Checks whether the 'data' field has been set. the binary data fop the chunk. Zero data has a special meaning, signaling the last chunk in the sequence
-
clearData
Chunk.Builder clearData()
Clears the value of the 'data' field. the binary data fop the chunk. Zero data has a special meaning, signaling the last chunk in the sequence
-
hasProperties
boolean hasProperties()
Checks whether the 'properties' field has been set. Optional list of chunk properties.
-
hasPropertiesBuilder
boolean hasPropertiesBuilder()
Checks whether the 'properties' field has an active Builder instance Optional list of chunk properties.
-
clearProperties
Chunk.Builder clearProperties()
Clears the value of the 'properties' field. Optional list of chunk properties.
-
-
-
-