public class FixedWidthBlock extends AbstractFixedWidthBlock
fixedSize
Constructor and Description |
---|
FixedWidthBlock(int fixedSize,
int positionCount,
io.airlift.slice.Slice slice,
io.airlift.slice.Slice valueIsNull) |
Modifier and Type | Method and Description |
---|---|
Block |
copyPositions(List<Integer> positions)
Returns a block containing the specified positions.
|
Block |
copyRegion(int positionOffset,
int length)
Returns a block starting at the specified position and extends for the
specified length.
|
int |
getPositionCount()
Returns the number of positions in this block.
|
protected io.airlift.slice.Slice |
getRawSlice() |
Block |
getRegion(int positionOffset,
int length)
Returns a block starting at the specified position and extends for the
specified length.
|
int |
getRetainedSizeInBytes()
Returns the retained size of this block in memory.
|
int |
getSizeInBytes()
Returns the logical size of this block in memory.
|
protected boolean |
isEntryNull(int position) |
String |
toString() |
assureLoaded, bytesCompare, bytesEqual, checkReadablePosition, compareTo, equals, getByte, getDouble, getEncoding, getFixedSize, getFloat, getInt, getLength, getLong, getShort, getSingleValueBlock, getSlice, hash, isNull, writeBytesTo, writePositionTo
public FixedWidthBlock(int fixedSize, int positionCount, io.airlift.slice.Slice slice, io.airlift.slice.Slice valueIsNull)
protected io.airlift.slice.Slice getRawSlice()
getRawSlice
in class AbstractFixedWidthBlock
protected boolean isEntryNull(int position)
isEntryNull
in class AbstractFixedWidthBlock
public int getPositionCount()
Block
public int getSizeInBytes()
Block
public int getRetainedSizeInBytes()
Block
public Block copyPositions(List<Integer> positions)
Block
public Block getRegion(int positionOffset, int length)
Block
public Block copyRegion(int positionOffset, int length)
Block
Copyright © 2012-2015. All Rights Reserved.