use of com.navercorp.pinpoint.web.mapper.stat.SampledUriStatResultExtractor in project pinpoint by naver.
the class HbaseSampledAgentUriStatDaoV2 method getSampledAgentStatList.
@Override
public List<SampledAgentUriStat> getSampledAgentStatList(String agentId, TimeWindow timeWindow) {
long scanFrom = timeWindow.getWindowRange().getFrom();
long scanTo = timeWindow.getWindowRange().getTo() + timeWindow.getWindowSlotSize();
Range range = Range.newRange(scanFrom, scanTo);
AgentStatMapperV2<AgentUriStatBo> mapper = operations.createRowMapper(agentUriStatDecoder, range);
SampledUriStatResultExtractor resultExtractor = new SampledUriStatResultExtractor(timeWindow, mapper, agentUriStatSampler);
List<SampledAgentUriStat> sampledAgentUriStatList = operations.getSampledAgentStatList(AgentStatType.URI, resultExtractor, agentId, range);
return sampledAgentUriStatList;
}
Aggregations