public void addSplit(HBaseTableSplit hbt) throws IOException { if (hbt.getRegionLocation().equals(regionLocation)) splits.add(hbt); else throw new IOException( "HBaseTableSplit Region Location " + hbt.getRegionLocation() + " does NOT match MultiSplit Region Location " + regionLocation); }
@Override public String toString() { StringBuffer str = new StringBuffer(); str.append("HBaseMultiSplit : "); for (HBaseTableSplit hbt : splits) { str.append(" [" + hbt.toString() + "]"); } return str.toString(); }