Record Class ColumnIndex
java.lang.Object
java.lang.Record
dev.hardwood.metadata.ColumnIndex
- Record Components:
nullPages- boolean list indicating which pages contain only null valuesminValues- per-page minimum values in the column's physical sort ordermaxValues- per-page maximum values in the column's physical sort orderboundaryOrder- ordering of min/max values: UNORDERED, ASCENDING, or DESCENDINGnullCounts- per-page null counts, ornullif not available
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumOrdering of min/max values across pages. -
Constructor Summary
ConstructorsConstructorDescriptionColumnIndex(List<Boolean> nullPages, List<byte[]> minValues, List<byte[]> maxValues, ColumnIndex.BoundaryOrder boundaryOrder, List<Long> nullCounts) Creates an instance of aColumnIndexrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theboundaryOrderrecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the number of pages described by this index.final inthashCode()Returns a hash code value for this object.List<byte[]> Returns the value of themaxValuesrecord component.List<byte[]> Returns the value of theminValuesrecord component.Returns the value of thenullCountsrecord component.Returns the value of thenullPagesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ColumnIndex
public ColumnIndex(List<Boolean> nullPages, List<byte[]> minValues, List<byte[]> maxValues, ColumnIndex.BoundaryOrder boundaryOrder, List<Long> nullCounts) Creates an instance of aColumnIndexrecord class.- Parameters:
nullPages- the value for thenullPagesrecord componentminValues- the value for theminValuesrecord componentmaxValues- the value for themaxValuesrecord componentboundaryOrder- the value for theboundaryOrderrecord componentnullCounts- the value for thenullCountsrecord component
-
-
Method Details
-
getPageCount
public int getPageCount()Returns the number of pages described by this index. -
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object). -
nullPages
-
minValues
-
maxValues
-
boundaryOrder
Returns the value of theboundaryOrderrecord component.- Returns:
- the value of the
boundaryOrderrecord component
-
nullCounts
Returns the value of thenullCountsrecord component.- Returns:
- the value of the
nullCountsrecord component
-