Package io.trino.plugin.mongodb
Class ObjectIdType
java.lang.Object
io.trino.spi.type.AbstractType
io.trino.spi.type.AbstractVariableWidthType
io.trino.plugin.mongodb.ObjectIdType
- 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
DEFAULT_COMPARABLE_OPERATORS, DEFAULT_ORDERING_OPERATORS, DEFAULT_READ_OPERATORS, EXPECTED_BYTES_PER_ENTRY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendTo(Block block, int position, BlockBuilder blockBuilder) getObjectValue(ConnectorSession session, Block block, int position) io.airlift.slice.SlicegetTypeOperatorDeclaration(TypeOperators typeOperators) booleanbooleanvoidwriteSlice(BlockBuilder blockBuilder, io.airlift.slice.Slice value) voidwriteSlice(BlockBuilder blockBuilder, io.airlift.slice.Slice value, int offset, int length) Methods inherited from class io.trino.spi.type.AbstractVariableWidthType
createBlockBuilder, createBlockBuilder, getFlatFixedSize, getFlatVariableWidthSize, isFlatVariableWidth, relocateFlatVariableWidthOffsetsMethods inherited from class io.trino.spi.type.AbstractType
equals, getBoolean, getDisplayName, getDouble, getJavaType, getLong, getObject, getTypeParameters, getTypeSignature, hashCode, 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, writeBoolean, writeDouble, writeLong, writeObject
-
Field Details
-
OBJECT_ID
-
-
Constructor Details
-
ObjectIdType
public ObjectIdType()
-
-
Method Details
-
isComparable
public boolean isComparable()- Specified by:
isComparablein interfaceType- Overrides:
isComparablein classAbstractType
-
isOrderable
public boolean isOrderable()- Specified by:
isOrderablein interfaceType- Overrides:
isOrderablein classAbstractType
-
getTypeOperatorDeclaration
- Specified by:
getTypeOperatorDeclarationin interfaceType- Overrides:
getTypeOperatorDeclarationin classAbstractVariableWidthType
-
getObjectValue
-
appendTo
-
getSlice
- Specified by:
getSlicein interfaceType- Overrides:
getSlicein classAbstractType
-
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
-