Package org.apache.orc.impl
Class ParserUtils
java.lang.Object
org.apache.orc.impl.ParserUtils
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic interface
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic MaskDescriptionImplbuildMaskDescription(String value) static voidfindColumn(TypeDescription schema, List<String> names, boolean isSchemaEvolutionCaseAware, ParserUtils.TypeVisitor visitor) Find a column in a schema by walking down the type tree to find the right column.static voidfindColumn(TypeDescription schema, ParserUtils.StringPosition source, boolean isSchemaEvolutionCaseAware, ParserUtils.TypeVisitor visitor) Find a column in a schema by walking down the type tree to find the right column.static org.apache.hadoop.hive.ql.exec.vector.ColumnVector[]findColumnVectors(TypeDescription schema, ParserUtils.StringPosition source, boolean isCaseSensitive, org.apache.hadoop.hive.ql.exec.vector.VectorizedRowBatch batch) static voidfindSubtype(TypeDescription schema, int goal, ParserUtils.TypeVisitor visitor) static TypeDescriptionfindSubtype(TypeDescription schema, ParserUtils.StringPosition source) static TypeDescriptionfindSubtype(TypeDescription schema, ParserUtils.StringPosition source, boolean isSchemaEvolutionCaseAware) static List<TypeDescription>findSubtypeList(TypeDescription schema, ParserUtils.StringPosition source) static voidparseKeys(ParserUtils.StringPosition source, TypeDescription schema) Annotate the given schema with the encryption information.static voidparseMasks(ParserUtils.StringPosition source, TypeDescription schema) Annotate the given schema with the masking information.static StringparseName(ParserUtils.StringPosition source) static TypeDescriptionparseType(ParserUtils.StringPosition source) 
- 
Constructor Details- 
ParserUtilspublic ParserUtils()
 
- 
- 
Method Details- 
parseName
- 
parseType
- 
findSubtypepublic static TypeDescription findSubtype(TypeDescription schema, ParserUtils.StringPosition source) 
- 
findSubtypepublic static TypeDescription findSubtype(TypeDescription schema, ParserUtils.StringPosition source, boolean isSchemaEvolutionCaseAware) 
- 
findSubtype
- 
findColumnpublic static void findColumn(TypeDescription schema, ParserUtils.StringPosition source, boolean isSchemaEvolutionCaseAware, ParserUtils.TypeVisitor visitor) Find a column in a schema by walking down the type tree to find the right column.- Parameters:
- schema- the schema to look in
- source- the name of the column
- isSchemaEvolutionCaseAware- should the string compare be case sensitive
- visitor- The visitor, which is called on each level
 
- 
findColumnpublic static void findColumn(TypeDescription schema, List<String> names, boolean isSchemaEvolutionCaseAware, ParserUtils.TypeVisitor visitor) Find a column in a schema by walking down the type tree to find the right column.- Parameters:
- schema- the schema to look in
- names- the name of the column broken into a list of names per level
- isSchemaEvolutionCaseAware- should the string compare be case sensitive
- visitor- The visitor, which is called on each level
 
- 
findColumnVectorspublic static org.apache.hadoop.hive.ql.exec.vector.ColumnVector[] findColumnVectors(TypeDescription schema, ParserUtils.StringPosition source, boolean isCaseSensitive, org.apache.hadoop.hive.ql.exec.vector.VectorizedRowBatch batch) 
- 
findSubtypeListpublic static List<TypeDescription> findSubtypeList(TypeDescription schema, ParserUtils.StringPosition source) 
- 
parseKeysAnnotate the given schema with the encryption information. Format of the string is a key-list.- key-list = key (';' key-list)?
- key = key-name ':' field-list
- field-list = field-name ( ',' field-list )?
- field-name = number | field-part ('.' field-name)?
- field-part = quoted string | simple name
 - Parameters:
- source- the string to parse
- schema- the top level schema
- Throws:
- IllegalArgumentException- if there are conflicting keys for a field
 
- 
parseMasksAnnotate the given schema with the masking information. Format of the string is a mask-list.- mask-list = mask (';' mask-list)?
- mask = mask-name (',' parameter)* ':' field-list
- field-list = field-name ( ',' field-list )?
- field-name = number | field-part ('.' field-name)?
- field-part = quoted string | simple name
 - Parameters:
- source- the string to parse
- schema- the top level schema
- Throws:
- IllegalArgumentException- if there are conflicting masks for a field
 
- 
buildMaskDescription
 
-