public boolean withinTimeRange(long timestamp) {
    assert timestamp >= 0;
    if (this.allTime) {
      return true;
    }
    // check if >= minStamp
    return (minStamp <= timestamp && timestamp < maxStamp);
  }
Check if the specified timestamp is within this TimeRange.
<p/>
Returns true if within interval [minStamp, maxStamp), false if not.
@param timestamp timestamp to check
@return true if within TimeRange, false if not
hbase-common/src/main/java/org/apache/hadoop/hbase/io/TimeRange.java