public class BinaryRecordDesc extends Object
Modifier and Type | Field and Description |
---|---|
protected static int |
DESC_CANT_CONVERT |
protected static int |
DESC_EVENT_SEQUENCE |
protected static int |
DESC_EVENT_TIME |
protected static int |
DESC_VOID |
protected int[] |
descs |
protected static int |
DIR_READ |
protected static int |
DIR_WRITE |
protected boolean |
empty |
protected static int |
FLAG_SHARES |
protected static int |
FLD_DECIMAL_TO_INT |
protected static int |
FLD_DECIMAL_TO_LONG |
protected static int |
FLD_DECIMAL_TO_SHARES |
protected static int |
FLD_DECIMAL_TO_WIDE_DECIMAL |
protected static int |
FLD_EVENT_SEQUENCE |
protected static int |
FLD_EVENT_TIME |
protected static int |
FLD_EVENT_TIME_SEQUENCE_TO_TIME_MILLIS |
protected static int |
FLD_INT |
protected static int |
FLD_INT_TO_DECIMAL |
protected static int |
FLD_INT_TO_WIDE_DECIMAL |
protected static int |
FLD_LONG |
protected static int |
FLD_LONG_TO_DECIMAL |
protected static int |
FLD_LONG_TO_WIDE_DECIMAL |
protected static int |
FLD_OBJ |
protected static int |
FLD_SHARES_TO_DECIMAL |
protected static int |
FLD_SHARES_TO_WIDE_DECIMAL |
protected static int |
FLD_SHIFT |
protected static int |
FLD_SKIP |
protected static int |
FLD_TIME_MILLIS_TO_EVENT_TIME_SEQUENCE |
protected static int |
FLD_TIME_MILLIS_TO_TIME_SECONDS |
protected static int |
FLD_TIME_SECONDS_TO_TIME_MILLIS |
protected static int |
FLD_WIDE_DECIMAL_TO_DECIMAL |
protected static int |
FLD_WIDE_DECIMAL_TO_INT |
protected static int |
FLD_WIDE_DECIMAL_TO_LONG |
protected static int |
FLD_WIDE_DECIMAL_TO_SHARES |
protected static int |
INDEX_MASK |
protected String[] |
names |
protected int |
nDesc |
protected int |
nDescEventFields |
protected DataRecord |
record |
protected static int |
SER_BYTE |
protected static int |
SER_BYTE_ARRAY |
protected static int |
SER_COMPACT_INT |
protected static int |
SER_INT |
protected static int |
SER_MARSHALLED |
protected static int |
SER_MASK |
protected static int |
SER_OTHER |
protected static int |
SER_PLAIN_OBJECT |
protected static int |
SER_SHIFT |
protected static int |
SER_SHORT |
protected static int |
SER_UTF_CHAR |
protected static int |
SER_UTF_CHAR_ARRAY_STRING |
protected static int |
SER_UTF_STRING |
protected int[] |
types |
Modifier | Constructor and Description |
---|---|
protected |
BinaryRecordDesc(BinaryRecordDesc desc) |
protected |
BinaryRecordDesc(DataRecord record,
boolean eventTimeSequence,
int dir,
boolean wideDecimalSupported) |
protected |
BinaryRecordDesc(DataRecord record,
int nFld,
String[] namesIn,
int[] typesIn,
boolean eventTimeSequence,
int dir) |
Modifier and Type | Method and Description |
---|---|
protected void |
beforeField(com.devexperts.io.BufferedInput msg) |
DataRecord |
getRecord()
Returns actual DataRecord that shall be used for subscription.
|
boolean |
isEmpty()
Returns true when this descriptor was originally empty (did not contain any fields) as opposed to
having an empty intersection with fields in the scheme.
|
protected void |
readFields(com.devexperts.io.BufferedInput msg,
RecordCursor cur,
int nDesc) |
RecordCursor |
readRecord(com.devexperts.io.BufferedInput msg,
RecordBuffer buffer,
int cipher,
String symbol,
int eventFlags)
Reads record from the specified input and adds it to the specified cursor.
|
protected long |
readTime(com.devexperts.io.BufferedInput msg) |
protected void |
setIntValue(RecordCursor cur,
int index,
int value,
com.devexperts.io.BufferedInput msg) |
protected void |
setLongValue(RecordCursor cur,
int index,
long value,
com.devexperts.io.BufferedInput msg) |
protected void |
setObjValue(RecordCursor cur,
int index,
Object value,
com.devexperts.io.BufferedInput msg) |
void |
writeRecord(com.devexperts.io.BufferedOutput msg,
RecordCursor cur,
int eventFlags,
long eventTimeSequence)
Writers record to the specified output from the specified cursor.
|
protected static final int SER_SHIFT
protected static final int SER_MASK
protected static final int SER_OTHER
protected static final int SER_BYTE
protected static final int SER_UTF_CHAR
protected static final int SER_SHORT
protected static final int SER_INT
protected static final int SER_COMPACT_INT
protected static final int SER_UTF_CHAR_ARRAY_STRING
protected static final int SER_BYTE_ARRAY
protected static final int SER_UTF_STRING
protected static final int SER_MARSHALLED
protected static final int SER_PLAIN_OBJECT
protected static final int FLD_SHIFT
protected static final int FLD_SKIP
protected static final int FLD_INT
protected static final int FLD_LONG
protected static final int FLD_OBJ
protected static final int FLD_DECIMAL_TO_INT
protected static final int FLD_INT_TO_DECIMAL
protected static final int FLD_WIDE_DECIMAL_TO_INT
protected static final int FLD_INT_TO_WIDE_DECIMAL
protected static final int FLD_WIDE_DECIMAL_TO_DECIMAL
protected static final int FLD_DECIMAL_TO_WIDE_DECIMAL
protected static final int FLD_DECIMAL_TO_SHARES
protected static final int FLD_SHARES_TO_DECIMAL
protected static final int FLD_WIDE_DECIMAL_TO_SHARES
protected static final int FLD_SHARES_TO_WIDE_DECIMAL
protected static final int FLD_EVENT_TIME
protected static final int FLD_EVENT_SEQUENCE
protected static final int FLD_DECIMAL_TO_LONG
protected static final int FLD_LONG_TO_DECIMAL
protected static final int FLD_WIDE_DECIMAL_TO_LONG
protected static final int FLD_LONG_TO_WIDE_DECIMAL
protected static final int FLD_TIME_MILLIS_TO_TIME_SECONDS
protected static final int FLD_TIME_SECONDS_TO_TIME_MILLIS
protected static final int FLD_TIME_MILLIS_TO_EVENT_TIME_SEQUENCE
protected static final int FLD_EVENT_TIME_SEQUENCE_TO_TIME_MILLIS
protected static final int FLAG_SHARES
protected static final int INDEX_MASK
protected static final int DESC_VOID
protected static final int DESC_EVENT_TIME
protected static final int DESC_EVENT_SEQUENCE
protected static final int DESC_CANT_CONVERT
protected static final int DIR_READ
protected static final int DIR_WRITE
protected final boolean empty
protected final DataRecord record
protected final String[] names
protected final int[] types
protected final int[] descs
protected final int nDesc
protected final int nDescEventFields
protected BinaryRecordDesc(BinaryRecordDesc desc)
protected BinaryRecordDesc(DataRecord record, boolean eventTimeSequence, int dir, boolean wideDecimalSupported) throws com.devexperts.qd.qtp.BinaryRecordDesc.InvalidDescException
com.devexperts.qd.qtp.BinaryRecordDesc.InvalidDescException
protected BinaryRecordDesc(DataRecord record, int nFld, String[] namesIn, int[] typesIn, boolean eventTimeSequence, int dir) throws com.devexperts.qd.qtp.BinaryRecordDesc.InvalidDescException
com.devexperts.qd.qtp.BinaryRecordDesc.InvalidDescException
public DataRecord getRecord()
null
if this description does not refer to any record.public boolean isEmpty()
public RecordCursor readRecord(com.devexperts.io.BufferedInput msg, RecordBuffer buffer, int cipher, String symbol, int eventFlags) throws IOException
null
if nothing was read (the record was skipped).IOException
protected long readTime(com.devexperts.io.BufferedInput msg) throws IOException
IOException
protected void readFields(com.devexperts.io.BufferedInput msg, RecordCursor cur, int nDesc) throws IOException
IOException
protected void beforeField(com.devexperts.io.BufferedInput msg)
protected void setIntValue(RecordCursor cur, int index, int value, com.devexperts.io.BufferedInput msg)
protected void setLongValue(RecordCursor cur, int index, long value, com.devexperts.io.BufferedInput msg)
protected void setObjValue(RecordCursor cur, int index, Object value, com.devexperts.io.BufferedInput msg)
public void writeRecord(com.devexperts.io.BufferedOutput msg, RecordCursor cur, int eventFlags, long eventTimeSequence) throws IOException
IOException
Copyright © 2002–2025 Devexperts LLC. All rights reserved.