Package io.trino.plugin.jdbc
Class JdbcColumnHandle
- java.lang.Object
-
- io.trino.plugin.jdbc.JdbcColumnHandle
-
- All Implemented Interfaces:
ColumnHandle
public final class JdbcColumnHandle extends Object implements ColumnHandle
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJdbcColumnHandle.Builder
-
Constructor Summary
Constructors Constructor Description JdbcColumnHandle(String columnName, JdbcTypeHandle jdbcTypeHandle, Type columnType)JdbcColumnHandle(String columnName, JdbcTypeHandle jdbcTypeHandle, Type columnType, boolean nullable)Deprecated.Usebuilder()instead.JdbcColumnHandle(String columnName, JdbcTypeHandle jdbcTypeHandle, Type columnType, boolean nullable, Optional<String> comment)Deprecated.This constructor is intended to be used by JSON deserialization only.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JdbcColumnHandle.Builderbuilder()static JdbcColumnHandle.BuilderbuilderFrom(JdbcColumnHandle handle)booleanequals(Object obj)ColumnMetadatagetColumnMetadata()StringgetColumnName()TypegetColumnType()Optional<String>getComment()JdbcTypeHandlegetJdbcTypeHandle()inthashCode()booleanisNullable()StringtoString()
-
-
-
Constructor Detail
-
JdbcColumnHandle
public JdbcColumnHandle(String columnName, JdbcTypeHandle jdbcTypeHandle, Type columnType)
-
JdbcColumnHandle
@Deprecated public JdbcColumnHandle(String columnName, JdbcTypeHandle jdbcTypeHandle, Type columnType, boolean nullable)
Deprecated.Usebuilder()instead.
-
JdbcColumnHandle
@Deprecated public JdbcColumnHandle(String columnName, JdbcTypeHandle jdbcTypeHandle, Type columnType, boolean nullable, Optional<String> comment)
Deprecated.This constructor is intended to be used by JSON deserialization only. Usebuilder()instead.
-
-
Method Detail
-
getColumnName
public String getColumnName()
-
getJdbcTypeHandle
public JdbcTypeHandle getJdbcTypeHandle()
-
getColumnType
public Type getColumnType()
-
isNullable
public boolean isNullable()
-
getColumnMetadata
public ColumnMetadata getColumnMetadata()
-
builder
public static JdbcColumnHandle.Builder builder()
-
builderFrom
public static JdbcColumnHandle.Builder builderFrom(JdbcColumnHandle handle)
-
-