Class KeySampler

java.lang.Object
org.apache.hadoop.hbase.io.hfile.KeySampler

class KeySampler extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) org.apache.hadoop.hbase.util.RandomDistribution.DiscreteRNG
     
    (package private) int
     
    (package private) int
     
    private static final int
     
    (package private) Random
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    KeySampler(Random random, byte[] first, byte[] last, org.apache.hadoop.hbase.util.RandomDistribution.DiscreteRNG keyLenRNG)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private int
    keyPrefixToInt(byte[] key)
     
    void
    next(org.apache.hadoop.io.BytesWritable key)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • KeySampler

      public KeySampler(Random random, byte[] first, byte[] last, org.apache.hadoop.hbase.util.RandomDistribution.DiscreteRNG keyLenRNG)
  • Method Details

    • keyPrefixToInt

      private int keyPrefixToInt(byte[] key)
    • next

      public void next(org.apache.hadoop.io.BytesWritable key)