Package deltix.qsrv.hf.pub.codec.intp
Class FixedUnboundDecoderImpl
- java.lang.Object
-
- deltix.qsrv.hf.pub.codec.intp.FixedUnboundDecoderImpl
-
- All Implemented Interfaces:
UnboundDecoder
,ReadableValue
public class FixedUnboundDecoderImpl extends java.lang.Object implements UnboundDecoder
Interpreting fixed unbound record decoder.
-
-
Constructor Summary
Constructors Constructor Description FixedUnboundDecoderImpl(RecordLayout layout)
-
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)
protected void
setUpForCompare(deltix.util.memory.MemoryDataInput in1, deltix.util.memory.MemoryDataInput in2)
ValidationError
validate()
-
-
-
Constructor Detail
-
FixedUnboundDecoderImpl
public FixedUnboundDecoderImpl(RecordLayout layout)
-
-
Method Detail
-
getClassInfo
public RecordClassInfo getClassInfo()
- Specified by:
getClassInfo
in interfaceUnboundDecoder
-
beginRead
public void beginRead(deltix.util.memory.MemoryDataInput in)
- Specified by:
beginRead
in interfaceUnboundDecoder
-
getField
public NonStaticFieldInfo getField()
- Specified by:
getField
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
-
isNull
public boolean isNull()
Description copied from interface:ReadableValue
Always returnsfalse
for non-nullable field.- Specified by:
isNull
in interfaceReadableValue
-
getBoolean
public boolean getBoolean()
- Specified by:
getBoolean
in interfaceReadableValue
-
getChar
public char getChar() throws NullValueException
- Specified by:
getChar
in interfaceReadableValue
- Throws:
NullValueException
-
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
-
getInt
public int getInt()
- Specified by:
getInt
in interfaceReadableValue
-
getLong
public long getLong()
- Specified by:
getLong
in interfaceReadableValue
-
getFloat
public float getFloat()
- Specified by:
getFloat
in interfaceReadableValue
-
getDouble
public double getDouble()
- Specified by:
getDouble
in interfaceReadableValue
-
getString
public java.lang.String getString()
- Specified by:
getString
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
-
setUpForCompare
protected void setUpForCompare(deltix.util.memory.MemoryDataInput in1, deltix.util.memory.MemoryDataInput in2)
-
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
-
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
-
-