Class GraphProtostuffOutput
- All Implemented Interfaces:
Output
A ProtostuffOutput w/c can handle cyclic dependencies when serializing objects with graph transformations.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final classA trimed-down version of IdentityHashMap w/c caters to the specific needs of.invalid reference
GraphOutput -
Field Summary
FieldsFields inherited from class FilterOutput
output -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> voidwriteObject(int fieldNumber, T value, Schema<T> schema, boolean repeated) Writes an object(using its schema) field.Methods inherited from class FilterOutput
writeBool, writeByteArray, writeByteRange, writeBytes, writeBytes, writeDouble, writeEnum, writeFixed32, writeFixed64, writeFloat, writeInt32, writeInt64, writeSFixed32, writeSFixed64, writeSInt32, writeSInt64, writeString, writeUInt32, writeUInt64
-
Field Details
-
references
-
refCount
private int refCount
-
-
Constructor Details
-
GraphProtostuffOutput
-
GraphProtostuffOutput
-
-
Method Details
-
writeObject
public <T> void writeObject(int fieldNumber, T value, Schema<T> schema, boolean repeated) throws IOException Description copied from interface:OutputWrites an object(using its schema) field.- Specified by:
writeObjectin interfaceOutput- Overrides:
writeObjectin classFilterOutput<ProtostuffOutput>- Throws:
IOException
-