Class FrameVectorCursor
- java.lang.Object
-
- org.apache.druid.frame.segment.columnar.FrameVectorCursor
-
- All Implemented Interfaces:
Closeable,AutoCloseable,VectorCursor,VectorSizeInspector
public class FrameVectorCursor extends Object implements VectorCursor
AVectorCursorthat is based on aFrame. This class is only used for columnar frames. It is not used for row-based frames.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadvance()Advances the cursor, skipping forward a number of rows equal to the current vector size.voidclose()Close the cursor and release its resources.VectorColumnSelectorFactorygetColumnSelectorFactory()Returns a vectorized column selector factory.intgetCurrentVectorSize()Returns the current vector size for this cursor.intgetMaxVectorSize()Returns the maximum vector size for this cursor.booleanisDone()Returns false if the cursor is readable, true if it has nothing left to read.voidreset()Resets the cursor back to its original state.
-
-
-
Method Detail
-
getColumnSelectorFactory
public VectorColumnSelectorFactory getColumnSelectorFactory()
Description copied from interface:VectorCursorReturns a vectorized column selector factory.- Specified by:
getColumnSelectorFactoryin interfaceVectorCursor
-
advance
public void advance()
Description copied from interface:VectorCursorAdvances the cursor, skipping forward a number of rows equal to the current vector size.- Specified by:
advancein interfaceVectorCursor
-
isDone
public boolean isDone()
Description copied from interface:VectorCursorReturns false if the cursor is readable, true if it has nothing left to read.- Specified by:
isDonein interfaceVectorCursor
-
reset
public void reset()
Description copied from interface:VectorCursorResets the cursor back to its original state. Useful for query engines that want to make multiple passes.- Specified by:
resetin interfaceVectorCursor
-
close
public void close()
Description copied from interface:VectorCursorClose the cursor and release its resources.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceVectorCursor
-
getMaxVectorSize
public int getMaxVectorSize()
Description copied from interface:VectorSizeInspectorReturns the maximum vector size for this cursor. It will not change for the lifetime of this cursor, and is generally used to allocate scratch arrays for later processing. Will always be greater than zero.- Specified by:
getMaxVectorSizein interfaceVectorSizeInspector
-
getCurrentVectorSize
public int getCurrentVectorSize()
Description copied from interface:VectorSizeInspectorReturns the current vector size for this cursor. Will never be larger than the max size returned byVectorSizeInspector.getMaxVectorSize().- Specified by:
getCurrentVectorSizein interfaceVectorSizeInspector
-
-