Class HiveColumnHandle
java.lang.Object
io.trino.plugin.hive.HiveColumnHandle
- All Implemented Interfaces:
ColumnHandle
ColumnHandle for Hive Connector representing a full top level column or a projected column. Currently projected columns
that represent a simple chain of dereferences are supported. e.g. for a column "A" with type struct(B struct(C bigint, ...), ....)
there can be a projected column representing expression "A.B.C".
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final Stringstatic final HiveTypestatic final Typestatic final intstatic final Stringstatic final HiveTypestatic final Typestatic final intstatic final Stringstatic final HiveTypestatic final Typestatic final intstatic final Stringstatic final HiveTypestatic final Typestatic final intstatic final Stringstatic final HiveTypestatic final Typestatic final intstatic final String -
Constructor Summary
ConstructorsConstructorDescriptionHiveColumnHandle(String baseColumnName, int baseHiveColumnIndex, HiveType baseHiveType, Type baseType, Optional<HiveColumnProjectionInfo> hiveColumnProjectionInfo, HiveColumnHandle.ColumnType columnType, Optional<String> comment) -
Method Summary
Modifier and TypeMethodDescriptionstatic HiveColumnHandleThe column indicating the bucket id.static HiveColumnHandlecreateBaseColumn(String topLevelColumnName, int topLevelColumnIndex, HiveType hiveType, Type type, HiveColumnHandle.ColumnType columnType, Optional<String> comment) booleanstatic HiveColumnHandlestatic HiveColumnHandleintgetName()longgetType()inthashCode()booleanstatic booleanisBucketColumnHandle(HiveColumnHandle column) static booleanstatic booleanbooleanisHidden()static booleanbooleanstatic booleanisPathColumnHandle(HiveColumnHandle column) static booleanisRowIdColumnHandle(HiveColumnHandle column) static HiveColumnHandlestatic HiveColumnHandlestatic HiveColumnHandletoString()
-
Field Details
-
PATH_COLUMN_INDEX
public static final int PATH_COLUMN_INDEX- See Also:
-
PATH_COLUMN_NAME
- See Also:
-
PATH_HIVE_TYPE
-
PATH_TYPE
-
BUCKET_COLUMN_INDEX
public static final int BUCKET_COLUMN_INDEX- See Also:
-
BUCKET_COLUMN_NAME
- See Also:
-
BUCKET_HIVE_TYPE
-
BUCKET_TYPE_SIGNATURE
-
FILE_SIZE_COLUMN_INDEX
public static final int FILE_SIZE_COLUMN_INDEX- See Also:
-
FILE_SIZE_COLUMN_NAME
- See Also:
-
FILE_SIZE_TYPE
-
FILE_SIZE_TYPE_SIGNATURE
-
FILE_MODIFIED_TIME_COLUMN_INDEX
public static final int FILE_MODIFIED_TIME_COLUMN_INDEX- See Also:
-
FILE_MODIFIED_TIME_COLUMN_NAME
- See Also:
-
FILE_MODIFIED_TIME_TYPE
-
FILE_MODIFIED_TIME_TYPE_SIGNATURE
-
PARTITION_COLUMN_INDEX
public static final int PARTITION_COLUMN_INDEX- See Also:
-
PARTITION_COLUMN_NAME
- See Also:
-
PARTITION_HIVE_TYPE
-
PARTITION_TYPE_SIGNATURE
-
UPDATE_ROW_ID_COLUMN_INDEX
public static final int UPDATE_ROW_ID_COLUMN_INDEX- See Also:
-
UPDATE_ROW_ID_COLUMN_NAME
- See Also:
-
-
Constructor Details
-
HiveColumnHandle
public HiveColumnHandle(String baseColumnName, int baseHiveColumnIndex, HiveType baseHiveType, Type baseType, Optional<HiveColumnProjectionInfo> hiveColumnProjectionInfo, HiveColumnHandle.ColumnType columnType, Optional<String> comment)
-
-
Method Details
-
createBaseColumn
public static HiveColumnHandle createBaseColumn(String topLevelColumnName, int topLevelColumnIndex, HiveType hiveType, Type type, HiveColumnHandle.ColumnType columnType, Optional<String> comment) -
getBaseColumn
-
getName
-
getBaseColumnName
-
getBaseHiveType
-
getBaseType
-
getBaseHiveColumnIndex
public int getBaseHiveColumnIndex() -
getHiveColumnProjectionInfo
-
getHiveType
-
getType
-
isPartitionKey
public boolean isPartitionKey() -
isHidden
public boolean isHidden() -
getColumnMetadata
-
getComment
-
getColumnType
-
isBaseColumn
public boolean isBaseColumn() -
hashCode
public int hashCode()- Specified by:
hashCodein interfaceColumnHandle- Overrides:
hashCodein classObject
-
equals
- Specified by:
equalsin interfaceColumnHandle- Overrides:
equalsin classObject
-
toString
-
toMetastoreColumn
-
mergeRowIdColumnHandle
-
pathColumnHandle
-
bucketColumnHandle
The column indicating the bucket id. When table bucketing differs from partition bucketing, this column indicates what bucket the row will fall in under the table bucketing scheme. -
fileSizeColumnHandle
-
fileModifiedTimeColumnHandle
-
partitionColumnHandle
-
isPathColumnHandle
-
isBucketColumnHandle
-
isFileSizeColumnHandle
-
isFileModifiedTimeColumnHandle
-
isPartitionColumnHandle
-
isRowIdColumnHandle
-
getRetainedSizeInBytes
public long getRetainedSizeInBytes()
-