MutableBlock

com.netflix.atlas.core.model.MutableBlock
trait MutableBlock extends Block

Block type that can be update incrementally as data is coming in.

Attributes

Graph
Supertypes
trait Block
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def reset(t: Long): Unit

Reset this block so it can be re-used.

Reset this block so it can be re-used.

Attributes

def update(pos: Int, value: Double): Unit

Update the value for the specified position.

Update the value for the specified position.

Attributes

Inherited methods

def get(pos: Int, aggr: Int): Double

Return the value for a given position in the block. All implementations should make this a constant time operation. The default implementation assumes a single value.

Return the value for a given position in the block. All implementations should make this a constant time operation. The default implementation assumes a single value.

Value parameters

aggr

the aggregate value to read from the block

pos

position to read, value should be in the interval [0,size).

Attributes

Inherited from:
Block
def sizeOf(value: Any): Int

Used to get a quick estimate of the size of numeric primatives and arrays of numeric primitives.

Used to get a quick estimate of the size of numeric primatives and arrays of numeric primitives.

Attributes

Inherited from:
Block

Returns a copy of the block as a simple array-backed block.

Returns a copy of the block as a simple array-backed block.

Attributes

Inherited from:
Block

Inherited and Abstract methods

def byteCount: Int

Number of bytes required to store this block in a simple binary representation.

Number of bytes required to store this block in a simple binary representation.

Attributes

Inherited from:
Block
def get(pos: Int): Double

Return the value for a given position in the block. All implementations should make this a constant time operation.

Return the value for a given position in the block. All implementations should make this a constant time operation.

Value parameters

pos

position to read, value should be in the interval [0,size).

Attributes

Inherited from:
Block
def size: Int

Number of data points to store in the block.

Number of data points to store in the block.

Attributes

Inherited from:
Block
def start: Long

Start time for the block (epoch in milliseconds).

Start time for the block (epoch in milliseconds).

Attributes

Inherited from:
Block