@Override
  public int compareTo(byte[] value, int offset, int length) {
    long that = Bytes.toLong(value, offset, length);
    return Long.compare(longValue, that);
  }
A long comparator which numerical compares against the specified byte array
hbase-client/src/main/java/org/apache/hadoop/hbase/filter/LongComparator.java