use of com.navercorp.pinpoint.common.server.bo.stat.AgentStatDataPointList in project pinpoint by naver.
the class AgentStatMapperV2 method filter.
private boolean filter(T candidate) {
if (candidate instanceof AgentStatDataPointList) {
AgentStatDataPointList<AgentStatDataPoint> agentStatDataPointList = (AgentStatDataPointList) candidate;
List<AgentStatDataPoint> list = agentStatDataPointList.getList();
for (AgentStatDataPoint agentStatDataPoint : list) {
long timestamp = agentStatDataPoint.getTimestamp();
if (!this.filter.filter(timestamp)) {
return false;
}
}
return true;
} else {
long timestamp = candidate.getTimestamp();
return this.filter.filter(timestamp);
}
}
Aggregations