Block

com.netflix.atlas.core.model.Block
See theBlock companion object
sealed trait Block

Represents a fixed size window of metric data. All block implementations provide fast random access to data.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

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

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

def size: Int

Number of data points to store in the block.

Number of data points to store in the block.

Attributes

def start: Long

Start time for the block (epoch in milliseconds).

Start time for the block (epoch in milliseconds).

Attributes

Concrete 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

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

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