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 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
-
EmptyUnboundDecoder
public EmptyUnboundDecoder(RecordLayout layout)
-
-
Method Detail
-
beginRead
public void beginRead(deltix.util.memory.MemoryDataInput in)
- Specified by:
beginReadin interfaceUnboundDecoder
-
getClassInfo
public RecordClassInfo getClassInfo()
- Specified by:
getClassInfoin interfaceUnboundDecoder
-
nextField
public boolean nextField()
- Specified by:
nextFieldin interfaceUnboundDecoder
-
getField
public NonStaticFieldInfo getField()
- Specified by:
getFieldin interfaceUnboundDecoder
-
previousField
public boolean previousField()
- Specified by:
previousFieldin interfaceUnboundDecoder
-
seekField
public boolean seekField(int index)
- Specified by:
seekFieldin interfaceUnboundDecoder
-
comparePrimaryKeys
public int comparePrimaryKeys(deltix.util.memory.MemoryDataInput in1, deltix.util.memory.MemoryDataInput in2)- Specified by:
comparePrimaryKeysin interfaceUnboundDecoder
-
compareAll
public int compareAll(deltix.util.memory.MemoryDataInput in1, deltix.util.memory.MemoryDataInput in2)- Specified by:
compareAllin interfaceUnboundDecoder
-
validate
public ValidationError validate()
- Specified by:
validatein interfaceUnboundDecoder
-
isNull
public boolean isNull()
Description copied from interface:ReadableValueAlways returnsfalsefor non-nullable field.- Specified by:
isNullin interfaceReadableValue
-
getBoolean
public boolean getBoolean() throws NullValueException- Specified by:
getBooleanin interfaceReadableValue- Throws:
NullValueException
-
getChar
public char getChar() throws NullValueException- Specified by:
getCharin interfaceReadableValue- Throws:
NullValueException
-
getByte
public byte getByte() throws NullValueException- Specified by:
getBytein interfaceReadableValue- Throws:
NullValueException
-
getShort
public short getShort() throws NullValueException- Specified by:
getShortin interfaceReadableValue- Throws:
NullValueException
-
getInt
public int getInt() throws NullValueException- Specified by:
getIntin interfaceReadableValue- Throws:
NullValueException
-
getLong
public long getLong() throws NullValueException- Specified by:
getLongin interfaceReadableValue- Throws:
NullValueException
-
getFloat
public float getFloat() throws NullValueException- Specified by:
getFloatin interfaceReadableValue- Throws:
NullValueException
-
getDouble
public double getDouble() throws NullValueException- Specified by:
getDoublein interfaceReadableValue- Throws:
NullValueException
-
getString
public java.lang.String getString() throws NullValueException- Specified by:
getStringin interfaceReadableValue- Throws:
NullValueException
-
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() throws NullValueException- Specified by:
openBinaryin interfaceReadableValue- Throws:
NullValueException
-
-