public static class RegionSplitter.UniformSplit extends Object implements RegionSplitter.SplitAlgorithm
| Modifier and Type | Field and Description | 
|---|---|
| (package private) byte[] | firstRowBytes | 
| (package private) byte[] | lastRowBytes | 
| (package private) static byte | xFF | 
| Constructor and Description | 
|---|
| UniformSplit() | 
| Modifier and Type | Method and Description | 
|---|---|
| byte[] | firstRow()In HBase, the first row is represented by an empty byte array. | 
| byte[] | lastRow()In HBase, the last row is represented by an empty byte array. | 
| String | rowToStr(byte[] row) | 
| String | separator() | 
| 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[] | strToRow(String input) | 
| String | toString() | 
static final byte xFF
byte[] firstRowBytes
byte[] lastRowBytes
public UniformSplit()
public byte[] split(byte[] start, byte[] end)
RegionSplitter.SplitAlgorithmsplit in interface RegionSplitter.SplitAlgorithmstart - first row (inclusive)end - last row (exclusive)public byte[][] split(int numRegions)
RegionSplitter.SplitAlgorithmsplit in interface RegionSplitter.SplitAlgorithmnumRegions - number of regions to split the table intopublic byte[][] split(byte[] start, byte[] end, int numSplits, boolean inclusive)
RegionSplitter.SplitAlgorithmsplit in interface RegionSplitter.SplitAlgorithmstart - first row (inclusive)end - last row (exclusive)numSplits - number of splits to generateinclusive - whether start and end are returned as split pointspublic byte[] firstRow()
RegionSplitter.SplitAlgorithmfirstRow in interface RegionSplitter.SplitAlgorithmpublic byte[] lastRow()
RegionSplitter.SplitAlgorithmlastRow in interface RegionSplitter.SplitAlgorithmpublic void setFirstRow(String userInput)
RegionSplitter.SplitAlgorithmsetFirstRow in interface RegionSplitter.SplitAlgorithmuserInput - raw user input (may throw RuntimeException on parse failure)public void setLastRow(String userInput)
RegionSplitter.SplitAlgorithmsetLastRow in interface RegionSplitter.SplitAlgorithmuserInput - raw user input (may throw RuntimeException on parse failure)public void setFirstRow(byte[] userInput)
RegionSplitter.SplitAlgorithmsetFirstRow in interface RegionSplitter.SplitAlgorithmuserInput - byte array of the row key.public void setLastRow(byte[] userInput)
RegionSplitter.SplitAlgorithmsetLastRow in interface RegionSplitter.SplitAlgorithmuserInput - byte array of the row key.public byte[] strToRow(String input)
strToRow in interface RegionSplitter.SplitAlgorithminput - user or file input for rowpublic String rowToStr(byte[] row)
rowToStr in interface RegionSplitter.SplitAlgorithmrow - byte array representing a row in HBasepublic String separator()
separator in interface RegionSplitter.SplitAlgorithmCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.