@Override
    public Object get(int ordinal, DataType dataType) {
        switch (dataType) {
            case BooleanType:
                return getBoolean(ordinal);
            case IntegerType:
                return getInt(ordinal);
            case LongType:
                return getLong(ordinal);
            case FloatType:
                return getFloat(ordinal);
            case DoubleType:
                return getDouble(ordinal);
            case StringType:
                return getString(ordinal);
            //return getStruct(ordinal, ((StructType) dataType).size());
            default:
                throw new UnsupportedOperationException("Unsupported data type " + dataType.typeName());
        }
    }
Update this UnsafeRow to point to the underlying byte array.

@param buf         byte array to point to
@param sizeInBytes the number of bytes valid in the byte array
indexr-query-opt/src/main/java/io/indexr/query/row/UnsafeRow.java