public class OrcUtils extends Object
Constructor and Description |
---|
OrcUtils() |
Modifier and Type | Method and Description |
---|---|
static int |
appendOrcTypesRebuildSubtypes(List<OrcProto.Type> result,
List<OrcProto.Type> types,
int columnId)
NOTE: This method ignores the subtype numbers in the OrcProto.Type rebuilds the subtype
numbers based on the length of the result list being appended.
|
static void |
appendOrcTypesRebuildSubtypes(List<OrcProto.Type> result,
TypeDescription typeDescr)
NOTE: This method ignores the subtype numbers in the TypeDescription rebuilds the subtype
numbers based on the length of the result list being appended.
|
static List<StripeInformation> |
convertProtoStripesToStripes(List<OrcProto.StripeInformation> stripes) |
static TypeDescription |
convertTypeFromProtobuf(List<OrcProto.Type> types,
int rootColumn)
Translate the given rootColumn from the list of types to a TypeDescription.
|
static List<OrcProto.Type> |
getOrcTypes(TypeDescription typeDescr) |
static boolean[] |
includeColumns(String selectedColumns,
TypeDescription schema)
Returns selected columns as a boolean array with true value set for specified column names.
|
public static boolean[] includeColumns(String selectedColumns, TypeDescription schema)
selectedColumns
- - comma separated list of selected column namesschema
- - object schemapublic static List<OrcProto.Type> getOrcTypes(TypeDescription typeDescr)
public static void appendOrcTypesRebuildSubtypes(List<OrcProto.Type> result, TypeDescription typeDescr)
result
- typeDescr
- public static int appendOrcTypesRebuildSubtypes(List<OrcProto.Type> result, List<OrcProto.Type> types, int columnId)
result
- types
- columnId
- public static TypeDescription convertTypeFromProtobuf(List<OrcProto.Type> types, int rootColumn)
types
- all of the typesrootColumn
- translate this typepublic static List<StripeInformation> convertProtoStripesToStripes(List<OrcProto.StripeInformation> stripes)
Copyright © 2016 The Apache Software Foundation. All rights reserved.