Class RegionSplitter.UniformSplit

java.lang.Object
org.apache.hadoop.hbase.util.RegionSplitter.UniformSplit
All Implemented Interfaces:
RegionSplitter.SplitAlgorithm
Enclosing class:
RegionSplitter

A SplitAlgorithm that divides the space of possible keys evenly. Useful when the keys are approximately uniform random bytes (e.g. hashes). Rows are raw byte values in the range 00 => FF and are right-padded with zeros to keep the same memcmp() order. This is the natural algorithm to use for a byte[] environment and saves space, but is not necessarily the easiest for readability.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) byte[]
     
    (package private) byte[]
     
    (package private) static final byte
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    In HBase, the first row is represented by an empty byte array.
    byte[]
    In HBase, the last row is represented by an empty byte array.
    rowToStr(byte[] row)
    byte array representing a row in HBase
    Returns the separator character to use when storing / printing the row
    void
    setFirstRow(byte[] userInput)
    Set the first row
    void
    setFirstRow(String userInput)
    In HBase, the last row is represented by an empty byte array.
    void
    setLastRow(byte[] userInput)
    Set the last row
    void
    setLastRow(String userInput)
    In HBase, the last row is represented by an empty byte array.
    byte[]
    split(byte[] start, byte[] end)
    Split a pre-existing region into 2 regions.
    byte[][]
    split(byte[] start, byte[] end, int numSplits, boolean inclusive)
    Some MapReduce jobs may want to run multiple mappers per region, this is intended for such usecase.
    byte[][]
    split(int numRegions)
    Split an entire table.
    byte[]
    user or file input for row
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait