Class FrameColumnReaderUtils

java.lang.Object
org.apache.druid.frame.read.columnar.FrameColumnReaderUtils

public class FrameColumnReaderUtils extends Object
  • Constructor Details

    • FrameColumnReaderUtils

      public FrameColumnReaderUtils()
  • Method Details

    • adjustCumulativeRowLength

      public static int adjustCumulativeRowLength(int cumulativeRowLength)
      Adjusts a negative cumulative row length from getCumulativeRowLength(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, use isNullRow(int) To get the actual cumulative row length, use adjustCumulativeRowLength(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 from getCumulativeRowLength(Memory, long, int), returns whether the row is null itself (i.e. a null array).