Class IcebergMetadata

java.lang.Object
org.apache.drill.metastore.iceberg.operate.IcebergMetadata
All Implemented Interfaces:
Metadata

public class IcebergMetadata extends Object implements Metadata
Implementation of Metadata interface. Provides information about current Metastore component version and its properties.
  • Field Summary

    Fields inherited from interface org.apache.drill.metastore.operate.Metadata

    UNDEFINED
  • Constructor Summary

    Constructors
    Constructor
    Description
    IcebergMetadata(org.apache.iceberg.Table table)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Depending on Metastore component implementation, it may have properties.
    boolean
    Indicates if Metastore component supports versioning, i.e.
    long
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 interface Metadata
      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.
      Specified by:
      version in interface Metadata
      Returns:
      current metastore version
    • properties

      public Map<String,String> 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 interface Metadata
      Returns:
      Metastore component implementation properties