Package org.apache.thrift.partial
Class ThriftMetadata.ThriftUnion<U extends TBase>
java.lang.Object
org.apache.thrift.partial.ThriftMetadata.ThriftObject
org.apache.thrift.partial.ThriftMetadata.ThriftStructBase
org.apache.thrift.partial.ThriftMetadata.ThriftUnion<U>
- All Implemented Interfaces:
Serializable
- Enclosing class:
- ThriftMetadata
public static class ThriftMetadata.ThriftUnion<U extends TBase>
extends ThriftMetadata.ThriftStructBase
Metadata of a Thrift union. Currently not adequately supported.
- See Also:
-
Field Summary
Fields inherited from class org.apache.thrift.partial.ThriftMetadata.ThriftObject
additionalData, data, fieldId, noFields, parent
-
Constructor Summary
ConstructorDescriptionThriftUnion
(ThriftMetadata.ThriftObject parent, TFieldIdEnum fieldId, FieldMetaData data, Iterable<ThriftField> fieldsData) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
toPrettyString
(StringBuilder sb, int level) Converts this instance to formatted and indented string representation.Methods inherited from class org.apache.thrift.partial.ThriftMetadata.ThriftStructBase
create, getStructClass, getStructClass, isUnion, isUnion
Methods inherited from class org.apache.thrift.partial.ThriftMetadata.ThriftObject
append, getIndent, getName, getSubElementName, getSubElementName
-
Constructor Details
-
ThriftUnion
public ThriftUnion(ThriftMetadata.ThriftObject parent, TFieldIdEnum fieldId, FieldMetaData data, Iterable<ThriftField> fieldsData)
-
-
Method Details
-
toPrettyString
Description copied from class:ThriftMetadata.ThriftObject
Converts this instance to formatted and indented string representation.- Specified by:
toPrettyString
in classThriftMetadata.ThriftObject
- Parameters:
sb
- theStringBuilder
to add formatted strings to.level
- the current indent level.
-