class KeySampler extends Object
Modifier and Type | Field and Description |
---|---|
(package private) RandomDistribution.DiscreteRNG |
keyLenRNG |
(package private) int |
max |
(package private) int |
min |
private static int |
MIN_KEY_LEN |
(package private) Random |
random |
Constructor and Description |
---|
KeySampler(Random random,
byte[] first,
byte[] last,
RandomDistribution.DiscreteRNG keyLenRNG) |
Modifier and Type | Method and Description |
---|---|
private int |
keyPrefixToInt(byte[] key) |
void |
next(org.apache.hadoop.io.BytesWritable key) |
int min
int max
RandomDistribution.DiscreteRNG keyLenRNG
private static final int MIN_KEY_LEN
public KeySampler(Random random, byte[] first, byte[] last, RandomDistribution.DiscreteRNG keyLenRNG)
private int keyPrefixToInt(byte[] key)
public void next(org.apache.hadoop.io.BytesWritable key)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.