Package org.apache.thrift.partial
Class ThriftMetadata.ThriftObject
java.lang.Object
org.apache.thrift.partial.ThriftMetadata.ThriftObject
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ThriftMetadata.ThriftContainer,ThriftMetadata.ThriftEnum,ThriftMetadata.ThriftPrimitive,ThriftMetadata.ThriftStructBase
- Enclosing class:
- ThriftMetadata
Base class of field types that can be partially deserialized.
Holds metadata necessary for partial deserialization. The metadata is internally computed
and used; therefore it is not visible to the users of TDeserializer.
- See Also:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionprotected voidappend(StringBuilder sb, String format, Object... args) Helper method to append a formatted string to the givenStringBuilder.protected StringgetIndent(int level) Gets a space string whose length is proportional to the given indent level.protected StringgetName()Gets the name of this field.protected StringgetSubElementName(TFieldIdEnum fieldId) protected StringgetSubElementName(TFieldIdEnum fieldId, String suffix) protected abstract voidtoPrettyString(StringBuilder sb, int level) Converts this instance to formatted and indented string representation.
-
Field Details
-
parent
-
fieldId
-
data
-
additionalData
-
noFields
-
-
Method Details
-
toPrettyString
Converts this instance to formatted and indented string representation.- Parameters:
sb- theStringBuilderto add formatted strings to.level- the current indent level.
-
getIndent
Gets a space string whose length is proportional to the given indent level. -
append
Helper method to append a formatted string to the givenStringBuilder. -
getName
Gets the name of this field. -
getSubElementName
-
getSubElementName
-