public int compare(long timestamp) {
    assert timestamp >= 0;
    if (this.allTime) {
      return 0;
    }
    if (timestamp < minStamp) {
      return -1;
    }
    return timestamp >= maxStamp ? 1 : 0;
  }
Compare the timestamp to timerange.
@return -1 if timestamp is less than timerange, 0 if timestamp is within timerange, 1 if
        timestamp is greater than timerange
hbase-common/src/main/java/org/apache/hadoop/hbase/io/TimeRange.java