Package io.trino.plugin.iceberg
Class IcebergTableHandle
java.lang.Object
io.trino.plugin.iceberg.IcebergTableHandle
- All Implemented Interfaces:
ConnectorTableHandle
-
Constructor Summary
ConstructorsConstructorDescriptionIcebergTableHandle(CatalogHandle catalog, String schemaName, String tableName, TableType tableType, Optional<Long> snapshotId, String tableSchemaJson, Optional<String> partitionSpecJson, int formatVersion, TupleDomain<IcebergColumnHandle> unenforcedPredicate, TupleDomain<IcebergColumnHandle> enforcedPredicate, OptionalLong limit, Set<IcebergColumnHandle> projectedColumns, Optional<String> nameMappingJson, String tableLocation, Map<String, String> storageProperties, boolean recordScannedFiles, Optional<io.airlift.units.DataSize> maxScannedFileSize) -
Method Summary
Modifier and TypeMethodDescriptionbooleanforOptimize(boolean recordScannedFiles, io.airlift.units.DataSize maxScannedFileSize) static IcebergTableHandlefromJsonForDeserializationOnly(CatalogHandle catalog, String schemaName, String tableName, TableType tableType, Optional<Long> snapshotId, String tableSchemaJson, Optional<String> partitionSpecJson, int formatVersion, TupleDomain<IcebergColumnHandle> unenforcedPredicate, TupleDomain<IcebergColumnHandle> enforcedPredicate, OptionalLong limit, Set<IcebergColumnHandle> projectedColumns, Optional<String> nameMappingJson, String tableLocation, Map<String, String> storageProperties) intgetLimit()Optional<io.airlift.units.DataSize>inthashCode()booleantoString()withProjectedColumns(Set<IcebergColumnHandle> projectedColumns)
-
Constructor Details
-
IcebergTableHandle
public IcebergTableHandle(CatalogHandle catalog, String schemaName, String tableName, TableType tableType, Optional<Long> snapshotId, String tableSchemaJson, Optional<String> partitionSpecJson, int formatVersion, TupleDomain<IcebergColumnHandle> unenforcedPredicate, TupleDomain<IcebergColumnHandle> enforcedPredicate, OptionalLong limit, Set<IcebergColumnHandle> projectedColumns, Optional<String> nameMappingJson, String tableLocation, Map<String, String> storageProperties, boolean recordScannedFiles, Optional<io.airlift.units.DataSize> maxScannedFileSize)
-
-
Method Details
-
fromJsonForDeserializationOnly
public static IcebergTableHandle fromJsonForDeserializationOnly(CatalogHandle catalog, String schemaName, String tableName, TableType tableType, Optional<Long> snapshotId, String tableSchemaJson, Optional<String> partitionSpecJson, int formatVersion, TupleDomain<IcebergColumnHandle> unenforcedPredicate, TupleDomain<IcebergColumnHandle> enforcedPredicate, OptionalLong limit, Set<IcebergColumnHandle> projectedColumns, Optional<String> nameMappingJson, String tableLocation, Map<String, String> storageProperties) -
getCatalog
-
getSchemaName
-
getTableName
-
getTableType
-
getSnapshotId
-
getTableSchemaJson
-
getPartitionSpecJson
-
getFormatVersion
public int getFormatVersion() -
getUnenforcedPredicate
-
getEnforcedPredicate
-
getLimit
-
getProjectedColumns
-
getNameMappingJson
-
getTableLocation
-
getStorageProperties
-
isRecordScannedFiles
public boolean isRecordScannedFiles() -
getMaxScannedFileSize
-
getSchemaTableName
-
getSchemaTableNameWithType
-
withProjectedColumns
-
forOptimize
public IcebergTableHandle forOptimize(boolean recordScannedFiles, io.airlift.units.DataSize maxScannedFileSize) -
equals
-
hashCode
public int hashCode() -
toString
-