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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDepending on Metastore component implementation, it may have properties.booleanIndicates if Metastore component supports versioning, i.e.longversion()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:MetadataIndicates if Metastore component supports versioning, i.e. Metastore component version is changed each time write operation is executed.- Specified by:
supportsVersioningin interfaceMetadata- Returns:
- true if Metastore component supports versioning, false otherwise
-
version
public long version()Description copied from interface:MetadataDepending 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.UNDEFINEDis returned. -
properties
Description copied from interface:MetadataDepending 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:
propertiesin interfaceMetadata- Returns:
- Metastore component implementation properties
-