Search in sources :

Example 6 with OrcType

use of com.facebook.presto.orc.metadata.OrcType in project presto by prestodb.

the class StripeReader method includeOrcColumnsRecursive.

private static void includeOrcColumnsRecursive(List<OrcType> types, Set<Integer> result, int typeId) {
    result.add(typeId);
    OrcType type = types.get(typeId);
    int children = type.getFieldCount();
    for (int i = 0; i < children; ++i) {
        includeOrcColumnsRecursive(types, result, type.getFieldTypeIndex(i));
    }
}
Also used : OrcType(com.facebook.presto.orc.metadata.OrcType) Checkpoints.getDictionaryStreamCheckpoint(com.facebook.presto.orc.checkpoint.Checkpoints.getDictionaryStreamCheckpoint) StreamCheckpoint(com.facebook.presto.orc.checkpoint.StreamCheckpoint)

Aggregations

OrcType (com.facebook.presto.orc.metadata.OrcType)6 ImmutableList (com.google.common.collect.ImmutableList)3 Checkpoints.getDictionaryStreamCheckpoint (com.facebook.presto.orc.checkpoint.Checkpoints.getDictionaryStreamCheckpoint)2 StreamCheckpoint (com.facebook.presto.orc.checkpoint.StreamCheckpoint)2 PrestoException (com.facebook.presto.spi.PrestoException)2 StreamReader (com.facebook.presto.orc.reader.StreamReader)1 ColumnInfo (com.facebook.presto.raptor.metadata.ColumnInfo)1 DecimalType (com.facebook.presto.spi.type.DecimalType)1 NamedTypeSignature (com.facebook.presto.spi.type.NamedTypeSignature)1 Type (com.facebook.presto.spi.type.Type)1 TypeSignature (com.facebook.presto.spi.type.TypeSignature)1 TypeSignatureParameter (com.facebook.presto.spi.type.TypeSignatureParameter)1 VarcharType.createUnboundedVarcharType (com.facebook.presto.spi.type.VarcharType.createUnboundedVarcharType)1 LinkedHashSet (java.util.LinkedHashSet)1