private Cell[] getNVersions(Table ht, byte[] cf, int rowIdx, int colIdx, List<Long> versions)
    throws IOException {
    byte row[] = Bytes.toBytes("row:" + rowIdx);
    byte column[] = Bytes.toBytes("column:" + colIdx);
    Get get = new Get(row);
    get.addColumn(cf, column);
    get.readAllVersions();
    get.setTimeRange(Collections.min(versions), Collections.max(versions) + 1);
    Result result = ht.get(get);

    return result.rawCells();
  }
Uses the TimestampFilter on a Get to request a specified list of versions for the row/column
specified by rowIdx & colIdx.
hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestMultipleTimestamps.java