private static byte[] trimTrailingZeroes(byte[] result, byte[] fuzzyKeyMeta, int toInc) {
    int off = fuzzyKeyMeta.length >= result.length ? result.length - 1 : fuzzyKeyMeta.length - 1;
    for (; off >= 0; off--) {
      if (fuzzyKeyMeta[off] != 0) break;
    }
    if (off < toInc) off = toInc;
    byte[] retValue = new byte[off + 1];
    System.arraycopy(result, 0, retValue, 0, retValue.length);
    return retValue;
  }
For forward scanner, next cell hint should not contain any trailing zeroes unless they are part
of fuzzyKeyMeta hint = '\x01\x01\x01\x00\x00' will skip valid row '\x01\x01\x01'
@param toInc - position of incremented byte
@return trimmed version of result
hbase-client/src/main/java/org/apache/hadoop/hbase/filter/FuzzyRowFilter.java