Class DataTableUtils
- java.lang.Object
-
- org.apache.pinot.common.datatable.DataTableUtils
-
public class DataTableUtils extends Object
-
-
Method Summary
Modifier and Type Method Description static intcomputeColumnOffsets(DataSchema dataSchema, int[] columnOffsets, int dataTableVersion)Given aDataSchema, compute each column's offset and fill them into the passed in array, then return the row size in bytes.static StringdecodeString(ByteBuffer buffer)Helper method to decode string.
-
-
-
Method Detail
-
computeColumnOffsets
public static int computeColumnOffsets(DataSchema dataSchema, int[] columnOffsets, int dataTableVersion)
Given aDataSchema, compute each column's offset and fill them into the passed in array, then return the row size in bytes.- Parameters:
dataSchema- data schema.columnOffsets- array of column offsets.- Returns:
- row size in bytes.
-
decodeString
public static String decodeString(ByteBuffer buffer) throws IOException
Helper method to decode string.- Throws:
IOException
-
-