Class FrameColumnReaderUtils
- java.lang.Object
-
- org.apache.druid.frame.read.columnar.FrameColumnReaderUtils
-
public class FrameColumnReaderUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description FrameColumnReaderUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intadjustCumulativeRowLength(int cumulativeRowLength)Adjusts a negative cumulative row length fromgetCumulativeRowLength(Memory, long, int)to be the actual positive length.static intgetAdjustedCumulativeRowLength(org.apache.datasketches.memory.Memory memory, long offset, int physicalRow)static intgetCumulativeRowLength(org.apache.datasketches.memory.Memory memory, long offset, int physicalRow)Returns cumulative row length, if the row is not null itself, or -(cumulative row length) - 1 if the row is null itself.static booleanisNullRow(int cumulativeRowLength)When given a return value fromgetCumulativeRowLength(Memory, long, int), returns whether the row is null itself (i.e.
-
-
-
Method Detail
-
adjustCumulativeRowLength
public static int adjustCumulativeRowLength(int cumulativeRowLength)
Adjusts a negative cumulative row length fromgetCumulativeRowLength(Memory, long, int)to be the actual positive length.
-
getCumulativeRowLength
public static int getCumulativeRowLength(org.apache.datasketches.memory.Memory memory, long offset, int physicalRow)Returns cumulative row length, if the row is not null itself, or -(cumulative row length) - 1 if the row is null itself. To check if the return value from this function indicate a null row, useisNullRow(int)To get the actual cumulative row length, useadjustCumulativeRowLength(int).
-
getAdjustedCumulativeRowLength
public static int getAdjustedCumulativeRowLength(org.apache.datasketches.memory.Memory memory, long offset, int physicalRow)
-
isNullRow
public static boolean isNullRow(int cumulativeRowLength)
When given a return value fromgetCumulativeRowLength(Memory, long, int), returns whether the row is null itself (i.e. a null array).
-
-