public class ArrayBlock extends AbstractArrayBlock
| Constructor and Description |
|---|
ArrayBlock(Block values,
io.airlift.slice.Slice offsets,
int offsetBase,
io.airlift.slice.Slice valueIsNull) |
| Modifier and Type | Method and Description |
|---|---|
void |
assureLoaded()
Assures that all data for the block is in memory.
|
protected int |
getOffsetBase() |
protected io.airlift.slice.Slice |
getOffsets() |
int |
getPositionCount()
Returns the number of positions in this block.
|
int |
getRetainedSizeInBytes()
Returns the retained size of this block in memory.
|
int |
getSizeInBytes()
Returns the logical size of this block in memory.
|
protected io.airlift.slice.Slice |
getValueIsNull() |
protected Block |
getValues() |
String |
toString() |
bytesCompare, bytesEqual, compareTo, copyPositions, copyRegion, equals, getByte, getDouble, getEncoding, getFloat, getInt, getLength, getLong, getObject, getRegion, getShort, getSingleValueBlock, getSlice, hash, isNull, writeBytesTo, writePositionTopublic ArrayBlock(Block values, io.airlift.slice.Slice offsets, int offsetBase, io.airlift.slice.Slice valueIsNull)
public int getPositionCount()
Blockpublic int getSizeInBytes()
Blockpublic int getRetainedSizeInBytes()
Blockprotected Block getValues()
getValues in class AbstractArrayBlockprotected io.airlift.slice.Slice getOffsets()
getOffsets in class AbstractArrayBlockprotected int getOffsetBase()
getOffsetBase in class AbstractArrayBlockprotected io.airlift.slice.Slice getValueIsNull()
getValueIsNull in class AbstractArrayBlockpublic void assureLoaded()
BlockThis allows streaming data sources to skip sections that are not accessed in a query.
Copyright © 2012-2016. All Rights Reserved.