|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.davisor.data.stream.IndirectDataBuffer
IndirectDataBuffer is an abstract base class for DataBuffers which are
implemented on top of other DataBuffers. This class provides default
implementations for most of the DataBuffer interface methods based on the
underlying DataBuffer implementation, but at least
methods getData(int) and getStream(boolean)
must be implemented in sub classes.
getData(int),
getStream(boolean),
Type| Field Summary | |
protected DataBuffer |
M_dataBuffer
The data buffer. |
| Constructor Summary | |
protected |
IndirectDataBuffer(DataBuffer dataBuffer)
Constructs a new IndirectDataBuffer from the given DataBuffer. |
| Method Summary | |
boolean |
close()
Closing of data buffers is usually not so important, than to close importing data sources. |
boolean |
equals(java.lang.Object o)
Tests if given object equals to this. |
abstract 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. |
abstract 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. |
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 DataBuffer M_dataBuffer
| Constructor Detail |
protected IndirectDataBuffer(DataBuffer dataBuffer)
| Method Detail |
public boolean close()
close in interface DataSource
public Type getType()
throws InvalidDataException
getType in interface DataInvalidDataException - if type retrieval failsData.getType()
public abstract 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 abstract 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 created
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()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||