public class AbstractQueueProxy extends com.streamscape.ds.schema.collection.AbstractDataCollectionProxy implements Queue
Title: Dataspace Framework
Description: Abstract Queue collection proxy
Copyright: Copyright (c) 2011
Company: StreamScape Technologies
Constructor and Description |
---|
AbstractQueueProxy() |
Modifier and Type | Method and Description |
---|---|
boolean |
add(java.lang.Object o) |
boolean |
addAll(java.util.Collection c) |
void |
addRow(java.lang.Object[] row)
Adds row to current the queue.
|
void |
addRows(java.lang.Object[][] rows)
Adds rows to current the queue.
|
void |
clear() |
boolean |
contains(java.lang.Object o) |
boolean |
containsAll(java.util.Collection c) |
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 |
element() |
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.
|
boolean |
isEmpty() |
java.util.Iterator |
iterator() |
boolean |
offer(java.lang.Object o) |
java.lang.Object |
peek() |
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 |
poll() |
java.lang.Object |
pollLast()
Retrieves and removes the last added of this queue,
or returns
null if this queue is empty. |
java.lang.Object |
remove() |
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection c) |
java.lang.Object |
removeLast()
Retrieves and removes the last added of this queue.
|
boolean |
retainAll(java.util.Collection c) |
int |
size() |
java.lang.Object[] |
toArray() |
java.lang.Object[] |
toArray(java.lang.Object[] a) |
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
getId, setAccessor, setId
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCollectionName, getCollectionType, getMemoryModel, listTriggers
public boolean add(java.lang.Object o)
add
in interface java.util.Collection
add
in interface java.util.Queue
public boolean remove(java.lang.Object o)
remove
in interface java.util.Collection
public int size()
size
in interface java.util.Collection
public boolean isEmpty()
isEmpty
in interface java.util.Collection
public boolean contains(java.lang.Object o)
contains
in interface java.util.Collection
public java.util.Iterator iterator()
iterator
in interface java.lang.Iterable
iterator
in interface java.util.Collection
public java.lang.Object[] toArray()
toArray
in interface java.util.Collection
public boolean containsAll(java.util.Collection c)
containsAll
in interface java.util.Collection
public boolean addAll(java.util.Collection c)
addAll
in interface java.util.Collection
public boolean removeAll(java.util.Collection c)
removeAll
in interface java.util.Collection
public boolean retainAll(java.util.Collection c)
retainAll
in interface java.util.Collection
public void clear()
clear
in interface java.util.Collection
public boolean offer(java.lang.Object o)
offer
in interface java.util.Queue
public java.lang.Object poll()
poll
in interface java.util.Queue
public java.lang.Object pollLast()
Queue
null
if this queue is empty.null
if this queue is emptypublic java.lang.Object remove()
remove
in interface java.util.Queue
public java.lang.Object removeLast()
Queue
poll
only in that it throws an exception if this
queue is empty.public java.lang.Object peek()
peek
in interface java.util.Queue
public java.lang.Object peekLast()
Queue
null
if this queue is empty.null
if this queue is emptypublic java.lang.Object element()
element
in interface java.util.Queue
public java.lang.Object elementLast()
Queue
peek
only in that it throws an exception
if this queue is empty.public java.lang.Object[] toArray(java.lang.Object[] a)
toArray
in interface java.util.Collection
public RowSet toRowSet()
Queue
public java.util.Map toMap()
Queue
public java.util.Queue toQueue()
Queue
public void fromRowSet(RowSet rowSet)
Queue
rowSet
- RowSet to load data frompublic void drainToRowSet(RowSet rowSet)
Queue
rowSet
- RowSet to load data frompublic void fromQueue(java.util.Queue queue)
Queue
queue
- Queue to load data frompublic void drainToQueue(java.util.Queue queue)
Queue
queue
- Queue to load data frompublic void fromMap(java.util.Map map)
Queue
map
- Map to load data frompublic void drainToMap(java.util.Map map)
Queue
map
- Map to load data frompublic Table toTableCollection()
Queue
public void fromTable(Table table)
Queue
table
- Table collection to load data frompublic void drainToTable(Table table)
Queue
table
- Table collection to load data frompublic Map toMapCollection()
Queue
public Queue toQueueCollection()
Queue
public int drainRowsTo(Queue queue)
Queue
public int drainRowsTo(Queue queue, java.lang.String selector)
Queue
public void addRow(java.lang.Object[] row)
Queue
public void addRows(java.lang.Object[][] rows)
Queue
Copyright © 2015-2024 StreamScape Technologies. All rights reserved.