Package io.trino.type
Class JsonType
java.lang.Object
io.trino.spi.type.AbstractType
io.trino.spi.type.AbstractVariableWidthType
io.trino.type.JsonType
- All Implemented Interfaces:
Type,VariableWidthType
The stack representation for JSON objects must have the keys in natural sorted order.
-
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
DEFAULT_COMPARABLE_OPERATORS, DEFAULT_ORDERING_OPERATORS, DEFAULT_READ_OPERATORS, EXPECTED_BYTES_PER_ENTRY -
Method Summary
Modifier and TypeMethodDescriptiongetObjectValue(ConnectorSession session, Block block, int position) io.airlift.slice.SlicegetTypeOperatorDeclaration(TypeOperators typeOperators) booleanvoidwriteSlice(BlockBuilder blockBuilder, io.airlift.slice.Slice value) voidwriteSlice(BlockBuilder blockBuilder, io.airlift.slice.Slice value, int offset, int length) voidwriteString(BlockBuilder blockBuilder, String value) Methods inherited from class io.trino.spi.type.AbstractVariableWidthType
appendTo, createBlockBuilder, createBlockBuilder, getFlatFixedSize, getFlatVariableWidthSize, isFlatVariableWidth, relocateFlatVariableWidthOffsetsMethods inherited from class io.trino.spi.type.AbstractType
equals, getBoolean, getDisplayName, getDouble, getJavaType, getLong, getObject, getTypeParameters, getTypeSignature, getValueBlockType, hashCode, 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, getTypeParameters, getTypeSignature, getValueBlockType, isOrderable, writeBoolean, writeDouble, writeLong, writeObject
-
Field Details
-
JSON
-
-
Method Details
-
isComparable
public boolean isComparable()- Specified by:
isComparablein interfaceType- Overrides:
isComparablein classAbstractType
-
getTypeOperatorDeclaration
- Specified by:
getTypeOperatorDeclarationin interfaceType- Overrides:
getTypeOperatorDeclarationin classAbstractVariableWidthType
-
getObjectValue
-
getSlice
- Specified by:
getSlicein interfaceType- Overrides:
getSlicein classAbstractType
-
writeString
-
writeSlice
- Specified by:
writeSlicein interfaceType- Overrides:
writeSlicein classAbstractType
-
writeSlice
public void writeSlice(BlockBuilder blockBuilder, io.airlift.slice.Slice value, int offset, int length) - Specified by:
writeSlicein interfaceType- Overrides:
writeSlicein classAbstractType
-