public final class MessageType extends GroupType
Type.ID, Type.Repetition| Constructor and Description |
|---|
MessageType(String name,
List<Type> fields) |
MessageType(String name,
Type... fields) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(TypeVisitor visitor)
Visits this type with the given visitor
|
void |
checkContains(Type subType) |
boolean |
containsPath(String[] path) |
<T> T |
convertWith(TypeConverter<T> converter) |
ColumnDescriptor |
getColumnDescription(String[] path) |
List<ColumnDescriptor> |
getColumns() |
int |
getMaxDefinitionLevel(String... path) |
int |
getMaxRepetitionLevel(String... path) |
List<String[]> |
getPaths() |
Type |
getType(String... path) |
MessageType |
union(MessageType toMerge) |
MessageType |
union(MessageType toMerge,
boolean strict) |
void |
writeToStringBuilder(StringBuilder sb,
String indent)
Writes a string representation to the provided StringBuilder
|
containsField, containsPath, convertChildren, equals, getFieldCount, getFieldIndex, getFieldName, getFields, getMaxDefinitionLevel, getMaxRepetitionLevel, getPaths, getType, getType, getType, hashCode, isPrimitive, typeEquals, typeHashCode, union, union, withId, withNewFields, withNewFieldsasGroupType, asPrimitiveType, eqOrBothNull, equals, getId, getLogicalTypeAnnotation, getName, getOriginalType, getRepetition, isRepetition, toStringpublic MessageType(String name, Type... fields)
name - the name of the typefields - the fields contained by this messagepublic void accept(TypeVisitor visitor)
public void writeToStringBuilder(StringBuilder sb, String indent)
writeToStringBuilder in class GroupTypesb - the StringBuilder to write itself toindent - indentation levelpublic int getMaxRepetitionLevel(String... path)
path - an array of strings representing the name path in this typepublic int getMaxDefinitionLevel(String... path)
path - an array of strings representing the name path in this typepublic ColumnDescriptor getColumnDescription(String[] path)
public List<ColumnDescriptor> getColumns()
public void checkContains(Type subType)
public <T> T convertWith(TypeConverter<T> converter)
public boolean containsPath(String[] path)
public MessageType union(MessageType toMerge)
public MessageType union(MessageType toMerge, boolean strict)
Copyright © 2024 The Apache Software Foundation. All rights reserved.