voldemort.utils
Class KeySamplerCLI

java.lang.Object
  extended by voldemort.utils.KeySamplerCLI

public class KeySamplerCLI
extends java.lang.Object

The KeySamplerCLI tool samples keys for every partition for every store on a cluster. A distinct file of sampled keys is generated for each store. By default, the "first" key of each partition is sampled. Optional arguments control sampling more keys per partition.


Nested Class Summary
static class KeySamplerCLI.NodeSampleResult
           
 class KeySamplerCLI.SampleNodeTask
           
 
Constructor Summary
KeySamplerCLI(java.lang.String url, java.lang.String outDir, java.util.List<java.lang.String> storeNames, java.util.List<java.lang.Integer> partitionIds, int nodeParallelism, int recordsPerPartition, int keysPerSecondLimit, int progressPeriodOps)
           
 
Method Summary
static void main(java.lang.String[] args)
           
 boolean sampleStore(StoreDefinition storeDefinition)
           
 boolean sampleStores()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeySamplerCLI

public KeySamplerCLI(java.lang.String url,
                     java.lang.String outDir,
                     java.util.List<java.lang.String> storeNames,
                     java.util.List<java.lang.Integer> partitionIds,
                     int nodeParallelism,
                     int recordsPerPartition,
                     int keysPerSecondLimit,
                     int progressPeriodOps)
Method Detail

sampleStores

public boolean sampleStores()

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