Class FilteredAttributes.SmallFilteredAttributes
- java.lang.Object
-
- io.opentelemetry.sdk.metrics.internal.view.FilteredAttributes
-
- io.opentelemetry.sdk.metrics.internal.view.FilteredAttributes.SmallFilteredAttributes
-
- All Implemented Interfaces:
Attributes
- Enclosing class:
- FilteredAttributes
private static class FilteredAttributes.SmallFilteredAttributes extends FilteredAttributes
Implementation that relies on the source having less thanBITS_PER_INTEGER
attributes, and storing entry filter status in the bits of an integer.
-
-
Field Summary
Fields Modifier and Type Field Description private static int
BITS_PER_INTEGER
private int
filteredIndices
-
Constructor Summary
Constructors Modifier Constructor Description private
SmallFilteredAttributes(java.lang.Object[] sourceData, int hashcode, int size, int filteredIndices)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) boolean
includeIndexInOutput(int sourceIndex)
-
-
-
Field Detail
-
BITS_PER_INTEGER
private static final int BITS_PER_INTEGER
- See Also:
- Constant Field Values
-
filteredIndices
private final int filteredIndices
-
-
Method Detail
-
includeIndexInOutput
boolean includeIndexInOutput(int sourceIndex)
- Specified by:
includeIndexInOutput
in classFilteredAttributes
-
-