|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvoldemort.client.protocol.admin.AdminClient.StreamingOperations
public class AdminClient.StreamingOperations
Encapsulates all steaming operations that actually read and write key-value pairs into the cluster
Constructor Summary | |
---|---|
AdminClient.StreamingOperations()
|
Method Summary | |
---|---|
java.util.Iterator<QueryKeyResult> |
queryKeys(int nodeId,
java.lang.String storeName,
java.util.Iterator<ByteArray> keys)
Fetch key/value tuples from a given server, directly from storage engine |
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 |
updateEntriesTimeBased(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 in the same way as updateEntries(int, String, Iterator, VoldemortFilter)
The only difference being the resolving on the server will happen
based on timestamp and not the vector clock. |
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.StreamingOperations()
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 void updateEntriesTimeBased(int nodeId, java.lang.String storeName, java.util.Iterator<Pair<ByteArray,Versioned<byte[]>>> entryIterator, VoldemortFilter filter)
updateEntries(int, String, Iterator, VoldemortFilter)
The only difference being the resolving on the server will happen
based on timestamp and not the vector clock.
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<QueryKeyResult> 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 |