Class FrameColumnReaderUtils
java.lang.Object
org.apache.druid.frame.read.columnar.FrameColumnReaderUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
Constructor Details
-
FrameColumnReaderUtils
public FrameColumnReaderUtils()
-
-
Method Details
-
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).
-