@Override
  public void write(DataOutput out) throws IOException {
    super.write(out);
    out.writeBoolean(isTableSplit);
    if (isTableSplit) {
      tableSplit.write(out);
    } else {
      snapshotSplit.write(out);
    }
  }
TODO: use TableSnapshotRegionSplit HBASE-11555 is fixed.
hbase-handler/src/java/org/apache/hadoop/hive/hbase/HBaseSplit.java