public class ArrayBlock extends AbstractArrayBlock
AbstractArrayBlock.ArrayBlockFunction<T>
Constructor and Description |
---|
ArrayBlock(int positionCount,
boolean[] valueIsNull,
int[] offsets,
Block values) |
Modifier and Type | Method and Description |
---|---|
protected int |
getOffsetBase() |
protected int[] |
getOffsets() |
int |
getPositionCount()
Returns the number of positions in this block.
|
long |
getRetainedSizeInBytes()
Returns the retained size of this block in memory.
|
long |
getSizeInBytes()
Returns the logical size of this block in memory.
|
protected boolean[] |
getValueIsNull() |
protected Block |
getValues() |
void |
retainedBytesForEachPart(java.util.function.BiConsumer<Object,Long> consumer)
consumer visits each of the internal data container and accepts the size for it. |
String |
toString() |
apply, copyPositions, copyRegion, getEncoding, getObject, getRegion, getRegionSizeInBytes, getSingleValueBlock, isNull, writePositionTo
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
assureLoaded, bytesCompare, bytesEqual, compareTo, equals, getByte, getInt, getLong, getShort, getSlice, getSliceLength, hash, writeBytesTo
public ArrayBlock(int positionCount, boolean[] valueIsNull, int[] offsets, Block values)
public int getPositionCount()
Block
public long getSizeInBytes()
Block
public long getRetainedSizeInBytes()
Block
public void retainedBytesForEachPart(java.util.function.BiConsumer<Object,Long> consumer)
Block
consumer
visits each of the internal data container and accepts the size for it.
This method can be helpful in cases such as memory counting for internal data structure.
Also, the method should be non-recursive, only visit the elements at the top level,
and specifically should not call retainedBytesForEachPart on nested blocks
consumer
should be called at least once with the current block and
must include the instance size of the current blockprotected Block getValues()
getValues
in class AbstractArrayBlock
protected int[] getOffsets()
getOffsets
in class AbstractArrayBlock
protected int getOffsetBase()
getOffsetBase
in class AbstractArrayBlock
protected boolean[] getValueIsNull()
getValueIsNull
in class AbstractArrayBlock
Copyright © 2012-2017. All Rights Reserved.