Class NullMetadataCatalog

java.lang.Object
org.apache.druid.catalog.NullMetadataCatalog
All Implemented Interfaces:
MetadataCatalog

public class NullMetadataCatalog extends Object implements MetadataCatalog
  • Field Details

  • Constructor Details

    • NullMetadataCatalog

      public NullMetadataCatalog()
  • Method Details

    • getTable

      @Nullable public TableMetadata getTable(TableId tableId)
      Description copied from interface: MetadataCatalog
      Resolves a table given a TableId with the schema and table name. Does not do security checks: the caller is responsible.
      Specified by:
      getTable in interface MetadataCatalog
      Returns:
      the table metadata, if any exists, else null if no metadata is available. Note that a datasource can exist without metadata. Views and input sources exist only if their metadata exists. System tables never have metadata.
    • resolveTable

      @Nullable public ResolvedTable resolveTable(TableId tableId)
      Specified by:
      resolveTable in interface MetadataCatalog
    • tables

      public List<TableMetadata> tables(String schemaName)
      Description copied from interface: MetadataCatalog
      List of tables defined within the given schema. Does not filter the tables by permissions: the caller is responsible for that.
      Specified by:
      tables in interface MetadataCatalog
      Returns:
    • tableNames

      public Set<String> tableNames(String schemaName)
      Specified by:
      tableNames in interface MetadataCatalog