|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.davisor.data.stream.SimpleDataBuffer
SimpleDataBuffer is a DataBuffer implementation for single DataValues.
Type| Field Summary | |
protected DataValue |
value
The data value. |
| Constructor Summary | |
SimpleDataBuffer(DataValue value)
Constructs a new SimpleDataBuffer from the given DataValue. |
|
| Method Summary | |
boolean |
close()
Dummy implementation for data buffer case. |
boolean |
equals(java.lang.Object o)
Tests if given object equals to this. |
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()
Gets a new data stream from the data source. |
DataStream |
getStream(boolean reversed)
Gets a new data stream from the data source. |
Type |
getType()
Gets the type of this data object. |
int |
hashCode()
Returns the hash code of the underlying DataValue. |
void |
setData(DataValue value)
|
java.lang.String |
toString()
Returns the string representation of this data buffer. |
java.lang.String |
toString(java.lang.String id,
java.lang.String dataName)
Returns a String representation of the DataSource. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected DataValue value
| Constructor Detail |
public SimpleDataBuffer(DataValue value)
| Method Detail |
public Type getType()
throws InvalidDataException
getType in interface DataInvalidDataException - if type retrieval fails
public DataValue getData(int index)
throws com.davisor.core.InvalidIndexException
getData in interface DataBufferindex - data element index
com.davisor.core.InvalidIndexException - if no data is bound to given indexpublic int getSize()
getSize in interface DataBuffer
public DataStream getStream(boolean reversed)
throws InvalidDataException
getStream in interface DataBufferreversed - controls if stream reads buffer forwards or backwards
InvalidDataException - if a new stream can not be createdpublic boolean close()
close in interface DataSource
public DataStream getStream()
throws InvalidDataException
getStream in interface DataSourceInvalidDataException
public java.lang.String toString(java.lang.String id,
java.lang.String dataName)
toString in interface DataSourcepublic boolean equals(java.lang.Object o)
public int hashCode()
public java.lang.String toString()
public void setData(DataValue value)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||