Class Eq<T extends java.lang.Comparable<T>>
- java.lang.Object
-
- org.apache.iotdb.tsfile.read.filter.basic.UnaryFilter<T>
-
- org.apache.iotdb.tsfile.read.filter.operator.Eq<T>
-
- Type Parameters:
T- comparable data type
- All Implemented Interfaces:
java.io.Serializable,Filter
- Direct Known Subclasses:
TimeFilter.TimeEq,ValueFilter.ValueEq
public class Eq<T extends java.lang.Comparable<T>> extends UnaryFilter<T>
Equals.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.apache.iotdb.tsfile.read.filter.basic.UnaryFilter
filterType, value
-
-
Constructor Summary
Constructors Constructor Description Eq()Eq(T value, FilterType filterType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanallSatisfy(Statistics statistics)To examine whether all data points are satisfied with the filter.booleancontainStartEndTime(long startTime, long endTime)To examine whether the partition [startTime, endTime] is subsets of filter.Filtercopy()FilterSerializeIdgetSerializeId()Filterreverse()booleansatisfy(long time, java.lang.Object value)To examine whether the single point(with time and value) is satisfied with the filter.booleansatisfy(Statistics statistics)To examine whether there are data points satisfied with the filter.booleansatisfyStartEndTime(long startTime, long endTime)To examine whether the min time and max time are satisfied with the filter.java.lang.StringtoString()-
Methods inherited from class org.apache.iotdb.tsfile.read.filter.basic.UnaryFilter
deserialize, equals, getFilterType, getValue, hashCode, serialize, setValue
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.iotdb.tsfile.read.filter.basic.Filter
getTimeRanges, serialize
-
-
-
-
Constructor Detail
-
Eq
public Eq()
-
Eq
public Eq(T value, FilterType filterType)
-
-
Method Detail
-
satisfy
public boolean satisfy(Statistics statistics)
Description copied from interface:FilterTo examine whether there are data points satisfied with the filter.- Parameters:
statistics- statistics with min time, max time, min value, max value.
-
allSatisfy
public boolean allSatisfy(Statistics statistics)
Description copied from interface:FilterTo examine whether all data points are satisfied with the filter.- Parameters:
statistics- statistics with min time, max time, min value, max value.
-
satisfy
public boolean satisfy(long time, java.lang.Object value)Description copied from interface:FilterTo examine whether the single point(with time and value) is satisfied with the filter.- Parameters:
time- single point timevalue- single point value
-
satisfyStartEndTime
public boolean satisfyStartEndTime(long startTime, long endTime)Description copied from interface:FilterTo examine whether the min time and max time are satisfied with the filter.- Parameters:
startTime- start time of a page, series or deviceendTime- end time of a page, series or device
-
containStartEndTime
public boolean containStartEndTime(long startTime, long endTime)Description copied from interface:FilterTo examine whether the partition [startTime, endTime] is subsets of filter.- Parameters:
startTime- start time of a partitionendTime- end time of a partition
-
copy
public Filter copy()
-
toString
public java.lang.String toString()
- Specified by:
toStringin classUnaryFilter<T extends java.lang.Comparable<T>>
-
getSerializeId
public FilterSerializeId getSerializeId()
-
reverse
public Filter reverse()
-
-