Record Class ColumnChunk

java.lang.Object
java.lang.Record
dev.hardwood.metadata.ColumnChunk
Record Components:
metaData - column metadata
offsetIndexOffset - file offset of the offset index for this column chunk, or null if absent
offsetIndexLength - length of the offset index in bytes, or null if absent
columnIndexOffset - file offset of the column index for this column chunk, or null if absent
columnIndexLength - length of the column index in bytes, or null if absent

public record ColumnChunk(ColumnMetaData metaData, Long offsetIndexOffset, Integer offsetIndexLength, Long columnIndexOffset, Integer columnIndexLength) extends Record
Column chunk metadata.
See Also:
  • Constructor Details

    • ColumnChunk

      public ColumnChunk(ColumnMetaData metaData, Long offsetIndexOffset, Integer offsetIndexLength, Long columnIndexOffset, Integer columnIndexLength)
      Creates an instance of a ColumnChunk record class.
      Parameters:
      metaData - the value for the metaData record component
      offsetIndexOffset - the value for the offsetIndexOffset record component
      offsetIndexLength - the value for the offsetIndexLength record component
      columnIndexOffset - the value for the columnIndexOffset record component
      columnIndexLength - the value for the columnIndexLength record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • metaData

      public ColumnMetaData metaData()
      Returns the value of the metaData record component.
      Returns:
      the value of the metaData record component
    • offsetIndexOffset

      public Long offsetIndexOffset()
      Returns the value of the offsetIndexOffset record component.
      Returns:
      the value of the offsetIndexOffset record component
    • offsetIndexLength

      public Integer offsetIndexLength()
      Returns the value of the offsetIndexLength record component.
      Returns:
      the value of the offsetIndexLength record component
    • columnIndexOffset

      public Long columnIndexOffset()
      Returns the value of the columnIndexOffset record component.
      Returns:
      the value of the columnIndexOffset record component
    • columnIndexLength

      public Integer columnIndexLength()
      Returns the value of the columnIndexLength record component.
      Returns:
      the value of the columnIndexLength record component