Package deltix.qsrv.hf.pub.codec.intp
Class PolyUnboundDecoderImpl
- java.lang.Object
-
- deltix.qsrv.hf.pub.codec.intp.PolyUnboundDecoderImpl
-
- All Implemented Interfaces:
UnboundDecoder
,ReadableValue
public class PolyUnboundDecoderImpl extends java.lang.Object implements UnboundDecoder
-
-
Constructor Summary
Constructors Constructor Description PolyUnboundDecoderImpl(UnboundDecoder[] decoders)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
beginRead(deltix.util.memory.MemoryDataInput in)
int
compareAll(deltix.util.memory.MemoryDataInput in1, deltix.util.memory.MemoryDataInput in2)
int
comparePrimaryKeys(deltix.util.memory.MemoryDataInput in1, deltix.util.memory.MemoryDataInput in2)
int
getArrayLength()
void
getBinary(int srcOffset, int length, byte[] dest, int destOffset)
void
getBinary(int offset, int length, java.io.OutputStream out)
int
getBinaryLength()
boolean
getBoolean()
byte
getByte()
char
getChar()
RecordClassInfo
getClassInfo()
double
getDouble()
NonStaticFieldInfo
getField()
UnboundDecoder
getFieldDecoder()
Used to read nested objectsfloat
getFloat()
int
getInt()
long
getLong()
short
getShort()
java.lang.String
getString()
boolean
isNull()
Always returnsfalse
for non-nullable field.boolean
nextField()
ReadableValue
nextReadableElement()
java.io.InputStream
openBinary()
boolean
previousField()
boolean
seekField(int index)
ValidationError
validate()
-
-
-
Constructor Detail
-
PolyUnboundDecoderImpl
public PolyUnboundDecoderImpl(UnboundDecoder[] decoders)
-
-
Method Detail
-
beginRead
public void beginRead(deltix.util.memory.MemoryDataInput in)
- Specified by:
beginRead
in interfaceUnboundDecoder
-
nextField
public boolean nextField()
- Specified by:
nextField
in interfaceUnboundDecoder
-
previousField
public boolean previousField()
- Specified by:
previousField
in interfaceUnboundDecoder
-
seekField
public boolean seekField(int index)
- Specified by:
seekField
in interfaceUnboundDecoder
-
getClassInfo
public RecordClassInfo getClassInfo()
- Specified by:
getClassInfo
in interfaceUnboundDecoder
-
isNull
public boolean isNull()
Description copied from interface:ReadableValue
Always returnsfalse
for non-nullable field.- Specified by:
isNull
in interfaceReadableValue
-
compareAll
public int compareAll(deltix.util.memory.MemoryDataInput in1, deltix.util.memory.MemoryDataInput in2)
- Specified by:
compareAll
in interfaceUnboundDecoder
-
comparePrimaryKeys
public int comparePrimaryKeys(deltix.util.memory.MemoryDataInput in1, deltix.util.memory.MemoryDataInput in2)
- Specified by:
comparePrimaryKeys
in interfaceUnboundDecoder
-
getString
public java.lang.String getString()
- Specified by:
getString
in interfaceReadableValue
-
getLong
public long getLong()
- Specified by:
getLong
in interfaceReadableValue
-
getInt
public int getInt()
- Specified by:
getInt
in interfaceReadableValue
-
getFloat
public float getFloat()
- Specified by:
getFloat
in interfaceReadableValue
-
getField
public NonStaticFieldInfo getField()
- Specified by:
getField
in interfaceUnboundDecoder
-
getDouble
public double getDouble()
- Specified by:
getDouble
in interfaceReadableValue
-
getChar
public char getChar()
- Specified by:
getChar
in interfaceReadableValue
-
getByte
public byte getByte() throws NullValueException
- Specified by:
getByte
in interfaceReadableValue
- Throws:
NullValueException
-
getShort
public short getShort() throws NullValueException
- Specified by:
getShort
in interfaceReadableValue
- Throws:
NullValueException
-
getBoolean
public boolean getBoolean()
- Specified by:
getBoolean
in interfaceReadableValue
-
getArrayLength
public int getArrayLength() throws NullValueException
- Specified by:
getArrayLength
in interfaceReadableValue
- Throws:
NullValueException
-
nextReadableElement
public ReadableValue nextReadableElement() throws NullValueException
- Specified by:
nextReadableElement
in interfaceReadableValue
- Throws:
NullValueException
-
getFieldDecoder
public UnboundDecoder getFieldDecoder() throws NullValueException
Description copied from interface:ReadableValue
Used to read nested objects- Specified by:
getFieldDecoder
in interfaceReadableValue
- Throws:
NullValueException
-
getBinaryLength
public int getBinaryLength() throws NullValueException
- Specified by:
getBinaryLength
in interfaceReadableValue
- Throws:
NullValueException
-
getBinary
public void getBinary(int offset, int length, java.io.OutputStream out) throws NullValueException
- Specified by:
getBinary
in interfaceReadableValue
- Throws:
NullValueException
-
getBinary
public void getBinary(int srcOffset, int length, byte[] dest, int destOffset) throws NullValueException
- Specified by:
getBinary
in interfaceReadableValue
- Throws:
NullValueException
-
openBinary
public java.io.InputStream openBinary()
- Specified by:
openBinary
in interfaceReadableValue
-
validate
public ValidationError validate()
- Specified by:
validate
in interfaceUnboundDecoder
-
-