|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface RegionSplitter.SplitAlgorithm
A generic interface for the RegionSplitter code to use for all it's
functionality. Note that the original authors of this code use
RegionSplitter.MD5StringSplit
to partition their table and set it as default, but
provided this for your custom algorithm. To use, create a new derived class
from this interface and call the RegionSplitter class with the argument:
-D split.algorithm=
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 numberOfSplits)
Split an entire table. |
byte[] |
strToRow(String input)
|
Method Detail |
---|
byte[] split(byte[] start, byte[] end)
start
- rowend
- row
byte[][] split(int numberOfSplits)
numberOfSplits
- number of regions to split the table into
byte[] firstRow()
byte[] lastRow()
byte[] strToRow(String input)
input
- user or file input for row
String rowToStr(byte[] row)
row
- byte array representing a row in HBase
String separator()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |