Record Class ColumnIndex

java.lang.Object
java.lang.Record
dev.hardwood.metadata.ColumnIndex
Record Components:
nullPages - boolean list indicating which pages contain only null values
minValues - per-page minimum values in the column's physical sort order
maxValues - per-page maximum values in the column's physical sort order
boundaryOrder - ordering of min/max values: UNORDERED, ASCENDING, or DESCENDING
nullCounts - per-page null counts, or null if not available

public record ColumnIndex(List<Boolean> nullPages, List<byte[]> minValues, List<byte[]> maxValues, ColumnIndex.BoundaryOrder boundaryOrder, List<Long> nullCounts) extends Record
Column index for a column chunk, providing per-page min/max statistics for page-level filtering.
See Also:
  • Constructor Details

    • ColumnIndex

      public ColumnIndex(List<Boolean> nullPages, List<byte[]> minValues, List<byte[]> maxValues, ColumnIndex.BoundaryOrder boundaryOrder, List<Long> nullCounts)
      Creates an instance of a ColumnIndex record class.
      Parameters:
      nullPages - the value for the nullPages record component
      minValues - the value for the minValues record component
      maxValues - the value for the maxValues record component
      boundaryOrder - the value for the boundaryOrder record component
      nullCounts - the value for the nullCounts record component
  • Method Details

    • getPageCount

      public int getPageCount()
      Returns the number of pages described by this index.
    • 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.
    • nullPages

      public List<Boolean> nullPages()
      Returns the value of the nullPages record component.
      Returns:
      the value of the nullPages record component
    • minValues

      public List<byte[]> minValues()
      Returns the value of the minValues record component.
      Returns:
      the value of the minValues record component
    • maxValues

      public List<byte[]> maxValues()
      Returns the value of the maxValues record component.
      Returns:
      the value of the maxValues record component
    • boundaryOrder

      public ColumnIndex.BoundaryOrder boundaryOrder()
      Returns the value of the boundaryOrder record component.
      Returns:
      the value of the boundaryOrder record component
    • nullCounts

      public List<Long> nullCounts()
      Returns the value of the nullCounts record component.
      Returns:
      the value of the nullCounts record component