Class ExplicitBucketHistogramAggregation
- java.lang.Object
-
- io.opentelemetry.sdk.metrics.internal.view.ExplicitBucketHistogramAggregation
-
- All Implemented Interfaces:
Aggregation,AggregatorFactory
public final class ExplicitBucketHistogramAggregation extends java.lang.Object implements Aggregation, AggregatorFactory
Explicit bucket histogram aggregation configuration.This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<java.lang.Double>bucketBoundariesprivate double[]bucketBoundaryArrayprivate static AggregationDEFAULT
-
Constructor Summary
Constructors Modifier Constructor Description privateExplicitBucketHistogramAggregation(java.util.List<java.lang.Double> bucketBoundaries)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Aggregationcreate(java.util.List<java.lang.Double> bucketBoundaries)<T extends PointData,U extends ExemplarData>
Aggregator<T,U>createAggregator(InstrumentDescriptor instrumentDescriptor, ExemplarFilter exemplarFilter, MemoryMode memoryMode)Returns a newAggregator.static AggregationgetDefault()booleanisCompatibleWithInstrument(InstrumentDescriptor instrumentDescriptor)Determine if theAggregatorproduced byAggregatorFactory.createAggregator(InstrumentDescriptor, ExemplarFilter, MemoryMode)is compatible with theinstrumentDescriptor.java.lang.StringtoString()
-
-
-
Field Detail
-
DEFAULT
private static final Aggregation DEFAULT
-
bucketBoundaries
private final java.util.List<java.lang.Double> bucketBoundaries
-
bucketBoundaryArray
private final double[] bucketBoundaryArray
-
-
Method Detail
-
getDefault
public static Aggregation getDefault()
-
create
public static Aggregation create(java.util.List<java.lang.Double> bucketBoundaries)
-
createAggregator
public <T extends PointData,U extends ExemplarData> Aggregator<T,U> createAggregator(InstrumentDescriptor instrumentDescriptor, ExemplarFilter exemplarFilter, MemoryMode memoryMode)
Description copied from interface:AggregatorFactoryReturns a newAggregator.- Specified by:
createAggregatorin interfaceAggregatorFactory- Parameters:
instrumentDescriptor- the descriptor of theInstrumentthat will record measurements.exemplarFilter- the filter on which measurements should turn into exemplarsmemoryMode- TheMemoryModethe aggregator will use- Returns:
- a new
Aggregator.Aggregator.drop()indicates no measurements should be recorded.
-
isCompatibleWithInstrument
public boolean isCompatibleWithInstrument(InstrumentDescriptor instrumentDescriptor)
Description copied from interface:AggregatorFactoryDetermine if theAggregatorproduced byAggregatorFactory.createAggregator(InstrumentDescriptor, ExemplarFilter, MemoryMode)is compatible with theinstrumentDescriptor.- Specified by:
isCompatibleWithInstrumentin interfaceAggregatorFactory
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-