return ObjectInspectorFactory.getStandardMapObjectInspector(keyObjectInspector, valueObjectInspector); else if (isRowType(type)) { return ObjectInspectorFactory.getStandardStructObjectInspector( type.getTypeSignature().getParameters().stream()
if (isArrayType(type) || isMapType(type) || isRowType(type)) { return getJavaObjectInspector(type);
if (isRowType(type)) { return new RowFieldSetter(rowInspector, row, field, type.getTypeParameters());
if (isRowType(type)) { Block rowBlock = block.getObject(position, Block.class);
return getMapTypeInfo(keyType, valueType); if (isRowType(type)) { ImmutableList.Builder<String> fieldNames = ImmutableList.builder(); for (TypeSignatureParameter parameter : type.getTypeSignature().getParameters()) {
return toMapValue(block, mapType.getKeyType(), mapType.getValueType()); else if (isRowType(type)) { return toRowValue(block, type.getTypeParameters());
public static ObjectInspector getRowColumnInspector(Type type) { if (type.equals(BooleanType.BOOLEAN)) { return writableBooleanObjectInspector; } if (type.equals(BigintType.BIGINT)) { return writableLongObjectInspector; } if (type.equals(DoubleType.DOUBLE)) { return writableDoubleObjectInspector; } if (type.equals(VarcharType.VARCHAR)) { return writableStringObjectInspector; } if (type.equals(VarbinaryType.VARBINARY)) { return writableBinaryObjectInspector; } if (type.equals(DateType.DATE)) { return writableDateObjectInspector; } if (type.equals(TimestampType.TIMESTAMP)) { return writableTimestampObjectInspector; } if (isArrayType(type) || isMapType(type) || isRowType(type)) { return getJavaObjectInspector(type); } throw new IllegalArgumentException("unsupported type: " + type); }
return ObjectInspectorFactory.getStandardMapObjectInspector(keyObjectInspector, valueObjectInspector); else if (isRowType(type)) { return ObjectInspectorFactory.getStandardStructObjectInspector( type.getTypeSignature().getParameters().stream()
if (isRowType(type)) { return new RowFieldSetter(rowInspector, row, field, type.getTypeParameters());
return getMapTypeInfo(keyType, valueType); if (isRowType(type)) { ImmutableList.Builder<String> fieldNames = ImmutableList.builder(); for (TypeSignatureParameter parameter : type.getTypeSignature().getParameters()) {
if (isRowType(type)) { Block rowBlock = block.getObject(position, Block.class);
return toMapValue(block, mapType.getKeyType(), mapType.getValueType()); else if (isRowType(type)) { return toRowValue(block, type.getTypeParameters());