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

public abstract static class ThriftMetadata.ThriftObject extends Object implements Serializable
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 Details

  • Method Details

    • toPrettyString

      protected abstract void toPrettyString(StringBuilder sb, int level)
      Converts this instance to formatted and indented string representation.
      Parameters:
      sb - the StringBuilder to add formatted strings to.
      level - the current indent level.
    • getIndent

      protected String getIndent(int level)
      Gets a space string whose length is proportional to the given indent level.
    • append

      protected void append(StringBuilder sb, String format, Object... args)
      Helper method to append a formatted string to the given StringBuilder.
    • getName

      protected String getName()
      Gets the name of this field.
    • getSubElementName

      protected String getSubElementName(TFieldIdEnum fieldId)
    • getSubElementName

      protected String getSubElementName(TFieldIdEnum fieldId, String suffix)