Example #1
0
 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);
 }
Example #2
0
  @Override
  public String toString() {
    StringBuffer str = new StringBuffer();
    str.append("HBaseMultiSplit : ");

    for (HBaseTableSplit hbt : splits) {
      str.append(" [" + hbt.toString() + "]");
    }

    return str.toString();
  }