Package org.apache.druid.segment
Class QueryableIndexCursorHolder
java.lang.Object
org.apache.druid.segment.QueryableIndexCursorHolder
- All Implemented Interfaces:
Closeable,AutoCloseable,CursorHolder
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic class -
Constructor Summary
ConstructorsConstructorDescriptionQueryableIndexCursorHolder(QueryableIndex index, CursorBuildSpec cursorBuildSpec, TimeBoundaryInspector timeBoundaryInspector) -
Method Summary
Modifier and TypeMethodDescriptionasCursor()Create aCursorfor use with non-vectorized query engines.Compute filter to use for cursor creation.booleanReturns true if thisCursorHoldersupports callingCursorHolder.asVectorCursor().voidclose()Release any resources acquired by cursors.Returns cursor ordering, which may or may not matchCursorBuildSpec.getPreferredOrdering().protected ColumnSelectorFactorymakeColumnSelectorFactoryForOffset(ColumnCache columnCache, Offset baseOffset) protected VectorColumnSelectorFactorymakeVectorColumnSelectorFactoryForOffset(ColumnCache columnCache, VectorOffset baseOffset) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.druid.segment.CursorHolder
getAggregatorsForPreAggregated, getTimeOrder, isPreAggregated
-
Constructor Details
-
QueryableIndexCursorHolder
public QueryableIndexCursorHolder(QueryableIndex index, CursorBuildSpec cursorBuildSpec, TimeBoundaryInspector timeBoundaryInspector)
-
-
Method Details
-
canVectorize
public boolean canVectorize()Description copied from interface:CursorHolderReturns true if thisCursorHoldersupports callingCursorHolder.asVectorCursor().- Specified by:
canVectorizein interfaceCursorHolder
-
asCursor
Description copied from interface:CursorHolderCreate aCursorfor use with non-vectorized query engines.- Specified by:
asCursorin interfaceCursorHolder
-
asVectorCursor
Compute filter to use for cursor creation. For non-time-ordered segments, this includes the query interval as a filter.- Specified by:
asVectorCursorin interfaceCursorHolder
-
getOrdering
Description copied from interface:CursorHolderReturns cursor ordering, which may or may not matchCursorBuildSpec.getPreferredOrdering(). If returns an empty list then the cursor has no defined ordering.Cursors associated with this holder return rows in this ordering, using the natural comparator for the column type. Includes
ColumnHolder.TIME_COLUMN_NAMEif appropriate.- Specified by:
getOrderingin interfaceCursorHolder
-
close
public void close()Description copied from interface:CursorHolderRelease any resources acquired by cursors.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceCursorHolder
-
makeColumnSelectorFactoryForOffset
protected ColumnSelectorFactory makeColumnSelectorFactoryForOffset(ColumnCache columnCache, Offset baseOffset) -
makeVectorColumnSelectorFactoryForOffset
protected VectorColumnSelectorFactory makeVectorColumnSelectorFactoryForOffset(ColumnCache columnCache, VectorOffset baseOffset)
-