public class GroupByFilter extends Object implements Filter, Serializable
| Modifier and Type | Field and Description |
|---|---|
protected long |
endTime |
protected long |
interval |
protected long |
slidingStep |
protected long |
startTime |
| Constructor and Description |
|---|
GroupByFilter() |
GroupByFilter(long interval,
long slidingStep,
long startTime,
long endTime) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containStartEndTime(long startTime,
long endTime)
To examine whether the partition [startTime, endTime] is subsets of filter.
|
Filter |
copy() |
void |
deserialize(ByteBuffer buffer) |
boolean |
equals(Object obj) |
long |
getEndTime() |
FilterSerializeId |
getSerializeId() |
long |
getStartTime() |
int |
hashCode() |
boolean |
satisfy(long time,
Object value)
To examine whether the single point(with time and value) is satisfied with the filter.
|
boolean |
satisfy(Statistics statistics)
To examine whether the statistics is satisfied with the filter.
|
boolean |
satisfyStartEndTime(long startTime,
long endTime)
To examine whether the min time and max time are satisfied with the filter.
|
void |
serialize(DataOutputStream outputStream) |
String |
toString() |
protected long interval
protected long slidingStep
protected long startTime
protected long endTime
public GroupByFilter(long interval,
long slidingStep,
long startTime,
long endTime)
public GroupByFilter()
public boolean satisfy(Statistics statistics)
Filterpublic boolean satisfy(long time,
Object value)
Filterpublic boolean satisfyStartEndTime(long startTime,
long endTime)
FiltersatisfyStartEndTime in interface FilterstartTime - start time of a page, series or deviceendTime - end time of a page, series or devicepublic boolean containStartEndTime(long startTime,
long endTime)
FiltercontainStartEndTime in interface FilterstartTime - start time of a partitionendTime - end time of a partitionpublic void serialize(DataOutputStream outputStream)
public void deserialize(ByteBuffer buffer)
deserialize in interface Filterpublic FilterSerializeId getSerializeId()
getSerializeId in interface Filterpublic long getStartTime()
public long getEndTime()
Copyright © 2022 The Apache Software Foundation. All rights reserved.