public static class RegionSplitter.HexStringSplit extends RegionSplitter.NumberStringSplit
RegionSplitter.SplitAlgorithm
for choosing region
boundaries. The format of a HexStringSplit region boundary is the ASCII
representation of an MD5 checksum, or any other uniformly distributed
hexadecimal value. Row are hex-encoded long values in the range
"00000000" => "FFFFFFFF" and are left-padded with zeros to keep the
same order lexicographically as if they were binary.
Since this split algorithm uses hex strings as keys, it is easy to read &
write in the shell but takes up more space and may be non-intuitive.Modifier and Type | Field and Description |
---|---|
(package private) static String |
DEFAULT_MAX_HEX |
(package private) static String |
DEFAULT_MIN_HEX |
(package private) static int |
RADIX_HEX |
firstRow, firstRowInt, lastRow, lastRowInt, radix, rowComparisonLength
Constructor and Description |
---|
HexStringSplit() |
convertToBigInteger, convertToByte, convertToByte, convertToBytes, firstRow, lastRow, rowToStr, separator, setFirstRow, setFirstRow, setLastRow, setLastRow, split, split, split, split2, strToRow, toString
static final String DEFAULT_MIN_HEX
static final String DEFAULT_MAX_HEX
static final int RADIX_HEX
public HexStringSplit()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.