Class DropAggregation
- java.lang.Object
-
- io.opentelemetry.sdk.metrics.internal.view.DropAggregation
-
- All Implemented Interfaces:
Aggregation
,AggregatorFactory
public final class DropAggregation extends java.lang.Object implements Aggregation, AggregatorFactory
Configuration representing no aggregation.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 static Aggregation
INSTANCE
-
Constructor Summary
Constructors Modifier Constructor Description private
DropAggregation()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends PointData,U extends ExemplarData>
Aggregator<T,U>createAggregator(InstrumentDescriptor instrumentDescriptor, ExemplarFilter exemplarFilter, MemoryMode memoryMode)
Returns a newAggregator
.static Aggregation
getInstance()
boolean
isCompatibleWithInstrument(InstrumentDescriptor instrumentDescriptor)
Determine if theAggregator
produced byAggregatorFactory.createAggregator(InstrumentDescriptor, ExemplarFilter, MemoryMode)
is compatible with theinstrumentDescriptor
.java.lang.String
toString()
-
-
-
Field Detail
-
INSTANCE
private static final Aggregation INSTANCE
-
-
Method Detail
-
getInstance
public static Aggregation getInstance()
-
createAggregator
public <T extends PointData,U extends ExemplarData> Aggregator<T,U> createAggregator(InstrumentDescriptor instrumentDescriptor, ExemplarFilter exemplarFilter, MemoryMode memoryMode)
Description copied from interface:AggregatorFactory
Returns a newAggregator
.- Specified by:
createAggregator
in interfaceAggregatorFactory
- Parameters:
instrumentDescriptor
- the descriptor of theInstrument
that will record measurements.exemplarFilter
- the filter on which measurements should turn into exemplarsmemoryMode
- TheMemoryMode
the 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:AggregatorFactory
Determine if theAggregator
produced byAggregatorFactory.createAggregator(InstrumentDescriptor, ExemplarFilter, MemoryMode)
is compatible with theinstrumentDescriptor
.- Specified by:
isCompatibleWithInstrument
in interfaceAggregatorFactory
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-