public static Filter createFilterFromArguments(ArrayList<byte[]> filterArguments) {
    Preconditions.checkArgument(filterArguments.size() == 1, "Expected 1 but got: %s",
      filterArguments.size());
    int limit = ParseFilter.convertByteArrayToInt(filterArguments.get(0));
    return new ColumnCountGetFilter(limit);
  }
Simple filter that returns first N columns on row only. This filter was written to test filters
in Get and as soon as it gets its quota of columns, {@link #filterAllRemaining()} returns true.
This makes this filter unsuitable as a Scan filter.
hbase-client/src/main/java/org/apache/hadoop/hbase/filter/ColumnCountGetFilter.java