Package org.apache.druid.frame.segment
Class FrameCursorUtils
- java.lang.Object
-
- org.apache.druid.frame.segment.FrameCursorUtils
-
public class FrameCursorUtils extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static DruidExceptionSUBQUERY_ROW_TOO_LARGE_EXCEPTIONException to be thrown when the subquery's rows are too wide to fit in a single frame.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FilterbuildFilter(Filter filter, org.joda.time.Interval interval)static Iterable<Frame>cursorToFramesIterable(Cursor cursor, FrameWriterFactory frameWriterFactory)static Sequence<Frame>cursorToFramesSequence(Cursor cursor, FrameWriterFactory frameWriterFactory)
-
-
-
Field Detail
-
SUBQUERY_ROW_TOO_LARGE_EXCEPTION
public static final DruidException SUBQUERY_ROW_TOO_LARGE_EXCEPTION
Exception to be thrown when the subquery's rows are too wide to fit in a single frame. In such case, byte based limiting should be disabled or the user should modify the query.NOTE: This error message is not appropriate when a similar exception is hit in MSQ, since this workaround is not applicable in that scenario
-
-
Method Detail
-
buildFilter
@Nullable public static Filter buildFilter(@Nullable Filter filter, org.joda.time.Interval interval)
-
cursorToFramesIterable
public static Iterable<Frame> cursorToFramesIterable(Cursor cursor, FrameWriterFactory frameWriterFactory)
-
cursorToFramesSequence
public static Sequence<Frame> cursorToFramesSequence(Cursor cursor, FrameWriterFactory frameWriterFactory)
Writes aCursorto a sequence ofFrame. This method iterates over the rows of the cursor, and writes the columns to the frames- Parameters:
cursor- Cursor to write to the frameframeWriterFactory- Frame writer factory to write to the frame. It also determines the signature of the rows that are written to the frames
-
-