public interface BlockBuilder extends Block
| Modifier and Type | Method and Description |
|---|---|
BlockBuilder |
appendNull()
Appends a null value to the block.
|
default BlockBuilder |
appendStructure(Block value)
Append a struct to the block and close the entry.
|
default BlockBuilder |
appendStructureInternal(Block block,
int position)
Do not use this interface outside block package.
|
default BlockBuilder |
beginBlockEntry()
Return a writer to the current entry.
|
default void |
beginDirectEntry()
Start a nested entry on the builder.
|
Block |
build()
Builds the block.
|
BlockBuilder |
closeEntry()
Closes the current entry.
|
default Block |
getPositions(int[] visiblePositions,
int offset,
int length)
Create a new block from the current materialized block by keeping the same elements
only with respect to
visiblePositions. |
BlockBuilder |
newBlockBuilderLike(BlockBuilderStatus blockBuilderStatus)
Creates a new block builder of the same type based on the current usage statistics of this block builder.
|
BlockBuilder |
newBlockBuilderLike(BlockBuilderStatus blockBuilderStatus,
int expectedEntries)
Creates a new block builder of the same type based on the expectedEntries and the current usage statistics of this block builder.
|
BlockBuilder |
readPositionFrom(io.airlift.slice.SliceInput input)
Read a single position from the input
|
default BlockBuilder |
writeByte(int value)
Write a byte to the current entry;
|
default BlockBuilder |
writeBytes(io.airlift.slice.Slice source,
int sourceIndex,
int length)
Write a byte sequences to the current entry;
|
default BlockBuilder |
writeInt(int value)
Write a int to the current entry;
|
default BlockBuilder |
writeLong(long value)
Write a long to the current entry;
|
default BlockBuilder |
writeShort(int value)
Write a short to the current entry;
|
bytesCompare, bytesEqual, compareTo, copyPositions, copyRegion, equals, fixedSizeInBytesPerPosition, getApproximateRegionLogicalSizeInBytes, getBlock, getByte, getEncodingName, getEstimatedDataSizeForStats, getInt, getLoadedBlock, getLogicalSizeInBytes, getLong, getLong, getPositionCount, getPositionsSizeInBytes, getRegion, getRegionLogicalSizeInBytes, getRegionSizeInBytes, getRetainedSizeInBytes, getShort, getSingleValueBlock, getSizeInBytes, getSlice, getSliceLength, hash, isNull, mayHaveNull, retainedBytesForEachPart, writeBytesTo, writeBytesTo, writePositionTo, writePositionTogetBlockUnchecked, getByteUnchecked, getIntUnchecked, getLongUnchecked, getLongUnchecked, getOffsetBase, getShortUnchecked, getSliceLengthUnchecked, getSliceUnchecked, isNullUncheckeddefault BlockBuilder writeByte(int value)
default BlockBuilder writeShort(int value)
default BlockBuilder writeInt(int value)
default BlockBuilder writeLong(long value)
default BlockBuilder writeBytes(io.airlift.slice.Slice source, int sourceIndex, int length)
default BlockBuilder beginBlockEntry()
default void beginDirectEntry()
default Block getPositions(int[] visiblePositions, int offset, int length)
visiblePositions.getPositions in interface BlockBlockBuilder closeEntry()
BlockBuilder appendNull()
appendNull in interface Blockdefault BlockBuilder appendStructure(Block value)
default BlockBuilder appendStructureInternal(Block block, int position)
BlockBuilder readPositionFrom(io.airlift.slice.SliceInput input)
Block build()
BlockBuilder newBlockBuilderLike(BlockBuilderStatus blockBuilderStatus)
BlockBuilder newBlockBuilderLike(BlockBuilderStatus blockBuilderStatus, int expectedEntries)
Copyright © 2012–2022. All rights reserved.