public interface Map extends DataCollection, java.util.Map
Title: Data Space Framework
Description: Map collection interface.
Map
javadoc.
Dataspace Map methods keySet,values,entrySet return proxies, i.e. no copy of elements returned. To get full copy use toArray method on appropriative collections.
Copyright: Copyright (c) 2011
Company: StreamScape Technologies
Modifier and Type | Method and Description |
---|---|
void |
drainFromQueue(java.util.Queue queue)
Loads collection with data from provided Queue and
purges provided 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 |
putAll(java.util.Map m)
If
m is instance of java.util.Collection.Map
and opened in the same accessor or belongs to the same node or any other node in the sysplex
then data transfer is performed on the server side and is more efficient because data not copied to client side. |
java.lang.Object |
take(java.lang.Object key)
Returns value that corresponds to given key.
|
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.
|
java.lang.Object |
waitToTake(java.lang.Object key)
The same as
#take(String) but blocks until key is available. |
java.lang.Object |
waitToTake(java.lang.Object key,
long timeout,
java.util.concurrent.TimeUnit unit)
The same as
#take(String) but waiting up to the
specified timeout until an key becomes available for retrieve. |
getCollectionName, getCollectionType, getMemoryModel, listTriggers
java.lang.Object take(java.lang.Object key)
key
- java.lang.Object waitToTake(java.lang.Object key)
#take(String)
but blocks until key is available.key
- java.lang.Object waitToTake(java.lang.Object key, long timeout, java.util.concurrent.TimeUnit unit)
#take(String)
but waiting up to the
specified timeout until an key becomes available for retrieve.
If timeout is zero blocks until key is available.key
- void putAll(java.util.Map m)
m
is instance of java.util.Collection.Map
and opened in the same accessor or belongs to the same node or any other node in the sysplex
then data transfer is performed on the server side and is more efficient because data not copied to client side.
NOTE: If any exception occurred during reading from source collection or inserting into
target collection exception is throws. No rollback is done.
See java.util.Map#addAll(Map)
putAll
in interface java.util.Map
RowSet toRowSet()
java.util.Map toMap()
java.util.Queue toQueue()
void fromRowSet(RowSet rowSet)
rowSet
- RowSet to load data fromvoid fromQueue(java.util.Queue queue)
queue
- Queue to load data fromvoid drainFromQueue(java.util.Queue queue)
queue
- Queue to load data fromvoid fromMap(java.util.Map map)
map
- Map to load data fromTable toTableCollection()
Map toMapCollection()
Queue toQueueCollection()
Copyright © 2015-2024 StreamScape Technologies. All rights reserved.