Package net.corda.data.chunking
Class ChunkKey.Builder
-
- All Implemented Interfaces:
-
org.apache.avro.data.RecordBuilder
public class ChunkKey.Builder extends SpecificRecordBuilderBase<T> implements RecordBuilder<T>
RecordBuilder for ChunkKey instances.
-
-
Field Summary
Fields Modifier and Type Field Description public ByteBuffer
realKey
public int
partNumber
-
Method Summary
Modifier and Type Method Description ByteBuffer
getRealKey()
Gets the value of the 'realKey' field. ChunkKey.Builder
setRealKey(ByteBuffer value)
Sets the value of the 'realKey' field. int
getPartNumber()
Gets the value of the 'partNumber' field. ChunkKey.Builder
setPartNumber(int value)
Sets the value of the 'partNumber' field. boolean
hasRealKey()
Checks whether the 'realKey' field has been set. ChunkKey.Builder
clearRealKey()
Clears the value of the 'realKey' field. boolean
hasPartNumber()
Checks whether the 'partNumber' field has been set. ChunkKey.Builder
clearPartNumber()
Clears the value of the 'partNumber' field. ChunkKey
build()
-
-
Method Detail
-
getRealKey
ByteBuffer getRealKey()
Gets the value of the 'realKey' field. avro serialized real key for the chunked record value
-
setRealKey
ChunkKey.Builder setRealKey(ByteBuffer value)
Sets the value of the 'realKey' field. avro serialized real key for the chunked record value
- Parameters:
value
- The value of 'realKey'.
-
getPartNumber
int getPartNumber()
Gets the value of the 'partNumber' field. number of chunk
-
setPartNumber
ChunkKey.Builder setPartNumber(int value)
Sets the value of the 'partNumber' field. number of chunk
- Parameters:
value
- The value of 'partNumber'.
-
hasRealKey
boolean hasRealKey()
Checks whether the 'realKey' field has been set. avro serialized real key for the chunked record value
-
clearRealKey
ChunkKey.Builder clearRealKey()
Clears the value of the 'realKey' field. avro serialized real key for the chunked record value
-
hasPartNumber
boolean hasPartNumber()
Checks whether the 'partNumber' field has been set. number of chunk
-
clearPartNumber
ChunkKey.Builder clearPartNumber()
Clears the value of the 'partNumber' field. number of chunk
-
-
-
-