Class WritableValueDelegate
- java.lang.Object
-
- deltix.qsrv.hf.tickdb.schema.encoders.WritableValueDelegate
-
- All Implemented Interfaces:
WritableValue
,MixedWritableValue
public class WritableValueDelegate extends java.lang.Object implements MixedWritableValue
-
-
Constructor Summary
Constructors Constructor Description WritableValueDelegate(WritableValue writable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MixedWritableValue
clone(WritableValue out)
UnboundEncoder
getFieldEncoder(RecordClassDescriptor rcd)
WritableValue
nextWritableElement()
Returns a transient (reused by interface implementation) WritableValue object for the next element of the array.void
setArrayLength(int len)
Set length of the array.void
writeBinary(byte[] data, int offset, int length)
void
writeBoolean(boolean value)
void
writeBoolean(double value)
void
writeBoolean(float value)
void
writeBoolean(int value)
void
writeBoolean(long value)
void
writeChar(char value)
void
writeDefault()
void
writeDouble(double value)
void
writeEnum(java.lang.CharSequence value)
void
writeFloat(double value)
void
writeFloat(float value)
void
writeInt(double value)
void
writeInt(int value)
void
writeInt(long value)
void
writeLong(double value)
void
writeLong(float value)
void
writeLong(long value)
void
writeNull()
void
writeString(java.lang.CharSequence value)
-
-
-
Constructor Detail
-
WritableValueDelegate
public WritableValueDelegate(WritableValue writable)
-
-
Method Detail
-
writeBoolean
public void writeBoolean(int value)
- Specified by:
writeBoolean
in interfaceMixedWritableValue
-
writeBoolean
public void writeBoolean(long value)
- Specified by:
writeBoolean
in interfaceMixedWritableValue
-
writeBoolean
public void writeBoolean(float value)
- Specified by:
writeBoolean
in interfaceMixedWritableValue
-
writeBoolean
public void writeBoolean(double value)
- Specified by:
writeBoolean
in interfaceMixedWritableValue
-
writeEnum
public void writeEnum(java.lang.CharSequence value)
- Specified by:
writeEnum
in interfaceMixedWritableValue
-
writeChar
public void writeChar(char value)
- Specified by:
writeChar
in interfaceWritableValue
-
writeInt
public void writeInt(long value)
- Specified by:
writeInt
in interfaceMixedWritableValue
-
writeInt
public void writeInt(double value)
- Specified by:
writeInt
in interfaceMixedWritableValue
-
writeFloat
public void writeFloat(double value)
- Specified by:
writeFloat
in interfaceMixedWritableValue
-
writeLong
public void writeLong(float value)
- Specified by:
writeLong
in interfaceMixedWritableValue
-
writeLong
public void writeLong(double value)
- Specified by:
writeLong
in interfaceMixedWritableValue
-
nextWritableElement
public WritableValue nextWritableElement()
Description copied from interface:WritableValue
Returns a transient (reused by interface implementation) WritableValue object for the next element of the array.
WritableValue.setArrayLength(int)
method must be called before this method.
Client code must not cache the reference for further usage.
Usage sample:encoder.setArrayLength(10); for(int i=0; i<10; i++) { WritableValue v = encoder.nextWritableElement (i); v.setInt(i); }
- Specified by:
nextWritableElement
in interfaceWritableValue
- Returns:
- reference to WritableValue object
-
writeBoolean
public void writeBoolean(boolean value)
- Specified by:
writeBoolean
in interfaceWritableValue
-
writeInt
public void writeInt(int value)
- Specified by:
writeInt
in interfaceWritableValue
-
writeLong
public void writeLong(long value)
- Specified by:
writeLong
in interfaceWritableValue
-
writeFloat
public void writeFloat(float value)
- Specified by:
writeFloat
in interfaceWritableValue
-
writeDouble
public void writeDouble(double value)
- Specified by:
writeDouble
in interfaceWritableValue
-
writeString
public void writeString(java.lang.CharSequence value)
- Specified by:
writeString
in interfaceWritableValue
-
setArrayLength
public void setArrayLength(int len)
Description copied from interface:WritableValue
Set length of the array. It must be called prior to nextWritableElement- Specified by:
setArrayLength
in interfaceWritableValue
- Parameters:
len
- length of the array
-
getFieldEncoder
public UnboundEncoder getFieldEncoder(RecordClassDescriptor rcd)
- Specified by:
getFieldEncoder
in interfaceWritableValue
-
writeBinary
public void writeBinary(byte[] data, int offset, int length)
- Specified by:
writeBinary
in interfaceWritableValue
-
writeNull
public void writeNull()
- Specified by:
writeNull
in interfaceWritableValue
-
writeDefault
public void writeDefault()
- Specified by:
writeDefault
in interfaceMixedWritableValue
-
clone
public MixedWritableValue clone(WritableValue out)
- Specified by:
clone
in interfaceMixedWritableValue
-
-