currentValue = new DigestAndPercentile(new QuantileDigest(0.01));
digests.set(groupId, currentValue);
sizeOfValues += currentValue.getDigest().estimatedInMemorySizeInBytes();
}
SliceInput input = intermediates.getSlice().getInput();
// read digest
sizeOfValues -= currentValue.getDigest().estimatedInMemorySizeInBytes();
currentValue.getDigest().merge(QuantileDigest.deserialize(input));
sizeOfValues += currentValue.getDigest().estimatedInMemorySizeInBytes();
// read percentile
currentValue.setPercentile(input.readDouble());
}
}
}