Package io.prestosql.type
Class UnknownType
- java.lang.Object
-
- io.prestosql.spi.type.AbstractType
-
- io.prestosql.type.UnknownType
-
- All Implemented Interfaces:
FixedWidthType
,Type
public final class UnknownType extends AbstractType implements FixedWidthType
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.prestosql.spi.type.Type
Type.Range
-
-
Field Summary
Fields Modifier and Type Field Description static String
NAME
static UnknownType
UNKNOWN
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
appendTo(Block block, int position, BlockBuilder blockBuilder)
BlockBuilder
createBlockBuilder(BlockBuilderStatus blockBuilderStatus, int expectedEntries)
BlockBuilder
createBlockBuilder(BlockBuilderStatus blockBuilderStatus, int expectedEntries, int expectedBytesPerEntry)
BlockBuilder
createFixedSizeBlockBuilder(int positionCount)
boolean
getBoolean(Block block, int position)
int
getFixedSize()
Object
getObjectValue(ConnectorSession session, Block block, int position)
TypeOperatorDeclaration
getTypeOperatorDeclaration(TypeOperators typeOperators)
boolean
isComparable()
boolean
isOrderable()
void
writeBoolean(BlockBuilder blockBuilder, boolean value)
Deprecated.-
Methods inherited from class io.prestosql.spi.type.AbstractType
equals, getDisplayName, getDouble, getJavaType, getLong, getObject, getSlice, getTypeParameters, getTypeSignature, hashCode, toString, writeDouble, writeLong, writeObject, writeSlice, writeSlice
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.prestosql.spi.type.Type
getBaseName, getDisplayName, getDouble, getJavaType, getLong, getObject, getRange, getSlice, getTypeId, getTypeParameters, getTypeSignature, writeDouble, writeLong, writeObject, writeSlice, writeSlice
-
-
-
-
Field Detail
-
UNKNOWN
public static final UnknownType UNKNOWN
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getFixedSize
public int getFixedSize()
- Specified by:
getFixedSize
in interfaceFixedWidthType
-
createBlockBuilder
public BlockBuilder createBlockBuilder(BlockBuilderStatus blockBuilderStatus, int expectedEntries, int expectedBytesPerEntry)
- Specified by:
createBlockBuilder
in interfaceType
-
createBlockBuilder
public BlockBuilder createBlockBuilder(BlockBuilderStatus blockBuilderStatus, int expectedEntries)
- Specified by:
createBlockBuilder
in interfaceType
-
createFixedSizeBlockBuilder
public BlockBuilder createFixedSizeBlockBuilder(int positionCount)
- Specified by:
createFixedSizeBlockBuilder
in interfaceFixedWidthType
-
isComparable
public boolean isComparable()
- Specified by:
isComparable
in interfaceType
- Overrides:
isComparable
in classAbstractType
-
isOrderable
public boolean isOrderable()
- Specified by:
isOrderable
in interfaceType
- Overrides:
isOrderable
in classAbstractType
-
getTypeOperatorDeclaration
public TypeOperatorDeclaration getTypeOperatorDeclaration(TypeOperators typeOperators)
- Specified by:
getTypeOperatorDeclaration
in interfaceType
-
getObjectValue
public Object getObjectValue(ConnectorSession session, Block block, int position)
- Specified by:
getObjectValue
in interfaceType
-
appendTo
public void appendTo(Block block, int position, BlockBuilder blockBuilder)
-
getBoolean
public boolean getBoolean(Block block, int position)
- Specified by:
getBoolean
in interfaceType
- Overrides:
getBoolean
in classAbstractType
-
writeBoolean
@Deprecated public void writeBoolean(BlockBuilder blockBuilder, boolean value)
Deprecated.- Specified by:
writeBoolean
in interfaceType
- Overrides:
writeBoolean
in classAbstractType
-
-