private void setValueFilters(FilterList filterList) {
    int offset = 1;
    byte[] y = Bytes.toBytes("y");
    Filter yFilter =
      new ValueFilter(CompareOperator.EQUAL, new BinaryComponentComparator(y, offset));
    filterList.addFilter(yFilter);
  }
We have rows with either "abc" or "xyz". We want values which have 'y' at second position of
the string. As a result only values with "xyz" shall be returned
hbase-server/src/test/java/org/apache/hadoop/hbase/filter/TestFiltersWithBinaryComponentComparator.java