public abstract class AbstractFixedWidthType extends AbstractType implements FixedWidthType
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractFixedWidthType(TypeSignature signature,
Class<?> javaType,
int fixedSize) |
| Modifier and Type | Method and Description |
|---|---|
BlockBuilder |
createBlockBuilder(BlockBuilderStatus blockBuilderStatus)
Creates a block builder for this type.
|
BlockBuilder |
createFixedSizeBlockBuilder(int positionCount)
Creates a block builder for this type sized to hold the specified number
of positions.
|
int |
getFixedSize()
Gets the size of a value of this type is bytes.
|
io.airlift.slice.Slice |
getSlice(Block block,
int position)
Gets the value at the
block position as a Slice. |
compareTo, equals, equalTo, getBoolean, getDisplayName, getDouble, getJavaType, getLong, getTypeParameters, getTypeSignature, hash, hashCode, isComparable, isOrderable, toString, writeBoolean, writeDouble, writeLong, writeSlice, writeSliceclone, finalize, getClass, notify, notifyAll, wait, wait, waitappendTo, compareTo, equalTo, getBoolean, getDisplayName, getDouble, getJavaType, getLong, getObjectValue, getTypeParameters, getTypeSignature, hash, isComparable, isOrderable, writeBoolean, writeDouble, writeLong, writeSlice, writeSliceprotected AbstractFixedWidthType(TypeSignature signature, Class<?> javaType, int fixedSize)
public final int getFixedSize()
FixedWidthTypegetFixedSize in interface FixedWidthTypepublic final BlockBuilder createBlockBuilder(BlockBuilderStatus blockBuilderStatus)
TypecreateBlockBuilder in interface Typepublic final BlockBuilder createFixedSizeBlockBuilder(int positionCount)
FixedWidthTypecreateFixedSizeBlockBuilder in interface FixedWidthTypeCopyright © 2012-2015. All Rights Reserved.