@Service
public interface DataScheme
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.
Modifier and Type | Method and Description |
---|---|
DataIntField |
findIntFieldByName(String name)
Deprecated.
Find record using
findRecordByName(String)
and find its field using DataRecord.findFieldByName(String) . |
DataObjField |
findObjFieldByName(String name)
Deprecated.
Find record using
findRecordByName(String)
and find its field using DataRecord.findFieldByName(String) . |
DataRecord |
findRecordByName(String name)
Returns data record by its name.
|
SymbolCodec |
getCodec()
Returns symbol codec used in this scheme.
|
default String |
getDigest()
Returns digest of the scheme.
|
DataRecord |
getRecord(int index)
Returns data record by its index within this scheme.
|
int |
getRecordCount()
Returns number of records in this scheme.
|
<T> T |
getService(Class<T> service_class)
Extension point for additional scheme-specific services.
|
SymbolCodec getCodec()
int getRecordCount()
DataRecord getRecord(int index)
IndexOutOfBoundsException
- if the index is out of range
(index < 0 || index >= getRecordCount()).DataRecord findRecordByName(String name)
DataIntField findIntFieldByName(String name)
findRecordByName(String)
and find its field using DataRecord.findFieldByName(String)
.full name
.
Returns null if no such fields exists.DataObjField findObjFieldByName(String name)
findRecordByName(String)
and find its field using DataRecord.findFieldByName(String)
.full name
.
Returns null if no such fields exists.<T> T getService(Class<T> service_class)
null
if no scheme-specific override for the corresponding service is found.
Default implementation in DefaultScheme
is to use
Services.createService(java.lang.Class<T>, java.lang.ClassLoader, java.lang.String)
with this scheme's class loader.
default String getDigest()
Returns null
by default.
Copyright © 2002–2025 Devexperts LLC. All rights reserved.