@Override
  public ReturnCode filterCell(final Cell c) {
    if (provideHint) {
      return ReturnCode.SEEK_NEXT_USING_HINT;
    }
    if (filterRow) {
      return ReturnCode.NEXT_ROW;
    }
    return ReturnCode.INCLUDE;
  }
Pass results that have same row prefix.
hbase-client/src/main/java/org/apache/hadoop/hbase/filter/PrefixFilter.java