Package org.apache.hadoop.hbase.io.hfile
Class KeySampler
java.lang.Object
org.apache.hadoop.hbase.io.hfile.KeySampler
-
Field Summary
Modifier and TypeFieldDescription(package private) RandomDistribution.DiscreteRNG
(package private) int
(package private) int
private static final int
(package private) Random
-
Constructor Summary
ConstructorDescriptionKeySampler
(Random random, byte[] first, byte[] last, RandomDistribution.DiscreteRNG keyLenRNG) -
Method Summary
Modifier and TypeMethodDescriptionprivate int
keyPrefixToInt
(byte[] key) void
next
(org.apache.hadoop.io.BytesWritable key)
-
Field Details
-
Constructor Details
-
KeySampler
public KeySampler(Random random, byte[] first, byte[] last, RandomDistribution.DiscreteRNG keyLenRNG)
-
-
Method Details
-
keyPrefixToInt
-
next
-