public class LazySliceArrayBlock extends AbstractVariableWidthBlock
| Constructor and Description |
|---|
LazySliceArrayBlock(int positionCount,
LazyBlockLoader<LazySliceArrayBlock> loader) |
| Modifier and Type | Method and Description |
|---|---|
void |
assureLoaded()
Assures that all data for the block is in memory.
|
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) |
void |
setValues(io.airlift.slice.Slice[] values) |
String |
toString() |
bytesCompare, bytesEqual, compareTo, equals, getByte, getDouble, getFloat, getInt, getLong, getShort, getSingleValueBlock, getSlice, hash, isNull, writeBytesTopublic LazySliceArrayBlock(int positionCount,
LazyBlockLoader<LazySliceArrayBlock> loader)
public void setValues(io.airlift.slice.Slice[] values)
public BlockEncoding getEncoding()
BlockgetEncoding in interface BlockgetEncoding in class AbstractVariableWidthBlockprotected 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 int getPositionCount()
Blockpublic int getLength(int position)
Blockposition.public int getSizeInBytes()
Blockpublic Block getRegion(int positionOffset, int length)
Blockpublic void assureLoaded()
BlockassureLoaded in interface BlockassureLoaded in class AbstractVariableWidthBlockCopyright © 2012-2014. All Rights Reserved.