|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvoldemort.client.protocol.admin.AdminClient.BulkStreamingFetchOperations
public class AdminClient.BulkStreamingFetchOperations
Encapsulates all the operations to forklift data from the cluster
Constructor Summary | |
---|---|
AdminClient.BulkStreamingFetchOperations()
|
Method Summary | |
---|---|
java.util.Iterator<Pair<ByteArray,Versioned<byte[]>>> |
fetchEntries(int nodeId,
java.lang.String storeName,
java.util.List<java.lang.Integer> partitionList,
VoldemortFilter filter,
boolean fetchMasterEntries)
Legacy interface for fetching entries. |
java.util.Iterator<Pair<ByteArray,Versioned<byte[]>>> |
fetchEntries(int nodeId,
java.lang.String storeName,
java.util.List<java.lang.Integer> partitionIds,
VoldemortFilter filter,
boolean fetchMasterEntries,
Cluster initialCluster,
long recordsPerPartition)
Fetch key/value tuples belonging to this list of partition ids |
java.util.Iterator<Pair<ByteArray,Versioned<byte[]>>> |
fetchEntries(int nodeId,
java.lang.String storeName,
java.util.List<java.lang.Integer> partitionIds,
VoldemortFilter filter,
boolean fetchMasterEntries,
long recordsPerPartition)
Legacy interface for fetching entries. |
java.util.Iterator<ByteArray> |
fetchKeys(int nodeId,
java.lang.String storeName,
java.util.List<java.lang.Integer> partitionList,
VoldemortFilter filter,
boolean fetchMasterEntries)
Legacy interface for fetching entries. |
java.util.Iterator<ByteArray> |
fetchKeys(int nodeId,
java.lang.String storeName,
java.util.List<java.lang.Integer> partitionIds,
VoldemortFilter filter,
boolean fetchMasterEntries,
Cluster initialCluster,
long recordsPerPartition)
Fetch all keys belonging to the list of partition ids. |
java.util.Iterator<ByteArray> |
fetchKeys(int nodeId,
java.lang.String storeName,
java.util.List<java.lang.Integer> partitionIds,
VoldemortFilter filter,
boolean fetchMasterEntries,
long recordsPerPartition)
Legacy interface for fetching entries. |
java.util.Iterator<Pair<ByteArray,Versioned<byte[]>>> |
fetchOrphanedEntries(int nodeId,
java.lang.String storeName)
Fetches entries that don't belong to the node, based on current metadata and yet persisted on the node |
java.util.Iterator<ByteArray> |
fetchOrphanedKeys(int nodeId,
java.lang.String storeName)
Fetch all the keys on the node that don't belong to it, based on its current metadata and yet stored on the node. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AdminClient.BulkStreamingFetchOperations()
Method Detail |
---|
public java.util.Iterator<Pair<ByteArray,Versioned<byte[]>>> fetchOrphanedEntries(int nodeId, java.lang.String storeName)
nodeId
- Id of the node to fetch fromstoreName
- Name of the store
public java.util.Iterator<Pair<ByteArray,Versioned<byte[]>>> fetchEntries(int nodeId, java.lang.String storeName, java.util.List<java.lang.Integer> partitionIds, VoldemortFilter filter, boolean fetchMasterEntries, long recordsPerPartition)
fetchEntries(int, String, List, VoldemortFilter, boolean, Cluster, long)
for more information.
nodeId
- Id of the node to fetch fromstoreName
- Name of the storepartitionIds
- List of the partitionsfilter
- Custom filter implementation to filter out entries
which should not be fetched.fetchMasterEntries
- Fetch an entry only if master replica
public java.util.Iterator<Pair<ByteArray,Versioned<byte[]>>> fetchEntries(int nodeId, java.lang.String storeName, java.util.List<java.lang.Integer> partitionList, VoldemortFilter filter, boolean fetchMasterEntries)
fetchEntries(int, String, List, VoldemortFilter, boolean, Cluster, long)
for more information.
nodeId
- Id of the node to fetch fromstoreName
- Name of the storepartitionList
- List of the partitionsfilter
- Custom filter implementation to filter out entries
which should not be fetched.fetchMasterEntries
- Fetch an entry only if master replica
public java.util.Iterator<Pair<ByteArray,Versioned<byte[]>>> fetchEntries(int nodeId, java.lang.String storeName, java.util.List<java.lang.Integer> partitionIds, VoldemortFilter filter, boolean fetchMasterEntries, Cluster initialCluster, long recordsPerPartition)
Streaming API - The server keeps sending the messages as it's
iterating over the data. Once iteration has finished, the server
sends an "end of stream" marker and flushes its buffer. A response
indicating a VoldemortException
may be sent at any time
during the process.
Entries are being streamed 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 storepartitionIds
- List of partition idsfilter
- Custom filter implementation to filter out entries
which should not be fetched.fetchMasterEntries
- Fetch an entry only if master replicainitialCluster
- The cluster metadata to use while making the
decision to fetch entries. This is important during
rebalancing where-in we want to fetch keys using an older
metadata compared to the new one.
public java.util.Iterator<ByteArray> fetchOrphanedKeys(int nodeId, java.lang.String storeName)
nodeId
- Id of the node to fetch fromstoreName
- Name of the store
public java.util.Iterator<ByteArray> fetchKeys(int nodeId, java.lang.String storeName, java.util.List<java.lang.Integer> partitionIds, VoldemortFilter filter, boolean fetchMasterEntries, long recordsPerPartition)
fetchKeys(int, String, List, VoldemortFilter, boolean, Cluster, long)
for more information.
nodeId
- Id of the node to fetch fromstoreName
- Name of the storepartitionIds
- List of the partitions to retrievefilter
- Custom filter implementation to filter out entries
which should not be fetched.fetchMasterEntries
- Fetch a key only if master replica
public java.util.Iterator<ByteArray> fetchKeys(int nodeId, java.lang.String storeName, java.util.List<java.lang.Integer> partitionList, VoldemortFilter filter, boolean fetchMasterEntries)
fetchKeys(int, String, List, VoldemortFilter, boolean, Cluster, long)
for more information.
nodeId
- Id of the node to fetch fromstoreName
- Name of the storepartitionList
- List of the partitions to retrievefilter
- Custom filter implementation to filter out entries
which should not be fetched.fetchMasterEntries
- Fetch a key only if master replica
public java.util.Iterator<ByteArray> fetchKeys(int nodeId, java.lang.String storeName, java.util.List<java.lang.Integer> partitionIds, VoldemortFilter filter, boolean fetchMasterEntries, Cluster initialCluster, long recordsPerPartition)
fetchEntries(int, java.lang.String, java.util.List, voldemort.client.protocol.VoldemortFilter, boolean, long)
but only fetches the keys
nodeId
- The node id from where to fetch the keysstoreName
- The store name whose keys we want to retrievepartitionIds
- List of partitionIdsfilter
- Custom filterinitialCluster
- Cluster to use for selecting a key. If null,
use the default metadata from the metadata store
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |