/** * Gets the metrics and the group values stored as a {@link BulletRecord}. * * @param provider A BulletRecordProvider to generate BulletRecords. * @return A non-null {@link BulletRecord} containing the data stored in this object. */ public BulletRecord getAsBulletRecord(BulletRecordProvider provider) { return getAsBulletRecord(Collections.emptyMap(), provider); }
@Override public List<BulletRecord> getRecords() { merge(); List<BulletRecord> result = new ArrayList<>(); SketchIterator<GroupDataSummary> iterator = this.result.iterator(); for (int count = 0; iterator.next() && count < maxSize; count++) { GroupData data = iterator.getSummary().getData(); result.add(data.getAsBulletRecord(provider)); } return result; }