|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.davisor.data.stream.ProxyDataBuffer.ProxyDataStream
ProxyDataStream implements a single column view to a multi column stream.
| Field Summary | |
protected DataStream |
M_dataStream
The data stream this proxy refers to. |
protected boolean |
M_reversed
Controls if stream reads buffer forwards or backwards. |
| Fields inherited from interface com.davisor.data.stream.DataStream |
INITIAL_INDEX |
| Constructor Summary | |
ProxyDataBuffer.ProxyDataStream(boolean reversed)
Creates a new proxy data stream. |
|
ProxyDataBuffer.ProxyDataStream(boolean reversed,
long index)
Creates a new proxy data stream that starts reading data from given stream position. |
|
| Method Summary | |
boolean |
close()
Dummy implementation for buffer case. |
long |
getIndex()
Retrieves the index number of the element returned by the latest next() call. |
java.lang.Object |
getMetaData()
Deprecated. replaced with Type.getMetaData() |
Type |
getType()
Gets the type of this data object. |
boolean |
hasNext()
Tests if the stream still contains data. |
DataValue |
next()
Gets the next data from the stream. |
void |
setMetaData(java.lang.Object metaData)
Deprecated. replaced with Type.setMetaData(Map) |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected DataStream M_dataStream
protected boolean M_reversed
| Constructor Detail |
public ProxyDataBuffer.ProxyDataStream(boolean reversed)
throws InvalidDataException
reversed - controls if stream reads buffer forwards or backwards
java.lang.NullPointerException - if the source buffer is null
InvalidDataException
public ProxyDataBuffer.ProxyDataStream(boolean reversed,
long index)
throws InvalidDataException
reversed - controls if stream reads buffer forwards or backwardsindex - number of elements to skip from the head of the stream
java.lang.NullPointerException - if the source buffer is null
InvalidDataException| Method Detail |
public boolean close()
close in interface DataStreamDataStream.hasNext()
public Type getType()
throws InvalidDataException
getType in interface Datajava.lang.ClassCastException - if a target type could not be resolved
InvalidDataException - if type retrieval fails
java.lang.NullPointerException - if the source buffer is nullpublic long getIndex()
next() call. The index represents the position of the
element within this stream. The stream index may or may
not be equal to any other indexes the element itself thinks it
posesses.
The index value is initially -1, indicating no
element. After first next() call, index becomes 0, then
1, and so on. This functionality resembles
java.sql.resultSet#getRow method functionality, but
with the difference that the index counter starts from 0, not 1.
getIndex in interface DataStreamjava.lang.NullPointerException - if the source buffer is nullpublic java.lang.Object getMetaData()
Type.getMetaData()
This method does nothing as it would be impossible to implement because the underlying and now deprecated meta data mechanism does not allow meta data to be assosiated to any particular stream column.
nullpublic boolean hasNext()
hasNext in interface DataStreamtrue if it does.
java.lang.NullPointerException - if the source buffer is null
public DataValue next()
throws InvalidDataException
next in interface DataStreamInvalidDataException - if no data element could be retrieved
java.lang.NullPointerException - if the source buffer is nullpublic void setMetaData(java.lang.Object metaData)
Type.setMetaData(Map)
This method does nothing as it would be impossible to implement because the underlying and now deprecated meta data mechanism does not allow meta data to be assosiated to any particular column.
metaData - an application spesific meta data object
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||