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
public class ObjectIdType extends AbstractVariableWidthType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classObjectIdType.ObjectIdSerializer-
Nested classes/interfaces inherited from interface io.trino.spi.type.Type
Type.Range
-
-
Field Summary
Fields Modifier and Type Field Description static ObjectIdTypeOBJECT_ID-
Fields inherited from class io.trino.spi.type.AbstractVariableWidthType
EXPECTED_BYTES_PER_ENTRY
-
-
Constructor Summary
Constructors Constructor Description ObjectIdType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappendTo(Block block, int position, BlockBuilder blockBuilder)ObjectgetObjectValue(ConnectorSession session, Block block, int position)io.airlift.slice.SlicegetSlice(Block block, int position)TypeOperatorDeclarationgetTypeOperatorDeclaration(TypeOperators typeOperators)booleanisComparable()booleanisOrderable()voidwriteSlice(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
-
Methods inherited from class io.trino.spi.type.AbstractType
equals, getBoolean, getDisplayName, getDouble, getJavaType, getLong, getObject, getTypeParameters, getTypeSignature, hashCode, toString, writeBoolean, writeDouble, writeLong, writeObject
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.trino.spi.type.Type
getBaseName, getBoolean, getDisplayName, getDouble, getJavaType, getLong, getObject, getRange, getTypeId, getTypeParameters, getTypeSignature, writeBoolean, writeDouble, writeLong, writeObject
-
-
-
-
Field Detail
-
OBJECT_ID
public static final ObjectIdType OBJECT_ID
-
-
Method Detail
-
isComparable
public boolean isComparable()
- Specified by:
isComparablein interfaceType- Overrides:
isComparablein classAbstractType
-
isOrderable
public boolean isOrderable()
- Specified by:
isOrderablein interfaceType- Overrides:
isOrderablein classAbstractType
-
getTypeOperatorDeclaration
public TypeOperatorDeclaration getTypeOperatorDeclaration(TypeOperators typeOperators)
-
getObjectValue
public Object getObjectValue(ConnectorSession session, Block block, int position)
-
appendTo
public void appendTo(Block block, int position, BlockBuilder blockBuilder)
-
getSlice
public io.airlift.slice.Slice getSlice(Block block, int position)
- Specified by:
getSlicein interfaceType- Overrides:
getSlicein classAbstractType
-
writeSlice
public void writeSlice(BlockBuilder blockBuilder, io.airlift.slice.Slice value)
- 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
-
-