|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DataScheme
The DataScheme
defines overall scheme of data records and fields.
It contains an indexed list of data records and provides quick access to them.
For the QD, the data scheme represents description of processed data. It shall be provided by some external entity (the APS), and it shall be constant throughout the lifetime of the QD systems.
Method Summary | ||
---|---|---|
DataIntField |
findIntFieldByName(java.lang.String name)
Returns Int-field by its name. |
|
DataObjField |
findObjFieldByName(java.lang.String name)
Returns Obj-field by its name. |
|
DataRecord |
findRecordByName(java.lang.String name)
Returns data record by its name. |
|
SymbolCodec |
getCodec()
Returns symbol codec used in this scheme. |
|
DataRecord |
getRecord(int index)
Returns data record by its index within this scheme. |
|
int |
getRecordCount()
Returns number of records in this scheme. |
|
|
getService(java.lang.Class<T> service_class)
Extension point for additional scheme-specific services. |
|
DataRecord |
readRecordIdentity(java.io.DataInput in)
Deprecated. Record id is always and directly stored as compact int. This method should not be used. |
|
void |
writeRecordIdentity(java.io.DataOutput out,
DataRecord record)
Deprecated. Record id is always and directly stored as compact int. This method should not be used. |
Method Detail |
---|
SymbolCodec getCodec()
int getRecordCount()
DataRecord getRecord(int index)
java.lang.IndexOutOfBoundsException
- if the index is out of range
(index < 0 || index >= getRecordCount()).DataRecord findRecordByName(java.lang.String name)
DataIntField findIntFieldByName(java.lang.String name)
DataObjField findObjFieldByName(java.lang.String name)
void writeRecordIdentity(java.io.DataOutput out, DataRecord record) throws java.io.IOException
java.io.IOException
- as specified data output does.DataRecord readRecordIdentity(java.io.DataInput in) throws java.io.InvalidObjectException, java.io.IOException
java.io.InvalidObjectException
- if required data record is not found in this data scheme.
java.io.IOException
- as specified data input does.<T> T getService(java.lang.Class<T> service_class)
com.devexperts.qd.qtp.SubscriptionFilterFactory
com.devexperts.qd.HistorySubscriptionFilter
com.devexperts.qd.QDErrorHandler
null
if no scheme-specific override for the corresponding service is found.
Default implementation in DefaultScheme
is to use
Services.createService(java.lang.Class
with this scheme's class loader.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |