Example usage for com.google.common.collect Ranges greaterThan

List of usage examples for com.google.common.collect Ranges greaterThan

Introduction

In this page you can find the example usage for com.google.common.collect Ranges greaterThan.

Prototype

public static <C extends Comparable<?>> Range<C> greaterThan(C paramC) 

Source Link

Usage

From source file:org.apache.kylin.storage.hbase.ii.coprocessor.endpoint.EndpointTupleIterator.java

/**
 * tells storage layer cache what time period of data should not be cached.
 * for static storage like cube, it will return null
 * for dynamic storage like ii, it will for example exclude the last two minutes for possible data latency
 * @return//from w  w w. ja  v a2s.  com
 */
public Range<Long> getCacheExcludedPeriod() {
    Preconditions.checkArgument(lastDataTime != -1, "lastDataTime is not set yet");
    return Ranges.greaterThan(lastDataTime);
}