use of com.yahoo.bullet.aggregations.grouping.GroupDataSummary in project bullet-core by yahoo.
the class TupleSketch method getRecords.
@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());
}
return result;
}
use of com.yahoo.bullet.aggregations.grouping.GroupDataSummary in project bullet-core by yahoo.
the class TupleSketch method union.
@Override
public void union(byte[] serialized) {
Sketch<GroupDataSummary> deserialized = Sketches.heapifySketch(new NativeMemory(serialized));
unionSketch.update(deserialized);
super.union();
}
Aggregations