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.

    • Constructor Detail

    • 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

      • 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'.
      • 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

      • hasPartNumber

         boolean hasPartNumber()

        Checks whether the 'partNumber' field has been set. 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.