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.
- Alphabetic
- By Inheritance
- Catalog
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
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
-
def
clear(): Unit
Remove all relations from the catalog.
-
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
-
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
-
def
names: Iterable[String]
Return an iterator over all relations names in the catalog.
-
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