public class ArrayElementBlockWriter extends AbstractArrayElementBlock implements BlockBuilder
start| Constructor and Description |
|---|
ArrayElementBlockWriter(BlockBuilder blockBuilder,
int start) |
| Modifier and Type | Method and Description |
|---|---|
BlockBuilder |
appendNull()
Appends a null value to the block.
|
BlockBuilder |
beginBlockEntry()
Return a writer to the current entry.
|
Block |
build()
Builds the block.
|
BlockBuilder |
closeEntry()
Write a byte to the current entry;
|
protected BlockBuilder |
getBlock() |
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, copyPositions, copyRegion, equals, getByte, getDouble, getEncoding, 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, getEncoding, getFloat, getInt, getLength, getLong, getObject, getRegion, getShort, getSingleValueBlock, getSlice, hash, isNull, writeBytesTo, writePositionTopublic ArrayElementBlockWriter(BlockBuilder blockBuilder, int start)
protected BlockBuilder getBlock()
getBlock in class AbstractArrayElementBlockpublic 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 appendNull()
BlockBuilderappendNull in interface BlockBuilderpublic BlockBuilder closeEntry()
BlockBuildercloseEntry in interface BlockBuilderpublic int getPositionCount()
BlockgetPositionCount in interface Blockpublic Block build()
BlockBuilderbuild in interface BlockBuilderCopyright © 2012-2016. All Rights Reserved.