public class RowBlock extends AbstractRowBlock
numFields| Modifier and Type | Method and Description |
|---|---|
static Block |
fromFieldBlocks(int positionCount,
Optional<boolean[]> rowIsNull,
Block[] fieldBlocks)
Create a row block directly from columnar nulls and field blocks.
|
protected int[] |
getFieldBlockOffsets() |
Block |
getLoadedBlock()
Returns a block that assures all data is in memory.
|
protected int |
getOffsetBase() |
int |
getPositionCount()
Returns the number of positions in this block.
|
protected Block[] |
getRawFieldBlocks() |
long |
getRetainedSizeInBytes()
Returns the retained size of this block in memory, including over-allocations.
|
protected boolean[] |
getRowIsNull() |
long |
getSizeInBytes()
Returns the size of this block as if it was compacted, ignoring any over-allocations.
|
void |
retainedBytesForEachPart(BiConsumer<Object,Long> consumer)
consumer visits each of the internal data container and accepts the size for it. |
String |
toString() |
copyPositions, copyRegion, getEncodingName, getEstimatedDataSizeForStats, getFieldBlockOffset, getObject, getPositionsSizeInBytes, getRegion, getRegionSizeInBytes, getSingleValueBlock, isNull, mayHaveNull, writePositionToclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitbytesCompare, bytesEqual, compareTo, equals, getByte, getInt, getLogicalSizeInBytes, getLong, getLong, getPositions, getShort, getSlice, getSliceLength, hash, writeBytesTopublic static Block fromFieldBlocks(int positionCount, Optional<boolean[]> rowIsNull, Block[] fieldBlocks)
protected Block[] getRawFieldBlocks()
getRawFieldBlocks in class AbstractRowBlockprotected int[] getFieldBlockOffsets()
getFieldBlockOffsets in class AbstractRowBlockprotected int getOffsetBase()
getOffsetBase in class AbstractRowBlock@Nullable protected boolean[] getRowIsNull()
getRowIsNull in class AbstractRowBlockpublic int getPositionCount()
Blockpublic long getSizeInBytes()
Blockpublic long getRetainedSizeInBytes()
Blockpublic void retainedBytesForEachPart(BiConsumer<Object,Long> consumer)
Blockconsumer 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 blockCopyright © 2012–2019. All rights reserved.