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 voidbeginRead(deltix.util.memory.MemoryDataInput in)intcompareAll(deltix.util.memory.MemoryDataInput in1, deltix.util.memory.MemoryDataInput in2)intcomparePrimaryKeys(deltix.util.memory.MemoryDataInput in1, deltix.util.memory.MemoryDataInput in2)intgetArrayLength()voidgetBinary(int srcOffset, int length, byte[] dest, int destOffset)voidgetBinary(int offset, int length, java.io.OutputStream out)intgetBinaryLength()booleangetBoolean()bytegetByte()chargetChar()RecordClassInfogetClassInfo()doublegetDouble()NonStaticFieldInfogetField()UnboundDecodergetFieldDecoder()Used to read nested objectsfloatgetFloat()intgetInt()longgetLong()shortgetShort()java.lang.StringgetString()booleanisNull()Always returnsfalsefor non-nullable field.booleannextField()ReadableValuenextReadableElement()java.io.InputStreamopenBinary()booleanpreviousField()booleanseekField(int index)ValidationErrorvalidate()
-
-
-
Constructor Detail
-
PolyUnboundDecoderImpl
public PolyUnboundDecoderImpl(UnboundDecoder[] decoders)
-
-
Method Detail
-
beginRead
public void beginRead(deltix.util.memory.MemoryDataInput in)
- Specified by:
beginReadin interfaceUnboundDecoder
-
nextField
public boolean nextField()
- Specified by:
nextFieldin interfaceUnboundDecoder
-
previousField
public boolean previousField()
- Specified by:
previousFieldin interfaceUnboundDecoder
-
seekField
public boolean seekField(int index)
- Specified by:
seekFieldin interfaceUnboundDecoder
-
getClassInfo
public RecordClassInfo getClassInfo()
- Specified by:
getClassInfoin interfaceUnboundDecoder
-
isNull
public boolean isNull()
Description copied from interface:ReadableValueAlways returnsfalsefor non-nullable field.- Specified by:
isNullin interfaceReadableValue
-
compareAll
public int compareAll(deltix.util.memory.MemoryDataInput in1, deltix.util.memory.MemoryDataInput in2)- Specified by:
compareAllin interfaceUnboundDecoder
-
comparePrimaryKeys
public int comparePrimaryKeys(deltix.util.memory.MemoryDataInput in1, deltix.util.memory.MemoryDataInput in2)- Specified by:
comparePrimaryKeysin interfaceUnboundDecoder
-
getString
public java.lang.String getString()
- Specified by:
getStringin interfaceReadableValue
-
getLong
public long getLong()
- Specified by:
getLongin interfaceReadableValue
-
getInt
public int getInt()
- Specified by:
getIntin interfaceReadableValue
-
getFloat
public float getFloat()
- Specified by:
getFloatin interfaceReadableValue
-
getField
public NonStaticFieldInfo getField()
- Specified by:
getFieldin interfaceUnboundDecoder
-
getDouble
public double getDouble()
- Specified by:
getDoublein interfaceReadableValue
-
getChar
public char getChar()
- Specified by:
getCharin interfaceReadableValue
-
getByte
public byte getByte() throws NullValueException- Specified by:
getBytein interfaceReadableValue- Throws:
NullValueException
-
getShort
public short getShort() throws NullValueException- Specified by:
getShortin interfaceReadableValue- Throws:
NullValueException
-
getBoolean
public boolean getBoolean()
- Specified by:
getBooleanin interfaceReadableValue
-
getArrayLength
public int getArrayLength() throws NullValueException- Specified by:
getArrayLengthin interfaceReadableValue- Throws:
NullValueException
-
nextReadableElement
public ReadableValue nextReadableElement() throws NullValueException
- Specified by:
nextReadableElementin interfaceReadableValue- Throws:
NullValueException
-
getFieldDecoder
public UnboundDecoder getFieldDecoder() throws NullValueException
Description copied from interface:ReadableValueUsed to read nested objects- Specified by:
getFieldDecoderin interfaceReadableValue- Throws:
NullValueException
-
getBinaryLength
public int getBinaryLength() throws NullValueException- Specified by:
getBinaryLengthin interfaceReadableValue- Throws:
NullValueException
-
getBinary
public void getBinary(int offset, int length, java.io.OutputStream out) throws NullValueException- Specified by:
getBinaryin interfaceReadableValue- Throws:
NullValueException
-
getBinary
public void getBinary(int srcOffset, int length, byte[] dest, int destOffset) throws NullValueException- Specified by:
getBinaryin interfaceReadableValue- Throws:
NullValueException
-
openBinary
public java.io.InputStream openBinary()
- Specified by:
openBinaryin interfaceReadableValue
-
validate
public ValidationError validate()
- Specified by:
validatein interfaceUnboundDecoder
-
-