|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
DataBuffer defines an interface for data sources that can provide full random access to the elements they contain. All data buffers also have a well-known size. Any changes to the objects in the buffer will immediately reflect to all the data streams feeding from the data buffer, although some implementing classes may enforce different synchronization and scope policies.
Type| Method Summary | |
DataValue |
getData(int index)
Gets the specific data element from the data buffer. |
int |
getSize()
Gets the number of data elements in the data buffer. |
DataStream |
getStream(boolean reversed)
Gets a new data stream from the data source. |
| Methods inherited from interface com.davisor.data.stream.DataSource |
close, getStream, toString |
| Methods inherited from interface com.davisor.data.Data |
getType |
| Method Detail |
public DataValue getData(int index)
throws com.davisor.core.InvalidIndexException
index - data element index
com.davisor.core.InvalidIndexException - if no data is bound to given indexpublic int getSize()
public DataStream getStream(boolean reversed)
throws InvalidDataException
reversed - controls if stream reads buffer forwards or backwards
InvalidDataException - if a new stream can not be created
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||