|
||||||||||
| 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.HashMap<java.lang.Integer,java.util.List<java.lang.Integer>> replicaToPartitionList,
VoldemortFilter filter,
boolean fetchMasterEntries,
Cluster initialCluster,
long skipRecords)
Fetch key/value tuples belonging to this map of replica type to partition list |
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> partitionList,
VoldemortFilter filter,
boolean fetchMasterEntries,
long skipRecords)
Legacy interface for fetching entries. |
java.util.Iterator<ByteArray> |
fetchKeys(int nodeId,
java.lang.String storeName,
java.util.HashMap<java.lang.Integer,java.util.List<java.lang.Integer>> replicaToPartitionList,
VoldemortFilter filter,
boolean fetchMasterEntries,
Cluster initialCluster,
long skipRecords)
Fetch all keys belonging to the map of replica type to partition list. |
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> partitionList,
VoldemortFilter filter,
boolean fetchMasterEntries,
long skipRecords)
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> partitionList,
VoldemortFilter filter,
boolean fetchMasterEntries,
long skipRecords)
AdminClient#fetchEntries(int, String, HashMap, 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 replicaskipRecords - Number of records to skip
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)
AdminClient#fetchEntries(int, String, HashMap, 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.HashMap<java.lang.Integer,java.util.List<java.lang.Integer>> replicaToPartitionList,
VoldemortFilter filter,
boolean fetchMasterEntries,
Cluster initialCluster,
long skipRecords)
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 storereplicaToPartitionList - Mapping of replica type to partition
listfilter - 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.skipRecords - Number of records to skip
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> partitionList,
VoldemortFilter filter,
boolean fetchMasterEntries,
long skipRecords)
AdminClient#fetchKeys(int, String, HashMap, 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 replicaskipRecords - Number of keys to skip
public java.util.Iterator<ByteArray> fetchKeys(int nodeId,
java.lang.String storeName,
java.util.List<java.lang.Integer> partitionList,
VoldemortFilter filter,
boolean fetchMasterEntries)
AdminClient#fetchKeys(int, String, HashMap, 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.HashMap<java.lang.Integer,java.util.List<java.lang.Integer>> replicaToPartitionList,
VoldemortFilter filter,
boolean fetchMasterEntries,
Cluster initialCluster,
long skipRecords)
AdminClient#fetchEntries but
only fetches the keys
nodeId - The node id from where to fetch the keysstoreName - The store name whose keys we want to retrievereplicaToPartitionList - Map of replica type to corresponding
partition listfilter - Custom filterinitialCluster - Cluster to use for selecting a key. If null,
use the default metadata from the metadata storeskipRecords - Number of records to skip [ Used for sampling ]
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||