ConstantBlock

com.netflix.atlas.core.model.ConstantBlock
case class ConstantBlock(start: Long, size: Int, value: Double) extends Block

Simple block type where all data points have the same value.

Value parameters

size

number of data points to store in the block

start

start time for the block (epoch in milliseconds)

value

value for the data points

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Block
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete 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

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 productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
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