presto-raptor-legacy/src/main/java/io/prestosql/plugin/raptor/legacy/storage/Row.java/Row/getNativeContainerValue
class Row:    private static Object getNativeContainerValue(Type type, Block block, int position)
    {
        if (block.isNull(position)) {
            return null;
        }
        else if (type.getJavaType() == boolean.class) {
            return type.getBoolean(block, position);
        }
        else if (type.getJavaType() == long.class) {
            return type.getLong(block, position);
        }
        else if (type.getJavaType() == double.class) {
            return type.getDouble(block, position);
        }
        else if (type.getJavaType() == Slice.class) {
            return type.getSlice(block, position);
        }
        else if (type.getJavaType() == Block.class) {
            return type.getObject(block, position);
        }
        else {
            throw new AssertionError("Unimplemented type: " + type);
        }
    }