@Override
  public long getLength() {
    long val = 0;
    try {
      val = isTableSplit ? tableSplit.getLength() : snapshotSplit.getLength();
    } finally {
      return val;
    }
  }
TODO: use TableSnapshotRegionSplit HBASE-11555 is fixed.
hbase-handler/src/java/org/apache/hadoop/hive/hbase/HBaseSplit.java