* */publicbyte[][]hexSplit(intregionNum,BigIntegerstartIndex,BigIntegerendIndex)throwsIOException{RegionSplitter.SplitAlgorithmalgo=newRegionSplitter.HexStringSplit();algo.setFirstRow(startIndex.toString(16));algo.setLastRow(endIndex.toString(16));byte[][]splits=algo.split(regionNum);returnsplits;}/...
6、Region Split 默认情况下,每个Table起初只有一个Region,随着数据的不断写入,Region会自动进行拆分。刚拆分时,两个子Region都位于当前的Region Server,但处于负载均衡的考虑,HMaster有可能会将某个Region转移给其他的Region Server。 1)、Region Split时机: ①、当1个region中的某个Store下所有StoreFile的总大小超过h...
BigInteger lastRowInt;introwComparisonLength;publicHexStringSplit(){this.firstRowInt = BigInteger.ZERO;this.lastRow ="FFFFFFFF";this.lastRowInt =newBigInteger(this.lastRow,16);this.rowComparisonLength =this.lastRow.length(); }publicbyte[] split(byte[] start,byte[] end) {BigIntegers=this.conve...