本文整理汇总了Java中org.apache.hadoop.hbase.io.hfile.RandomDistribution.DiscreteRNG类的典型用法代码示例。如果您正苦于以下问题:Java DiscreteRNG类的具体用法?Java DiscreteRNG怎么用?Java DiscreteRNG使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
DiscreteRNG类属于org.apache.hadoop.hbase.io.hfile.RandomDistribution包,在下文中一共展示了DiscreteRNG类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: KeySampler
import org.apache.hadoop.hbase.io.hfile.RandomDistribution.DiscreteRNG; //导入依赖的package包/类
public KeySampler(Random random, byte [] first, byte [] last,
DiscreteRNG keyLenRNG) {
this.random = random;
int firstLen = keyPrefixToInt(first);
int lastLen = keyPrefixToInt(last);
min = Math.min(firstLen, lastLen);
max = Math.max(firstLen, lastLen);
System.out.println(min);
System.out.println(max);
this.keyLenRNG = keyLenRNG;
}
示例2: KeySampler
import org.apache.hadoop.hbase.io.hfile.RandomDistribution.DiscreteRNG; //导入依赖的package包/类
public KeySampler(Random random, byte [] first, byte [] last,
DiscreteRNG keyLenRNG) {
this.random = random;
min = keyPrefixToInt(first);
max = keyPrefixToInt(last);
this.keyLenRNG = keyLenRNG;
}