java.lang.Object
org.elasticsearch.compute.data.BreakingTDigestHolder
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.lucene.util.Accountable,org.elasticsearch.core.Releasable
public class BreakingTDigestHolder
extends Object
implements org.elasticsearch.core.Releasable, org.apache.lucene.util.Accountable
Can be used to deep copy or generate data for
TDigestHolders with correct memory accounting.-
Field Summary
Fields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE -
Method Summary
Modifier and TypeMethodDescriptionaccessor()voidclose()static BreakingTDigestHoldercreate(CircuitBreaker breaker) longvoidset(TDigestHolder tdigest) voidset(org.elasticsearch.tdigest.TDigestReadView tdigest, double sum, double min, double max) voidset(EncodedTDigest.CentroidIterator centroids, double sum, double min, double max) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.lucene.util.Accountable
getChildResources
-
Method Details
-
create
-
set
public void set(org.elasticsearch.tdigest.TDigestReadView tdigest, double sum, double min, double max) -
set
-
set
-
accessor
-
ramBytesUsed
public long ramBytesUsed()- Specified by:
ramBytesUsedin interfaceorg.apache.lucene.util.Accountable
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceorg.elasticsearch.core.Releasable
-