public class FixedWidthBlockBuilder extends AbstractFixedWidthBlock implements BlockBuilder
entrySize, type| Constructor and Description |
|---|
FixedWidthBlockBuilder(FixedWidthType type,
BlockBuilderStatus blockBuilderStatus) |
FixedWidthBlockBuilder(FixedWidthType type,
int positionCount) |
| Modifier and Type | Method and Description |
|---|---|
BlockBuilder |
appendBoolean(boolean value)
Appends a boolean value to the block.
|
BlockBuilder |
appendDouble(double value)
Appends a double value to the block.
|
BlockBuilder |
appendLong(long value)
Appends a long value to the block.
|
BlockBuilder |
appendNull()
Appends a null value to the block.
|
BlockBuilder |
appendSlice(io.airlift.slice.Slice value)
Appends a Slice value to the block.
|
BlockBuilder |
appendSlice(io.airlift.slice.Slice value,
int offset,
int length)
Appends a range of a Slice value to the block.
|
Block |
build()
Builds the block.
|
int |
getPositionCount()
Returns the number of positions in this block.
|
protected io.airlift.slice.Slice |
getRawSlice() |
int |
getSizeInBytes()
Returns the size of this block in memory.
|
boolean |
isEmpty()
Have any values been added to the block?
|
boolean |
isFull()
Is this block full? If true no more values should be added to the block.
|
String |
toString() |
appendTo, compareTo, compareTo, compareTo, cursor, equalTo, equalTo, equalTo, getBoolean, getDouble, getEncoding, getLong, getObjectValue, getRegion, getSingleValueBlock, getSlice, getType, hash, isNullclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitappendTo, compareTo, compareTo, compareTo, cursor, equalTo, equalTo, equalTo, getBoolean, getDouble, getEncoding, getLong, getObjectValue, getRegion, getSingleValueBlock, getSlice, getType, hash, isNullpublic FixedWidthBlockBuilder(FixedWidthType type, BlockBuilderStatus blockBuilderStatus)
public FixedWidthBlockBuilder(FixedWidthType type, int positionCount)
protected io.airlift.slice.Slice getRawSlice()
getRawSlice in class AbstractFixedWidthBlockpublic int getPositionCount()
BlockgetPositionCount in interface Blockpublic boolean isEmpty()
BlockBuilderisEmpty in interface BlockBuilderpublic boolean isFull()
BlockBuilderisFull in interface BlockBuilderpublic int getSizeInBytes()
BlockgetSizeInBytes in interface BlockgetSizeInBytes in class AbstractFixedWidthBlockpublic BlockBuilder appendBoolean(boolean value)
BlockBuilderappendBoolean in interface BlockBuilderpublic BlockBuilder appendLong(long value)
BlockBuilderappendLong in interface BlockBuilderpublic BlockBuilder appendDouble(double value)
BlockBuilderappendDouble in interface BlockBuilderpublic BlockBuilder appendSlice(io.airlift.slice.Slice value)
BlockBuilderappendSlice in interface BlockBuilderpublic BlockBuilder appendSlice(io.airlift.slice.Slice value, int offset, int length)
BlockBuilderappendSlice in interface BlockBuilderpublic BlockBuilder appendNull()
BlockBuilderappendNull in interface BlockBuilderpublic Block build()
BlockBuilderbuild in interface BlockBuilderCopyright © 2012-2014. All Rights Reserved.