Packages

object Catalog extends Serializable

The Catalog object keeps track of relations in the database. It maintains two Maps: one mapping name to relation schema and the other mapping name to relation object stored in memory.

Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Catalog
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. def add(name: String, colName: Seq[String], key: Int, domain: String = null, rel: Tabular = null): Unit

    Add meta-data about the new relation to the catalog.

    Add meta-data about the new relation to the catalog.

    name

    the name of the relation

    colName

    the names of columns

    key

    the column number for the primary key (< 0 => no primary key)

    domain

    an optional string indicating domains for columns (e.g., 'SD' = 'StrNum', 'Double')

    rel

    the relation

  2. def clear(): Unit

    Remove all relations from the catalog.

  3. def getRelation(name: String): Tabular

    Get the relation object for the relation named 'name'.

    Get the relation object for the relation named 'name'.

    name

    the name of the relation

  4. def getSchema(name: String): (Seq[String], Int, String)

    Get the schema/meta-data about the relation named 'name'.

    Get the schema/meta-data about the relation named 'name'.

    name

    the name of the relation

  5. def names: Iterable[String]

    Return an iterator over all relations names in the catalog.

  6. def remove(name: String): Unit

    Remove the relation named 'name' from the catalog.

    Remove the relation named 'name' from the catalog.

    name

    the name of the relation