Package org.apache.druid.frame.segment
Class FrameCursor
- java.lang.Object
-
- org.apache.druid.frame.segment.FrameCursor
-
- All Implemented Interfaces:
Cursor
public class FrameCursor extends Object implements Cursor
An implementation ofCursorused byFrameCursorFactoryandFrameCursorFactory. Adds the methodsgetCurrentRow()andsetCurrentRow(int)so the cursor can be moved to particular rows.
-
-
Constructor Summary
Constructors Constructor Description FrameCursor(SimpleSettableOffset offset, ColumnSelectorFactory columnSelectorFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadvance()voidadvanceUninterruptibly()ColumnSelectorFactorygetColumnSelectorFactory()intgetCurrentRow()Returns the current row number.org.joda.time.DateTimegetTime()booleanisDone()booleanisDoneOrInterrupted()voidreset()voidsetCurrentRow(int rowNumber)Moves this cursor to a particular row number.
-
-
-
Constructor Detail
-
FrameCursor
public FrameCursor(SimpleSettableOffset offset, ColumnSelectorFactory columnSelectorFactory)
-
-
Method Detail
-
getColumnSelectorFactory
public ColumnSelectorFactory getColumnSelectorFactory()
- Specified by:
getColumnSelectorFactoryin interfaceCursor
-
advanceUninterruptibly
public void advanceUninterruptibly()
- Specified by:
advanceUninterruptiblyin interfaceCursor
-
isDoneOrInterrupted
public boolean isDoneOrInterrupted()
- Specified by:
isDoneOrInterruptedin interfaceCursor
-
getCurrentRow
public int getCurrentRow()
Returns the current row number.
-
setCurrentRow
public void setCurrentRow(int rowNumber)
Moves this cursor to a particular row number.
-
-