|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hbase.util.RegionSplitter.MD5StringSplit
public static class RegionSplitter.MD5StringSplit
MD5StringSplit is the default RegionSplitter.SplitAlgorithm for creating pre-split
tables. The format of MD5StringSplit is the ASCII representation of an MD5
checksum. Row are long values in the range "00000000" => "7FFFFFFF"
and are left-padded with zeros to keep the same order lexographically as if
they were binary.
| Constructor Summary | |
|---|---|
RegionSplitter.MD5StringSplit()
|
|
| Method Summary | |
|---|---|
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()
|
byte[] |
split(byte[] start,
byte[] end)
Split a pre-existing region into 2 regions. |
byte[][] |
split(int n)
Split an entire table. |
byte[] |
strToRow(String in)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RegionSplitter.MD5StringSplit()
| Method Detail |
|---|
public byte[] split(byte[] start,
byte[] end)
RegionSplitter.SplitAlgorithm
split in interface RegionSplitter.SplitAlgorithmstart - rowend - row
public byte[][] split(int n)
RegionSplitter.SplitAlgorithm
split in interface RegionSplitter.SplitAlgorithmn - number of regions to split the table into
public byte[] firstRow()
RegionSplitter.SplitAlgorithm
firstRow in interface RegionSplitter.SplitAlgorithmpublic byte[] lastRow()
RegionSplitter.SplitAlgorithm
lastRow in interface RegionSplitter.SplitAlgorithmpublic byte[] strToRow(String in)
strToRow in interface RegionSplitter.SplitAlgorithmin - user or file input for row
public String rowToStr(byte[] row)
rowToStr in interface RegionSplitter.SplitAlgorithmrow - byte array representing a row in HBase
public String separator()
separator in interface RegionSplitter.SplitAlgorithm
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||