public class SliceArrayBlock extends AbstractVariableWidthBlock
| Constructor and Description |
|---|
SliceArrayBlock(int positionCount,
io.airlift.slice.Slice[] values) |
| Modifier and Type | Method and Description |
|---|---|
BlockEncoding |
getEncoding()
Get the encoding for this block.
|
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, getFloat, getInt, getLong, getShort, getSingleValueBlock, getSlice, hash, isNull, writeBytesTopublic SliceArrayBlock(int positionCount,
io.airlift.slice.Slice[] values)
protected io.airlift.slice.Slice getRawSlice(int position)
getRawSlice in class AbstractVariableWidthBlockprotected int getPositionOffset(int position)
getPositionOffset in class AbstractVariableWidthBlockprotected boolean isEntryNull(int position)
isEntryNull in class AbstractVariableWidthBlockpublic BlockEncoding getEncoding()
BlockgetEncoding in interface BlockgetEncoding in class AbstractVariableWidthBlockpublic int getPositionCount()
Blockpublic int getLength(int position)
Blockposition.public int getSizeInBytes()
Blockpublic Block getRegion(int positionOffset, int length)
BlockCopyright © 2012-2014. All Rights Reserved.