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.
|
Block |
build()
Builds the block.
|
BlockBuilder |
closeEntry()
Write a byte to 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.
|
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, getByte, getEncodingName, getEstimatedDataSizeForStats, getInt, getLoadedBlock, getLogicalSizeInBytes, getLong, getLong, getObject, getPositionCount, getPositionsSizeInBytes, getRegion, getRegionSizeInBytes, getRetainedSizeInBytes, getShort, getSingleValueBlock, getSizeInBytes, getSlice, getSliceLength, hash, isNull, mayHaveNull, retainedBytesForEachPart, writeBytesTo, writePositionTodefault 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 Block getPositions(int[] visiblePositions, int offset, int length)
visiblePositions.getPositions in interface BlockBlockBuilder closeEntry()
BlockBuilder appendNull()
default BlockBuilder appendStructure(Block value)
default BlockBuilder appendStructureInternal(Block block, int position)
Block build()
BlockBuilder newBlockBuilderLike(BlockBuilderStatus blockBuilderStatus)
Copyright © 2012–2019. All rights reserved.