Package org.apache.druid.segment
Class Cursors
java.lang.Object
org.apache.druid.segment.Cursors
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet aCursorHolderOrderBylist that contains only aColumnHolder.TIME_COLUMN_NAMEasOrder.ASCENDING, classic Druid segment order.Get aCursorHolderOrderBylist that contains only aColumnHolder.TIME_COLUMN_NAMEasOrder.DESCENDING, classic Druid segment order in reverse.static OrdergetTimeOrdering(List<OrderBy> ordering) Return theOrderof theColumnHolder.TIME_COLUMN_NAME, based on aCursorHolder.getOrdering()orMetadata.getOrdering().static booleanpreferDescendingTimeOrdering(CursorBuildSpec buildSpec) Check if the firstOrderBycolumn ofCursorBuildSpec.getPreferredOrdering()isOrder.DESCENDING, which allowCursoron time ordered data to advance in descending order if possible.
-
Constructor Details
-
Cursors
public Cursors()
-
-
Method Details
-
preferDescendingTimeOrdering
Check if the firstOrderBycolumn ofCursorBuildSpec.getPreferredOrdering()isOrder.DESCENDING, which allowCursoron time ordered data to advance in descending order if possible. -
getTimeOrdering
Return theOrderof theColumnHolder.TIME_COLUMN_NAME, based on aCursorHolder.getOrdering()orMetadata.getOrdering(). -
ascendingTimeOrder
Get aCursorHolderOrderBylist that contains only aColumnHolder.TIME_COLUMN_NAMEasOrder.ASCENDING, classic Druid segment order. -
descendingTimeOrder
Get aCursorHolderOrderBylist that contains only aColumnHolder.TIME_COLUMN_NAMEasOrder.DESCENDING, classic Druid segment order in reverse.
-