|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.davisor.data.stream.DataBuffers
DataBuffers provides tools for DataBuffer manipulation.
Type| Constructor Summary | |
DataBuffers()
|
|
| Method Summary | |
static DataBuffer |
removeNulls(DataBuffer buffer)
Copies non-null buffer elements into a new list data buffer. |
static DataBuffer[] |
toListBuffers(DataBuffer buffer)
Copies given data buffer column content into corresponding list data buffers. |
static java.util.List[] |
toLists(DataBuffer buffer)
Copies given data buffer column content into corresponding lists. |
static DataBuffer[] |
toProxyBuffers(DataBuffer buffer)
Creates proxy buffers giving single column views to corresponding columns in given data buffer. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DataBuffers()
| Method Detail |
public static DataBuffer[] toListBuffers(DataBuffer buffer)
throws InvalidDataException
buffer - buffer to copy content from
InvalidDataException - if buffer content access failstoLists(com.davisor.data.stream.DataBuffer),
toProxyBuffers(com.davisor.data.stream.DataBuffer)
public static java.util.List[] toLists(DataBuffer buffer)
throws InvalidDataException
buffer - buffer to copy content from
InvalidDataException - if buffer content access failstoListBuffers(com.davisor.data.stream.DataBuffer)
public static DataBuffer[] toProxyBuffers(DataBuffer buffer)
throws InvalidDataException,
com.davisor.core.InvalidIndexException
toListBuffers(com.davisor.data.stream.DataBuffer), this
method does not copy buffer content, but creates tools that just
transparently access data in given data buffer.
If the given buffer has already a single simple type column (not
of TupleType), the buffer is returned as it is in a
single slot array. Otherwise an array of ProxyDataBuffer
objects is created and returned.
buffer - source data buffer
InvalidDataException - if buffer type resolvation fails
com.davisor.core.InvalidIndexException - if buffer column access failsProxyDataBuffer,
toListBuffers(com.davisor.data.stream.DataBuffer)
public static DataBuffer removeNulls(DataBuffer buffer)
throws InvalidDataException
buffer - buffer to copy
InvalidDataException - if buffer content access fails
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||