Builder

com.netflix.atlas.core.index.TaggedItemIndex.Builder
class Builder(size: Int)

Builder for creating an index. The builder should be used in a particular order. A first pass over the tags is needed to compute a table of strings. A subsequent pass is needed to build up the actual index. Steps:

  1. Call addStrings for each tag key/value pair for all items.
  2. Call createStringTable to build the string tables.
  3. Call addTag for each tag key/value pair for all items.
  4. Call build to create the final index.

Value parameters

size

Number of items that will be in the index.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def addStrings(k: String, v: String): Unit

Add a string key and value into the string tables.

Add a string key and value into the string tables.

Attributes

def addTag(i: Int, k: String, v: String): Unit

Add each of the tags.

Add each of the tags.

Value parameters

i

Position for the item that has the tag.

k

Key for the tag. The key must have already been passed in when building the string table.

v

Value for the tag. The value must have already been passed in when building the string table.

Attributes

def createStringTables(): Unit

Create string tables and prepare for building index structures.

Create string tables and prepare for building index structures.

Attributes