Class GroupByMonthFilter
- java.lang.Object
-
- org.apache.iotdb.tsfile.read.filter.GroupByFilter
-
- org.apache.iotdb.tsfile.read.filter.GroupByMonthFilter
-
- All Implemented Interfaces:
java.io.Serializable,Filter
public class GroupByMonthFilter extends GroupByFilter
GroupByMonthFilter is used to handle natural month slidingStep and interval by generating dynamically. Attention: it's only supported to access in ascending order now.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.apache.iotdb.tsfile.read.filter.GroupByFilter
endTime, interval, slidingStep, startTime
-
-
Constructor Summary
Constructors Constructor Description GroupByMonthFilter()GroupByMonthFilter(long interval, long slidingStep, long startTime, long endTime, boolean isSlidingStepByMonth, boolean isIntervalByMonth, java.util.TimeZone timeZone)GroupByMonthFilter(GroupByMonthFilter filter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 obj)FilterSerializeIdgetSerializeId()inthashCode()booleansatisfy(long time, java.lang.Object value)To examine whether the single point(with time and value) is 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 org.apache.iotdb.tsfile.read.filter.GroupByFilter
allSatisfy, getEndTime, getStartTime, getTimeRanges, reverse, satisfy, toString
-
-
-
-
Constructor Detail
-
GroupByMonthFilter
public GroupByMonthFilter()
-
GroupByMonthFilter
public GroupByMonthFilter(long interval, long slidingStep, long startTime, long endTime, boolean isSlidingStepByMonth, boolean isIntervalByMonth, java.util.TimeZone timeZone)
-
GroupByMonthFilter
public GroupByMonthFilter(GroupByMonthFilter filter)
-
-
Method Detail
-
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.- Specified by:
satisfyin interfaceFilter- Overrides:
satisfyin classGroupByFilter- 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.- Specified by:
satisfyStartEndTimein interfaceFilter- Overrides:
satisfyStartEndTimein classGroupByFilter- Parameters:
startTime- start time of a page, series or deviceendTime- end time of a page, series or device
-
copy
public Filter copy()
- Specified by:
copyin interfaceFilter- Overrides:
copyin classGroupByFilter
-
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- Overrides:
containStartEndTimein classGroupByFilter- Parameters:
startTime- start time of a partitionendTime- end time of a partition
-
serialize
public void serialize(java.io.DataOutputStream outputStream)
- Specified by:
serializein interfaceFilter- Overrides:
serializein classGroupByFilter
-
deserialize
public void deserialize(java.nio.ByteBuffer buffer)
- Specified by:
deserializein interfaceFilter- Overrides:
deserializein classGroupByFilter
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classGroupByFilter
-
hashCode
public int hashCode()
- Overrides:
hashCodein classGroupByFilter
-
getSerializeId
public FilterSerializeId getSerializeId()
- Specified by:
getSerializeIdin interfaceFilter- Overrides:
getSerializeIdin classGroupByFilter
-
-