Package io.trino.spi.type
Class P4HyperLogLogType
java.lang.Object
io.trino.spi.type.AbstractType
io.trino.spi.type.AbstractVariableWidthType
io.trino.spi.type.P4HyperLogLogType
- All Implemented Interfaces:
Type,VariableWidthType
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.trino.spi.type.Type
Type.Range -
Field Summary
FieldsFields inherited from class io.trino.spi.type.AbstractVariableWidthType
EXPECTED_BYTES_PER_ENTRY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendTo(Block block, int position, BlockBuilder blockBuilder) Append the value atpositioninblocktoblockBuilder.getObjectValue(ConnectorSession session, Block block, int position) Gets an object representation of the type value in theblockposition.io.airlift.slice.SliceGets the value at theblockpositionas a Slice.voidwriteSlice(BlockBuilder blockBuilder, io.airlift.slice.Slice value) Writes the Slice value into theBlockBuilder.voidwriteSlice(BlockBuilder blockBuilder, io.airlift.slice.Slice value, int offset, int length) Writes the Slice value into theBlockBuilder.Methods inherited from class io.trino.spi.type.AbstractVariableWidthType
createBlockBuilder, createBlockBuilderMethods inherited from class io.trino.spi.type.AbstractType
equals, getBoolean, getDisplayName, getDouble, getJavaType, getLong, getObject, getTypeParameters, getTypeSignature, hashCode, isComparable, isOrderable, toString, writeBoolean, writeDouble, writeLong, writeObjectMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.trino.spi.type.Type
getBaseName, getBoolean, getDiscreteValues, getDisplayName, getDouble, getJavaType, getLong, getNextValue, getObject, getPreviousValue, getRange, getTypeId, getTypeOperatorDeclaration, getTypeParameters, getTypeSignature, isComparable, isOrderable, writeBoolean, writeDouble, writeLong, writeObject
-
Field Details
-
P4_HYPER_LOG_LOG
-
-
Constructor Details
-
P4HyperLogLogType
public P4HyperLogLogType()
-
-
Method Details
-
appendTo
Description copied from interface:TypeAppend the value atpositioninblocktoblockBuilder. -
getSlice
Description copied from interface:TypeGets the value at theblockpositionas a Slice.- Specified by:
getSlicein interfaceType- Overrides:
getSlicein classAbstractType
-
writeSlice
Description copied from interface:TypeWrites the Slice value into theBlockBuilder.- Specified by:
writeSlicein interfaceType- Overrides:
writeSlicein classAbstractType
-
writeSlice
public void writeSlice(BlockBuilder blockBuilder, io.airlift.slice.Slice value, int offset, int length) Description copied from interface:TypeWrites the Slice value into theBlockBuilder.- Specified by:
writeSlicein interfaceType- Overrides:
writeSlicein classAbstractType
-
getObjectValue
Description copied from interface:TypeGets an object representation of the type value in theblockposition. This is the value returned to the user via the REST endpoint and therefore must be JSON serializable.
-