voldemort.tools
Class KeyVersionFetcherCLI
java.lang.Object
voldemort.tools.KeyVersionFetcherCLI
public class KeyVersionFetcherCLI
- extends java.lang.Object
The KeyVersionFetcherCLI is a rudimentary tool that outputs a sampling of
existing keys from a cluster. For each store in the cluster, a distinct file
of keys to sample is expected. And, for each of these, a distinct file of
key-versions is generated.
Constructor Summary |
KeyVersionFetcherCLI(java.lang.String url,
java.lang.String inDir,
java.lang.String outDir,
java.util.List<java.lang.String> storeNames,
int keyParallelism,
int progressPeriodOps,
int outputBatchSize,
boolean details)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KeyVersionFetcherCLI
public KeyVersionFetcherCLI(java.lang.String url,
java.lang.String inDir,
java.lang.String outDir,
java.util.List<java.lang.String> storeNames,
int keyParallelism,
int progressPeriodOps,
int outputBatchSize,
boolean details)
sampleStores
public boolean sampleStores()
updateFetchProgress
public void updateFetchProgress(java.lang.String storeName)
sampleStore
public boolean sampleStore(StoreDefinition storeDefinition)
stop
public void stop()
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Throws:
java.lang.Exception
Jay Kreps, Roshan Sumbaly, Alex Feinberg, Bhupesh Bansal, Lei Gao, Chinmay Soman, Vinoth Chandar, Zhongjie Wu