All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.scalar.db.sql.metadata.NamespaceMetadata Maven / Gradle / Ivy

There is a newer version: 3.14.0
Show newest version
package com.scalar.db.sql.metadata;

import com.scalar.db.sql.exception.SqlException;
import java.util.Map;
import java.util.Optional;

/** Metadata for a namespace. */
public interface NamespaceMetadata {

  /**
   * Returns the name of the namespace.
   *
   * @return the name of the namespace
   */
  String getName();

  /**
   * Returns a map of the table names and {@link TableMetadata} objects.
   *
   * @return a map of the table names and {@link TableMetadata} objects
   * @throws SqlException if an unexpected error happens
   */
  Map getTables();

  /**
   * Returns the {@link TableMetadata} objects for the specified namespace.
   *
   * @param tableName the name of the target table
   * @return the {@link TableMetadata} objects for the specified namespace
   * @throws SqlException if an unexpected error happens
   */
  Optional getTable(String tableName);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy