Class Between<T extends java.lang.Comparable<T>>
- java.lang.Object
-
- org.apache.iotdb.tsfile.read.filter.operator.Between<T>
-
- All Implemented Interfaces:
java.io.Serializable,Filter
- Direct Known Subclasses:
TimeFilter.TimeBetween,ValueFilter.ValueBetween
public class Between<T extends java.lang.Comparable<T>> extends java.lang.Object implements Filter, java.io.Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected FilterTypefilterTypeprotected booleannotprotected Tvalue1protected Tvalue2
-
Constructor Summary
Constructors Constructor Description Between()Between(T value1, T value2, FilterType filterType, boolean not)
-
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()voiddeserialize(java.nio.ByteBuffer buffer)booleanequals(java.lang.Object o)FilterSerializeIdgetSerializeId()inthashCode()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.voidserialize(java.io.DataOutputStream outputStream)-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.iotdb.tsfile.read.filter.basic.Filter
getTimeRanges, serialize
-
-
-
-
Field Detail
-
not
protected boolean not
-
filterType
protected FilterType filterType
-
-
Constructor Detail
-
Between
public Between()
-
Between
public Between(T value1, T value2, FilterType filterType, boolean not)
-
-
Method Detail
-
satisfy
public boolean satisfy(Statistics statistics)
Description copied from interface:FilterTo examine whether there are data points satisfied with the filter.
-
allSatisfy
public boolean allSatisfy(Statistics statistics)
Description copied from interface:FilterTo examine whether all data points are satisfied with the filter.- Specified by:
allSatisfyin interfaceFilter- 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.
-
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.- Specified by:
satisfyStartEndTimein interfaceFilter- 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.- Specified by:
containStartEndTimein interfaceFilter- Parameters:
startTime- start time of a partitionendTime- end time of a partition
-
serialize
public void serialize(java.io.DataOutputStream outputStream)
-
deserialize
public void deserialize(java.nio.ByteBuffer buffer)
- Specified by:
deserializein interfaceFilter
-
getSerializeId
public FilterSerializeId getSerializeId()
- Specified by:
getSerializeIdin interfaceFilter
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-