Class IcebergMetadata
java.lang.Object
org.apache.drill.metastore.iceberg.operate.IcebergMetadata
- All Implemented Interfaces:
Metadata
Implementation of
Metadata
interface.
Provides information about current Metastore component version and its properties.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionDepending on Metastore component implementation, it may have properties.boolean
Indicates if Metastore component supports versioning, i.e.long
version()
Depending on Metastore component implementation, it may have version which can be used to determine if anything has changed during last call to the Metastore component.
-
Constructor Details
-
IcebergMetadata
public IcebergMetadata(org.apache.iceberg.Table table)
-
-
Method Details
-
supportsVersioning
public boolean supportsVersioning()Description copied from interface:Metadata
Indicates if Metastore component supports versioning, i.e. Metastore component version is changed each time write operation is executed.- Specified by:
supportsVersioning
in interfaceMetadata
- Returns:
- true if Metastore component supports versioning, false otherwise
-
version
public long version()Description copied from interface:Metadata
Depending on Metastore component implementation, it may have version which can be used to determine if anything has changed during last call to the Metastore component. If Metastore component implementation, supports versioning, version is changed each time Metastore component data has changed.Metadata.supportsVersioning()
indicates if Metastore component supports versioning. If versioning is not supported,Metadata.UNDEFINED
is returned. -
properties
Description copied from interface:Metadata
Depending on Metastore component implementation, it may have properties. If Metastore component supports properties, map with properties names and values are returned, otherwise empty map is returned.- Specified by:
properties
in interfaceMetadata
- Returns:
- Metastore component implementation properties
-