Class TypeUtils


  • public class TypeUtils
    extends Object
    • Method Detail

      • convert

        public static Object convert​(Object value,
                                     DataSchema.ColumnDataType storedType)
        Converts value to the desired stored DataSchema.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 stored DataSchema.ColumnDataTypes in-place. This is used to convert rows generated from single-stage engine to be used in multi-stage engine.