Add contents of another block to this block.
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.
Return the value for a given position in the block.
Return the value for a given position in the block. All implementations should make this a constant time operation.
position to read, value should be in the interval [0,size).
Return the value for a given position in the block.
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.
position to read, value should be in the interval [0,size).
the aggregate value to read from the block
Select the maximum value of this block or b
.
Merge the data in block b
with the data in this block.
Merge the data in block b
with the data in this block. The merge will happen in-place and
the data for this block will be changed. The policy is:
- A value is preferred over NaN
- If both blocks have values the larger value is selected. This is somewhat arbitrary, but generally works for us as most data is positive and missing data due to failures somewhere lead to a smaller number.
number of values that were changed as a result of the merge operation
Select the minimum value of this block or b
.
Reset this block so it can be re-used.
Reset this block so it can be re-used.
number of data points to store in the block
number of data points to store in the block
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.
start time for the block (epoch in milliseconds)
start time for the block (epoch in milliseconds)
Returns a copy of the block as a simple array-backed block.
Returns a copy of the block as a simple array-backed block.
Update the value for the specified position.
Update the value for the specified position.
(Since version ) see corresponding Javadoc for more information.
Block that stores the raw data in an array.
start time for the block (epoch in milliseconds)
number of data points to store in the block