Package io.trino.spi.type
Class ArrayType
java.lang.Object
io.trino.spi.type.AbstractType
io.trino.spi.type.ArrayType
- All Implemented Interfaces:
Type
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.trino.spi.type.Type
Type.Range -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendTo(Block block, int position, BlockBuilder blockBuilder) Append the value atpositioninblocktoblockBuilder.createBlockBuilder(BlockBuilderStatus blockBuilderStatus, int expectedEntries) Creates the preferred block builder for this type.createBlockBuilder(BlockBuilderStatus blockBuilderStatus, int expectedEntries, int expectedBytesPerEntry) Creates the preferred block builder for this type.Returns the name of this type that should be displayed to end-users.Gets the value at theblockpositionas an Object.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.getTypeOperatorDeclaration(TypeOperators typeOperators) Gets the declared type specific operators for this type.For parameterized types returns the list of parameters.booleanTrue if the type supports equalTo and hash.booleanTrue if the type supports compareTo.voidwriteObject(BlockBuilder blockBuilder, Object value) Writes the Object value into theBlockBuilder.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.AbstractType
equals, getBoolean, getDouble, getJavaType, getLong, getTypeSignature, hashCode, toString, writeBoolean, writeDouble, writeLongMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.trino.spi.type.Type
getBaseName, getDiscreteValues, getNextValue, getPreviousValue, getRange, getTypeId
-
Constructor Details
-
ArrayType
-
-
Method Details
-
getTypeOperatorDeclaration
Description copied from interface:TypeGets the declared type specific operators for this type. -
getElementType
-
isComparable
public boolean isComparable()Description copied from interface:TypeTrue if the type supports equalTo and hash.- Specified by:
isComparablein interfaceType- Overrides:
isComparablein classAbstractType
-
isOrderable
public boolean isOrderable()Description copied from interface:TypeTrue if the type supports compareTo.- Specified by:
isOrderablein interfaceType- Overrides:
isOrderablein 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. -
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
-
getObject
Description copied from interface:TypeGets the value at theblockpositionas an Object.- Specified by:
getObjectin interfaceType- Overrides:
getObjectin classAbstractType
-
writeObject
Description copied from interface:TypeWrites the Object value into theBlockBuilder.- Specified by:
writeObjectin interfaceType- Overrides:
writeObjectin classAbstractType
-
createBlockBuilder
public BlockBuilder createBlockBuilder(BlockBuilderStatus blockBuilderStatus, int expectedEntries, int expectedBytesPerEntry) Description copied from interface:TypeCreates the preferred block builder for this type. This is the builder used to store values after an expression projection within the query. -
createBlockBuilder
Description copied from interface:TypeCreates the preferred block builder for this type. This is the builder used to store values after an expression projection within the query. -
getTypeParameters
Description copied from interface:TypeFor parameterized types returns the list of parameters.- Specified by:
getTypeParametersin interfaceType- Overrides:
getTypeParametersin classAbstractType
-
getDisplayName
Description copied from interface:TypeReturns the name of this type that should be displayed to end-users.- Specified by:
getDisplayNamein interfaceType- Overrides:
getDisplayNamein classAbstractType
-