java.lang.Object
org.apache.drill.metastore.iceberg.components.tables.TableKey

public class TableKey extends Object
Is used to uniquely identify Drill table in Metastore Tables component based on storage plugin, workspace and table name.
  • Constructor Details

  • Method Details

    • of

      public static TableKey of(TableMetadataUnit unit)
    • storagePlugin

      public String storagePlugin()
    • workspace

      public String workspace()
    • tableName

      public String tableName()
    • toLocation

      public String toLocation(String base)
      Constructs table location based on given Iceberg table location. For example, metadata for the table dfs.tmp.nation will be stored in [METASTORE_TABLES_ROOT_DIRECTORY]/dfs/tmp/nation folder.
      Parameters:
      base - Iceberg table location
      Returns:
      table location
    • toFilterConditions

      public Map<MetastoreColumn,Object> toFilterConditions()
      Convert table key data into filter conditions.
      Returns:
      map of with condition references anf values
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object