public interface Queue extends DataCollection, java.util.Queue
Title: Dataspace Framework
Description: Queue collection interface.
Queue
javadoc.
Copyright: Copyright (c) 2011
Company: StreamScape Technologies
Modifier and Type | Method and Description |
---|---|
void |
addRow(java.lang.Object[] row)
Adds row to current the queue.
|
void |
addRows(java.lang.Object[][] rows)
Adds rows to current the queue.
|
int |
drainRowsTo(Queue queue)
Moves rows from current queue to specified queue.
|
int |
drainRowsTo(Queue queue,
java.lang.String selector)
Moves rows that accept specified selector from current queue to specified queue.
|
void |
drainToMap(java.util.Map map)
Dumps the data (with removal) from current collection into provided Map
|
void |
drainToQueue(java.util.Queue queue)
Dumps the data (with removal) from current collection into provided Queue.
|
void |
drainToRowSet(RowSet rowSet)
Dumps the data (with removal) from current collection into provided RowSet
|
void |
drainToTable(Table table)
Dumps the data (with removal) from current collection into provided
table collection.
|
java.lang.Object |
elementLast()
Retrieves, but does not remove, the last added of this queue.
|
void |
fromMap(java.util.Map map)
Loads collection with data from provided Map
|
void |
fromQueue(java.util.Queue queue)
Loads collection with data from provided Queue
|
void |
fromRowSet(RowSet rowSet)
Loads collection with data from provided RowSet
|
void |
fromTable(Table table)
Loads current collection with the data from provided
table collection.
|
java.lang.Object |
peekLast()
Retrieves, but does not remove, the last added of this queue,
or returns
null if this queue is empty. |
java.lang.Object |
pollLast()
Retrieves and removes the last added of this queue,
or returns
null if this queue is empty. |
java.lang.Object |
removeLast()
Retrieves and removes the last added of this queue.
|
java.util.Map |
toMap()
Converts existing collection data into Map.
|
Map |
toMapCollection()
Creates new transient map collection and loads it with the
data from current collection.
|
java.util.Queue |
toQueue()
Converts existing collection data into Map.
|
Queue |
toQueueCollection()
Creates new transient queue collection and loads it with the
data from current collection.
|
RowSet |
toRowSet()
Converts existing collection data into RowSet.
|
Table |
toTableCollection()
Creates new transient table collection and loads it with the
data from current collection.
|
getCollectionName, getCollectionType, getMemoryModel, listTriggers
RowSet toRowSet()
java.util.Map toMap()
java.util.Queue toQueue()
void fromRowSet(RowSet rowSet)
rowSet
- RowSet to load data fromvoid drainToRowSet(RowSet rowSet)
rowSet
- RowSet to load data fromvoid fromQueue(java.util.Queue queue)
queue
- Queue to load data fromvoid drainToQueue(java.util.Queue queue)
queue
- Queue to load data fromvoid fromMap(java.util.Map map)
map
- Map to load data fromvoid drainToMap(java.util.Map map)
map
- Map to load data fromTable toTableCollection()
void fromTable(Table table)
table
- Table collection to load data fromvoid drainToTable(Table table)
table
- Table collection to load data fromMap toMapCollection()
Queue toQueueCollection()
int drainRowsTo(Queue queue)
int drainRowsTo(Queue queue, java.lang.String selector)
void addRow(java.lang.Object[] row)
void addRows(java.lang.Object[][] rows)
java.lang.Object removeLast()
poll
only in that it throws an exception if this
queue is empty.NoSuchElementException
- if this queue is emptyjava.lang.Object pollLast()
null
if this queue is empty.null
if this queue is emptyjava.lang.Object elementLast()
peek
only in that it throws an exception
if this queue is empty.NoSuchElementException
- if this queue is emptyjava.lang.Object peekLast()
null
if this queue is empty.null
if this queue is emptyCopyright © 2015-2024 StreamScape Technologies. All rights reserved.