Package org.apache.druid.segment
Class RowPointer
java.lang.Object
org.apache.druid.segment.TimeAndDimsPointer
org.apache.druid.segment.RowPointer
- All Implemented Interfaces:
Comparable<TimeAndDimsPointer>
Extension of
TimeAndDimsPointer, that keeps "row number" of the current data point in some collection of data
points, that actually makes this data point to be called "row", and the collection, thus, "collection of rows".
However, "row number" doesn't affect the TimeAndDimsPointer.compareTo(org.apache.druid.segment.TimeAndDimsPointer) contract. RowPointers could be compared
to TimeAndDimsPointers interchangeably.-
Constructor Summary
ConstructorsConstructorDescriptionRowPointer(ColumnValueSelector timestampSelector, int timePosition, ColumnValueSelector[] dimensionSelectors, List<DimensionHandler> dimensionHandlers, ColumnValueSelector[] metricSelectors, List<String> metricNames, IntSupplier rowNumPointer) -
Method Summary
Methods inherited from class org.apache.druid.segment.TimeAndDimsPointer
compareTo, equals, getNumMetrics, getTimestamp, hashCode
-
Constructor Details
-
RowPointer
public RowPointer(ColumnValueSelector timestampSelector, int timePosition, ColumnValueSelector[] dimensionSelectors, List<DimensionHandler> dimensionHandlers, ColumnValueSelector[] metricSelectors, List<String> metricNames, IntSupplier rowNumPointer)
-
-
Method Details
-
getRowNum
public int getRowNum() -
toString
- Overrides:
toStringin classTimeAndDimsPointer
-