Package org.apache.druid.query.scan
Class ConcatCursor
- java.lang.Object
-
- org.apache.druid.query.scan.ConcatCursor
-
- All Implemented Interfaces:
Cursor
public class ConcatCursor extends Object implements Cursor
Combines multiple cursors and iterates over them. It skips over the empty cursors TheDimensionSelector
andColumnValueSelector
it generates hold the reference to the original object because the cursor might be advanced independently after extracting out theColumnSelectorFactory
like inFrameCursorUtils.cursorToFrames(org.apache.druid.segment.Cursor, org.apache.druid.frame.write.FrameWriterFactory)
. This ensures that the selectors always return the value pointed by thecurrentCursor
.
-
-
Constructor Summary
Constructors Constructor Description ConcatCursor(List<Cursor> cursors)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
advance()
void
advanceUninterruptibly()
ColumnSelectorFactory
getColumnSelectorFactory()
org.joda.time.DateTime
getTime()
boolean
isDone()
boolean
isDoneOrInterrupted()
void
reset()
-
-
-
Method Detail
-
getColumnSelectorFactory
public ColumnSelectorFactory getColumnSelectorFactory()
- Specified by:
getColumnSelectorFactory
in interfaceCursor
-
advanceUninterruptibly
public void advanceUninterruptibly()
- Specified by:
advanceUninterruptibly
in interfaceCursor
-
isDoneOrInterrupted
public boolean isDoneOrInterrupted()
- Specified by:
isDoneOrInterrupted
in interfaceCursor
-
-