Package deltix.qsrv.hf.tickdb.pub
Class RawMessageUtils
- java.lang.Object
-
- deltix.qsrv.hf.tickdb.pub.RawMessageUtils
-
public abstract class RawMessageUtils extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected deltix.util.collections.generated.ObjectToObjectHashMap<java.lang.String,UnboundDecoder>
decoders
protected deltix.util.collections.generated.ObjectToObjectHashMap<java.lang.String,FixedUnboundEncoder>
encoders
CodecMetaFactory
factory
protected deltix.util.memory.MemoryDataInput
input
protected deltix.util.memory.MemoryDataOutput
output
-
Constructor Summary
Constructors Constructor Description RawMessageUtils()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract java.lang.Object
decodeArray(ReadableValue decoder, ArrayDataType type)
protected abstract java.lang.Object
decodeBinary(ReadableValue decoder, DataType type)
protected abstract java.lang.Object
decodeClass(ReadableValue decoder, DataType type)
java.lang.Object
decodeValue(ReadableValue decoder, DataType type)
protected abstract void
encodeArray(java.lang.Object values, ArrayDataType type, WritableValue encoder)
protected abstract void
encodeBinary(java.lang.Object value, WritableValue encoder)
protected abstract void
encodeClass(java.lang.Object values, ClassDataType type, WritableValue encoder)
void
encodeValue(WritableValue encoder, NonStaticFieldInfo info, java.lang.Object value)
void
encodeValue(WritableValue encoder, DataType type, java.lang.Object value)
protected UnboundDecoder
getDecoder(RecordClassDescriptor type)
protected FixedUnboundEncoder
getEncoder(RecordClassDescriptor type)
static int
indexOfType(java.lang.String obj, RecordClassDescriptor[] classDescriptors)
-
-
-
Field Detail
-
factory
public CodecMetaFactory factory
-
input
protected final deltix.util.memory.MemoryDataInput input
-
output
protected final deltix.util.memory.MemoryDataOutput output
-
encoders
protected final deltix.util.collections.generated.ObjectToObjectHashMap<java.lang.String,FixedUnboundEncoder> encoders
-
decoders
protected final deltix.util.collections.generated.ObjectToObjectHashMap<java.lang.String,UnboundDecoder> decoders
-
-
Method Detail
-
decodeValue
public java.lang.Object decodeValue(ReadableValue decoder, DataType type)
-
decodeBinary
protected abstract java.lang.Object decodeBinary(ReadableValue decoder, DataType type)
-
decodeClass
protected abstract java.lang.Object decodeClass(ReadableValue decoder, DataType type)
-
decodeArray
protected abstract java.lang.Object decodeArray(ReadableValue decoder, ArrayDataType type)
-
encodeValue
public void encodeValue(WritableValue encoder, NonStaticFieldInfo info, java.lang.Object value)
-
encodeValue
public void encodeValue(WritableValue encoder, DataType type, java.lang.Object value)
-
encodeBinary
protected abstract void encodeBinary(java.lang.Object value, WritableValue encoder)
-
encodeArray
protected abstract void encodeArray(java.lang.Object values, ArrayDataType type, WritableValue encoder)
-
encodeClass
protected abstract void encodeClass(java.lang.Object values, ClassDataType type, WritableValue encoder)
-
getDecoder
protected UnboundDecoder getDecoder(RecordClassDescriptor type)
-
getEncoder
protected FixedUnboundEncoder getEncoder(RecordClassDescriptor type)
-
indexOfType
public static int indexOfType(java.lang.String obj, RecordClassDescriptor[] classDescriptors)
-
-