Interface RecordData

All Known Implementing Classes:
CommandRecordV2, CommandRecordV2.CheckpointCommand, CommandRecordV2.DeletePartition2Command, CommandRecordV2.DeletePartitionCommand, CommandRecordV2.LASCommandRecordV2

public interface RecordData
Holds the data payload of a record entry. Implementations are responsible for reading and writing their specific data. See also Record.
  • Method Summary

    Modifier and Type Method Description
    int getDataSize()
    Determine the required buffer size in bytes.
    void write​(ByteBuffer destBuffer)
    Write the record data to the given data buffer.
  • Method Details

    • write

      void write​(ByteBuffer destBuffer)
      Write the record data to the given data buffer.
      Parameters:
      destBuffer - write to this buffer
      Throws:
      BufferOverflowException - if the buffer isn't big enough.
    • getDataSize

      int getDataSize()
      Determine the required buffer size in bytes. Note that this method is intended for use in exception-handling and may not have good performance, and may allocate temporary buffers to determine the final data size.
      Returns:
      the required buffer size in bytes