Class ArrayBackedAttributes

java.lang.Object
io.opentelemetry.api.internal.ImmutableKeyValuePairs<AttributeKey<?>,Object>
io.opentelemetry.api.common.ArrayBackedAttributes
All Implemented Interfaces:
Attributes

@Immutable final class ArrayBackedAttributes extends ImmutableKeyValuePairs<AttributeKey<?>,Object> implements Attributes
  • Field Details

  • Constructor Details

    • ArrayBackedAttributes

      private ArrayBackedAttributes(Object[] data, Comparator<AttributeKey<?>> keyComparator)
    • ArrayBackedAttributes

      ArrayBackedAttributes(Object[] data)
      Only use this constructor if you can guarantee that the data has been de-duped, sorted by key and contains no null values or null/empty keys.
      Parameters:
      data - the raw data
  • Method Details