public void testPartialResultsWithColumnFilter(Filter filter) throws Exception {
    assertTrue(!filter.hasFilterRow());

    Scan partialScan = new Scan();
    partialScan.setFilter(filter);

    Scan oneshotScan = new Scan();
    oneshotScan.setFilter(filter);
    oneshotScan.setMaxResultSize(Long.MAX_VALUE);

    for (int i = 1; i <= NUM_COLS; i++) {
      partialScan.setMaxResultSize(getResultSizeForNumberOfCells(i));
      testEquivalenceOfScanResults(TABLE, partialScan, oneshotScan);
    }
  }
Test partial Result re-assembly in the presence of different filters. The Results from the
partial scanner should match the Results returned from a scanner that receives all of the
results in one RPC to the server. The partial scanner is tested with a variety of different
result sizes (all of which are less than the size necessary to fetch an entire row)
hbase-server/src/test/java/org/apache/hadoop/hbase/TestPartialResultsFromClientSide.java