Package deltix.qsrv.hf.pub
Class UnboundWriter<T>
- java.lang.Object
-
- deltix.qsrv.hf.pub.UnboundWriter<T>
-
- Direct Known Subclasses:
JSONRawMessageParser
public class UnboundWriter<T> extends java.lang.Object
Helper for Unbound Codecs
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
typePropertyName
-
Constructor Summary
Constructors Constructor Description UnboundWriter(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.Object
getObjectType(T value)
Return object type specification: can be RecordClassDescriptor instance, name of RecordClassDescriptor, GUID of RecordClassDescriptorprotected RecordClassDescriptor
matchObjectType(T value, ClassDataType type)
protected RecordClassDescriptor
matchObjectType(T value, RecordClassDescriptor[] rcds)
void
writeArray(java.lang.Iterable<T> value, int size, ArrayDataType type, WritableValue uenc)
void
writeArray(T value, ArrayDataType type, WritableValue uenc)
void
writeField(T value, UnboundEncoder uenc)
void
writeField(T value, DataType type, WritableValue uenc)
void
writeObject(java.util.Map<java.lang.String,T> values, UnboundEncoder encoder)
void
writeObject(T value, UnboundEncoder encoder)
-
-
-
Method Detail
-
getObjectType
protected java.lang.Object getObjectType(T value)
Return object type specification: can be RecordClassDescriptor instance, name of RecordClassDescriptor, GUID of RecordClassDescriptor- Parameters:
value
- values container- Returns:
- object type specification
-
matchObjectType
protected RecordClassDescriptor matchObjectType(T value, ClassDataType type)
-
matchObjectType
protected RecordClassDescriptor matchObjectType(T value, RecordClassDescriptor[] rcds)
-
writeField
public void writeField(T value, UnboundEncoder uenc)
-
writeField
public void writeField(T value, DataType type, WritableValue uenc)
-
writeArray
public void writeArray(java.lang.Iterable<T> value, int size, ArrayDataType type, WritableValue uenc)
-
writeObject
public void writeObject(java.util.Map<java.lang.String,T> values, UnboundEncoder encoder)
-
writeArray
public void writeArray(T value, ArrayDataType type, WritableValue uenc)
-
writeObject
public void writeObject(T value, UnboundEncoder encoder)
-
-