Class TypeUtils
- java.lang.Object
-
- org.apache.pinot.query.runtime.operator.utils.TypeUtils
-
public class TypeUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Objectconvert(Object value, DataSchema.ColumnDataType storedType)Converts value to the desired storedDataSchema.ColumnDataType.static voidconvertRow(Object[] row, DataSchema.ColumnDataType[] outputStoredTypes)Converts row to the desired storedDataSchema.ColumnDataTypes in-place.
-
-
-
Method Detail
-
convert
public static Object convert(Object value, DataSchema.ColumnDataType storedType)
Converts value to the desired storedDataSchema.ColumnDataType. This is used to convert rows generated from single-stage engine to be used in multi-stage engine. TODO: Revisit to see if we should use original type instead of stored type
-
convertRow
public static void convertRow(Object[] row, DataSchema.ColumnDataType[] outputStoredTypes)
Converts row to the desired storedDataSchema.ColumnDataTypes in-place. This is used to convert rows generated from single-stage engine to be used in multi-stage engine.
-
-