Interface Filter
-
- All Known Implementing Classes:
AndFilter,Between,BinaryFilter,Eq,GroupByFilter,GroupByMonthFilter,Gt,GtEq,In,Like,Lt,LtEq,NotEq,NotFilter,OrFilter,Regexp,TimeFilter.TimeBetween,TimeFilter.TimeEq,TimeFilter.TimeGt,TimeFilter.TimeGtEq,TimeFilter.TimeGtEqAndLt,TimeFilter.TimeIn,TimeFilter.TimeLt,TimeFilter.TimeLtEq,TimeFilter.TimeNotEq,UnaryFilter,ValueFilter.ValueBetween,ValueFilter.ValueEq,ValueFilter.ValueGt,ValueFilter.ValueGtEq,ValueFilter.ValueIn,ValueFilter.ValueLike,ValueFilter.ValueLt,ValueFilter.ValueLtEq,ValueFilter.ValueNotEq,ValueFilter.ValueRegexp
public interface FilterFilter is a top level filter abstraction.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default 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)FilterSerializeIdgetSerializeId()default java.util.List<TimeRange>getTimeRanges()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)default voidserialize(java.nio.ByteBuffer buffer)
-
-
-
Method Detail
-
satisfy
boolean satisfy(Statistics statistics)
To examine whether there are data points satisfied with the filter.- Parameters:
statistics- statistics with min time, max time, min value, max value.
-
allSatisfy
boolean allSatisfy(Statistics statistics)
To examine whether all data points are satisfied with the filter.- Parameters:
statistics- statistics with min time, max time, min value, max value.
-
satisfy
boolean satisfy(long time, java.lang.Object value)To examine whether the single point(with time and value) is satisfied with the filter.- Parameters:
time- single point timevalue- single point value
-
satisfyStartEndTime
boolean satisfyStartEndTime(long startTime, long endTime)To 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
boolean containStartEndTime(long startTime, long endTime)To examine whether the partition [startTime, endTime] is subsets of filter.- Parameters:
startTime- start time of a partitionendTime- end time of a partition
-
copy
Filter copy()
-
serialize
void serialize(java.io.DataOutputStream outputStream)
-
serialize
default void serialize(java.nio.ByteBuffer buffer)
-
deserialize
void deserialize(java.nio.ByteBuffer buffer)
-
getSerializeId
FilterSerializeId getSerializeId()
-
getTimeRanges
default java.util.List<TimeRange> getTimeRanges()
-
reverse
Filter reverse()
-
-