public class VariableWidthBlock extends AbstractVariableWidthBlock
| Constructor and Description |
|---|
VariableWidthBlock(int positionCount,
io.airlift.slice.Slice slice,
int[] offsets,
boolean[] valueIsNull) |
| Modifier and Type | Method and Description |
|---|---|
int |
getLength(int position)
Gets the length of the value at the
position. |
int |
getPositionCount()
Returns the number of positions in this block.
|
protected int |
getPositionOffset(int position) |
protected io.airlift.slice.Slice |
getRawSlice(int position) |
Block |
getRegion(int positionOffset,
int length)
Returns a block starting at the specified position and extends for the
specified length.
|
int |
getSizeInBytes()
Returns the size of this block in memory.
|
protected boolean |
isEntryNull(int position) |
String |
toString() |
assureLoaded, bytesCompare, bytesEqual, compareTo, equals, getByte, getDouble, getEncoding, getFloat, getInt, getLong, getShort, getSingleValueBlock, getSlice, hash, isNull, writeBytesTopublic VariableWidthBlock(int positionCount,
io.airlift.slice.Slice slice,
int[] offsets,
boolean[] valueIsNull)
protected final int getPositionOffset(int position)
getPositionOffset in class AbstractVariableWidthBlockpublic int getLength(int position)
Blockposition.protected boolean isEntryNull(int position)
isEntryNull in class AbstractVariableWidthBlockpublic int getPositionCount()
Blockpublic int getSizeInBytes()
Blockprotected io.airlift.slice.Slice getRawSlice(int position)
getRawSlice in class AbstractVariableWidthBlockpublic Block getRegion(int positionOffset, int length)
BlockCopyright © 2012-2015. All Rights Reserved.