SortedTagMap

com.netflix.atlas.core.util.SortedTagMap
See theSortedTagMap companion class
object SortedTagMap

Helper functions for working with sorted tag maps.

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

class Builder(initialSize: Int)

Builder for constructing a new instance of a sorted tag map.

Builder for constructing a new instance of a sorted tag map.

Attributes

Supertypes
class Object
trait Matchable
class Any

Value members

Concrete methods

def apply(data: Array[String]): SortedTagMap

Create a new instance based on an array of paired strings. The array that is passed in will not be modified and is not used internally so it is safe to reuse.

Create a new instance based on an array of paired strings. The array that is passed in will not be modified and is not used internally so it is safe to reuse.

Attributes

def apply(data: (String, String)*): SortedTagMap

Create a new instance from varargs tuples.

Create a new instance from varargs tuples.

Attributes

def apply(data: IterableOnce[(String, String)]): SortedTagMap

Create a new instance based on a collection of tuples.

Create a new instance based on a collection of tuples.

Attributes

def builder(initialSize: Int): Builder

Builder for constructing a new instance of a sorted tag map. The builder instance cannot be used after the result is computed.

Builder for constructing a new instance of a sorted tag map. The builder instance cannot be used after the result is computed.

Value parameters

initialSize

Size to use for the buffer where added elements are placed. Setting this appropriately can improve efficiency by avoiding resizes of the buffer.

Attributes

Returns

Instance of the builder.

def createUnsafe(data: Array[String], length: Int): SortedTagMap

Create a new instance from an already sorted and deduped array. The array will be used internally to the map and should not be modified.

Create a new instance from an already sorted and deduped array. The array will be used internally to the map and should not be modified.

Attributes

Concrete fields

Instance of empty tag map that can be reused.

Instance of empty tag map that can be reused.

Attributes