Package deltix.qsrv.hf.codec
Class EmptyUnboundDecoder
- java.lang.Object
-
- deltix.qsrv.hf.codec.EmptyUnboundDecoder
-
- All Implemented Interfaces:
UnboundDecoder
,ReadableValue
public final class EmptyUnboundDecoder extends java.lang.Object implements UnboundDecoder
Date: Feb 18, 2010
-
-
Constructor Summary
Constructors Constructor Description EmptyUnboundDecoder(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)
ValidationError
validate()
-
-
-
Constructor Detail
-
EmptyUnboundDecoder
public EmptyUnboundDecoder(RecordLayout layout)
-
-
Method Detail
-
beginRead
public void beginRead(deltix.util.memory.MemoryDataInput in)
- Specified by:
beginRead
in interfaceUnboundDecoder
-
getClassInfo
public RecordClassInfo getClassInfo()
- Specified by:
getClassInfo
in interfaceUnboundDecoder
-
nextField
public boolean nextField()
- Specified by:
nextField
in interfaceUnboundDecoder
-
getField
public NonStaticFieldInfo getField()
- Specified by:
getField
in interfaceUnboundDecoder
-
previousField
public boolean previousField()
- Specified by:
previousField
in interfaceUnboundDecoder
-
seekField
public boolean seekField(int index)
- Specified by:
seekField
in interfaceUnboundDecoder
-
comparePrimaryKeys
public int comparePrimaryKeys(deltix.util.memory.MemoryDataInput in1, deltix.util.memory.MemoryDataInput in2)
- Specified by:
comparePrimaryKeys
in interfaceUnboundDecoder
-
compareAll
public int compareAll(deltix.util.memory.MemoryDataInput in1, deltix.util.memory.MemoryDataInput in2)
- Specified by:
compareAll
in interfaceUnboundDecoder
-
validate
public ValidationError validate()
- Specified by:
validate
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() throws NullValueException
- Specified by:
getBoolean
in interfaceReadableValue
- Throws:
NullValueException
-
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() throws NullValueException
- Specified by:
getInt
in interfaceReadableValue
- Throws:
NullValueException
-
getLong
public long getLong() throws NullValueException
- Specified by:
getLong
in interfaceReadableValue
- Throws:
NullValueException
-
getFloat
public float getFloat() throws NullValueException
- Specified by:
getFloat
in interfaceReadableValue
- Throws:
NullValueException
-
getDouble
public double getDouble() throws NullValueException
- Specified by:
getDouble
in interfaceReadableValue
- Throws:
NullValueException
-
getString
public java.lang.String getString() throws NullValueException
- Specified by:
getString
in interfaceReadableValue
- Throws:
NullValueException
-
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() throws NullValueException
- Specified by:
openBinary
in interfaceReadableValue
- Throws:
NullValueException
-
-