public static String bucketToString(int bucketId) {
    if (bucketId == -1) return "" + bucketId;
    BucketCodec codec =
      BucketCodec.determineVersion(bucketId);
    return  bucketId + "(" + codec.getVersion() + "." +
        codec.decodeWriterId(bucketId) + "." +
        codec.decodeStatementId(bucketId) + ")";
  }
What was the original row id for the last row?
@return the row id
ql/src/java/org/apache/hadoop/hive/ql/io/RecordIdentifier.java