|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvoldemort.client.protocol.admin.AdminClient.StreamingStoreOperations
public class AdminClient.StreamingStoreOperations
Encapsulates all steaming operations that actually read and write key-value pairs into the cluster
| Constructor Summary | |
|---|---|
AdminClient.StreamingStoreOperations()
|
|
| Method Summary | |
|---|---|
java.util.Iterator<Pair<ByteArray,Pair<java.util.List<Versioned<byte[]>>,java.lang.Exception>>> |
queryKeys(int nodeId,
java.lang.String storeName,
java.util.Iterator<ByteArray> keys)
Fetch key/value tuples belonging to a node with given key values |
void |
updateEntries(int nodeId,
java.lang.String storeName,
java.util.Iterator<Pair<ByteArray,Versioned<byte[]>>> entryIterator,
VoldemortFilter filter)
Update a stream of key/value entries at the given node. |
void |
updateSlopEntries(int nodeId,
java.util.Iterator<Versioned<Slop>> entryIterator)
Update slops which may be meant for multiple stores |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AdminClient.StreamingStoreOperations()
| Method Detail |
|---|
public void updateEntries(int nodeId,
java.lang.String storeName,
java.util.Iterator<Pair<ByteArray,Versioned<byte[]>>> entryIterator,
VoldemortFilter filter)
VoldemortFilter instance.VoldemortException has occured.
nodeId - Id of the remote node (where we wish to update the
entries)storeName - Store name for the entriesentryIterator - Iterator of key-value pairs for the entriesfilter - Custom filter implementation to filter out entries
which should not be updated.
VoldemortException
public java.util.Iterator<Pair<ByteArray,Pair<java.util.List<Versioned<byte[]>>,java.lang.Exception>>> queryKeys(int nodeId,
java.lang.String storeName,
java.util.Iterator<ByteArray> keys)
Entries are being queried synchronously as the iteration happens i.e. the whole result set is not buffered in memory.
nodeId - Id of the node to fetch fromstoreName - Name of the storekeys - An Iterable of keys
public void updateSlopEntries(int nodeId,
java.util.Iterator<Versioned<Slop>> entryIterator)
nodeId - The id of the nodeentryIterator - An iterator over all the slops for this
particular node
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||