Package org.apache.parquet.schema
Class MessageType
java.lang.Object
org.apache.parquet.schema.Type
org.apache.parquet.schema.GroupType
org.apache.parquet.schema.MessageType
The root of a schema
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.parquet.schema.Type
Type.ID, Type.Repetition -
Constructor Summary
ConstructorsConstructorDescriptionMessageType(String name, List<Type> fields) MessageType(String name, Type... fields) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(TypeVisitor visitor) Visits this type with the given visitorvoidcheckContains(Type subType) booleancontainsPath(String[] path) <T> TconvertWith(TypeConverter<T> converter) getColumnDescription(String[] path) intgetMaxDefinitionLevel(String... path) intgetMaxRepetitionLevel(String... path) getPaths()union(MessageType toMerge) union(MessageType toMerge, boolean strict) voidwriteToStringBuilder(StringBuilder sb, String indent) Writes a string representation to the provided StringBuilderMethods inherited from class org.apache.parquet.schema.GroupType
containsField, containsPath, convertChildren, equals, getFieldCount, getFieldIndex, getFieldName, getFields, getMaxDefinitionLevel, getMaxRepetitionLevel, getPaths, getType, getType, getType, hashCode, isPrimitive, typeEquals, typeHashCode, union, union, withId, withNewFields, withNewFieldsMethods inherited from class org.apache.parquet.schema.Type
asGroupType, asPrimitiveType, eqOrBothNull, equals, getId, getLogicalTypeAnnotation, getName, getOriginalType, getRepetition, isRepetition, toString
-
Constructor Details
-
MessageType
- Parameters:
name- the name of the typefields- the fields contained by this message
-
MessageType
- Parameters:
name- the name of the typefields- the fields contained by this message
-
-
Method Details
-
accept
Visits this type with the given visitor -
writeToStringBuilder
Writes a string representation to the provided StringBuilder- Overrides:
writeToStringBuilderin classGroupType- Parameters:
sb- the StringBuilder to write itself toindent- indentation level
-
getMaxRepetitionLevel
- Parameters:
path- an array of strings representing the name path in this type- Returns:
- the max repetition level that might be needed to encode the type at 'path'.
-
getMaxDefinitionLevel
- Parameters:
path- an array of strings representing the name path in this type- Returns:
- the max repetition level that might be needed to encode the type at 'path'.
-
getType
-
getColumnDescription
-
getPaths
-
getColumns
-
checkContains
-
convertWith
-
containsPath
-
union
-
union
-