public class InterleavedBlockBuilder extends AbstractInterleavedBlock implements BlockBuilder
| Constructor and Description |
|---|
InterleavedBlockBuilder(List<Type> types,
BlockBuilderStatus blockBuilderStatus,
int expectedEntries) |
InterleavedBlockBuilder(List<Type> types,
BlockBuilderStatus blockBuilderStatus,
int expectedEntries,
int expectedBytesPerEntry) |
| Modifier and Type | Method and Description |
|---|---|
BlockBuilder |
appendNull()
Appends a null value to the block.
|
BlockBuilder |
beginBlockEntry()
Return a writer to the current entry.
|
InterleavedBlock |
build()
Builds the block.
|
BlockBuilder |
closeEntry()
Write a byte to the current entry;
|
protected Block |
getBlock(int blockIndex) |
InterleavedBlockEncoding |
getEncoding()
Get the encoding for this block.
|
int |
getPositionCount()
Returns the number of positions in this block.
|
int |
getRetainedSizeInBytes()
Returns the retained size of this block in memory.
|
int |
getSizeInBytes()
Returns the logical size of this block in memory.
|
String |
toString() |
BlockBuilder |
writeByte(int value)
Write a byte to the current entry;
|
BlockBuilder |
writeBytes(io.airlift.slice.Slice source,
int sourceIndex,
int length)
Write a byte sequences to the current entry;
|
BlockBuilder |
writeDouble(double value)
Write a double to the current entry;
|
BlockBuilder |
writeFloat(float value)
Write a float to the current entry;
|
BlockBuilder |
writeInt(int value)
Write a int to the current entry;
|
BlockBuilder |
writeLong(long value)
Write a long to the current entry;
|
BlockBuilder |
writeObject(Object value)
Write an object to the current entry;
|
BlockBuilder |
writeShort(int value)
Write a short to the current entry;
|
assureLoaded, bytesCompare, bytesEqual, compareTo, computeBlockEncoding, copyPositions, copyRegion, equals, getByte, getDouble, getFloat, getInt, getLength, getLong, getObject, getRegion, getShort, getSingleValueBlock, getSlice, hash, isNull, writeBytesTo, writePositionToclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitassureLoaded, bytesCompare, bytesEqual, compareTo, copyPositions, copyRegion, equals, getByte, getDouble, getFloat, getInt, getLength, getLong, getObject, getRegion, getShort, getSingleValueBlock, getSlice, hash, isNull, writeBytesTo, writePositionTopublic InterleavedBlockBuilder(List<Type> types, BlockBuilderStatus blockBuilderStatus, int expectedEntries)
public InterleavedBlockBuilder(List<Type> types, BlockBuilderStatus blockBuilderStatus, int expectedEntries, int expectedBytesPerEntry)
protected Block getBlock(int blockIndex)
getBlock in class AbstractInterleavedBlockpublic InterleavedBlockEncoding getEncoding()
BlockgetEncoding in interface BlockgetEncoding in class AbstractInterleavedBlockpublic int getPositionCount()
BlockgetPositionCount in interface Blockpublic int getSizeInBytes()
BlockgetSizeInBytes in interface Blockpublic int getRetainedSizeInBytes()
BlockgetRetainedSizeInBytes in interface Blockpublic BlockBuilder writeByte(int value)
BlockBuilderwriteByte in interface BlockBuilderpublic BlockBuilder writeShort(int value)
BlockBuilderwriteShort in interface BlockBuilderpublic BlockBuilder writeInt(int value)
BlockBuilderwriteInt in interface BlockBuilderpublic BlockBuilder writeLong(long value)
BlockBuilderwriteLong in interface BlockBuilderpublic BlockBuilder writeFloat(float value)
BlockBuilderwriteFloat in interface BlockBuilderpublic BlockBuilder writeDouble(double value)
BlockBuilderwriteDouble in interface BlockBuilderpublic BlockBuilder writeBytes(io.airlift.slice.Slice source, int sourceIndex, int length)
BlockBuilderwriteBytes in interface BlockBuilderpublic BlockBuilder writeObject(Object value)
BlockBuilderwriteObject in interface BlockBuilderpublic BlockBuilder beginBlockEntry()
BlockBuilderbeginBlockEntry in interface BlockBuilderpublic BlockBuilder closeEntry()
BlockBuildercloseEntry in interface BlockBuilderpublic BlockBuilder appendNull()
BlockBuilderappendNull in interface BlockBuilderpublic InterleavedBlock build()
BlockBuilderbuild in interface BlockBuilderCopyright © 2012-2016. All Rights Reserved.