public class SingleMapBlock extends AbstractSingleMapBlock
| Modifier and Type | Method and Description |
|---|---|
Block |
appendNull()
Returns a block that has an appended null at the end, no matter if the original block has null or not.
|
String |
getEncodingName()
Get the encoding for this block.
|
Block |
getLoadedBlock()
Returns a block that assures all data is in memory.
|
int |
getOffset() |
int |
getPositionCount()
Returns the number of positions in this block.
|
long |
getRetainedSizeInBytes()
Returns the retained size of this block in memory, including over-allocations.
|
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. |
int |
seekKey(Object nativeValue) |
int |
seekKeyExact(Block nativeValue) |
int |
seekKeyExact(boolean nativeValue) |
int |
seekKeyExact(double nativeValue) |
int |
seekKeyExact(long nativeValue) |
int |
seekKeyExact(io.airlift.slice.Slice nativeValue) |
String |
toString() |
bytesCompare, bytesEqual, compareTo, copyPositions, copyRegion, equals, getBlock, getBlockUnchecked, getByte, getByteUnchecked, getEstimatedDataSizeForStats, getInt, getIntUnchecked, getLong, getLong, getLongUnchecked, getLongUnchecked, getOffsetBase, getPositionsSizeInBytes, getRegion, getRegionSizeInBytes, getShort, getShortUnchecked, getSingleValueBlock, getSlice, getSliceLength, getSliceLengthUnchecked, getSliceUnchecked, hash, isNull, isNullUnchecked, writeBytesTo, writePositionTo, writePositionToclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetLogicalSizeInBytes, getPositions, mayHaveNullpublic 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 blockpublic String getEncodingName()
Blockpublic int getOffset()
public Block getLoadedBlock()
BlockThis allows streaming data sources to skip sections that are not accessed in a query.
public Block appendNull()
Blockpublic int seekKey(Object nativeValue)
nativeValue key. -1 when key is not found.public int seekKeyExact(long nativeValue)
public int seekKeyExact(boolean nativeValue)
public int seekKeyExact(double nativeValue)
public int seekKeyExact(io.airlift.slice.Slice nativeValue)
public int seekKeyExact(Block nativeValue)
Copyright © 2012–2020. All rights reserved.