@Override
  public void readFields(DataInput in) throws IOException {
    super.readFields(in);
    this.isTableSplit = in.readBoolean();
    if (this.isTableSplit) {
      tableSplit.readFields(in);
    } else {
      snapshotSplit.readFields(in);
    }
  }
TODO: use TableSnapshotRegionSplit HBASE-11555 is fixed.
hbase-handler/src/java/org/apache/hadoop/hive/hbase/HBaseSplit.java