scalation.database.relation

Members list

Type members

Classlikes

object Ex_Days

Example database for days of the week.

Example database for days of the week.

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
Ex_Days.type

The Ex_ProductSales object provides and example relation for testing.

The Ex_ProductSales object provides and example relation for testing.

Attributes

See also
Supertypes
class Object
trait Matchable
class Any
Self type
object Ex_Teaching

The Ex_Teaching object contains table definitions for the TASchedule app.

The Ex_Teaching object contains table definitions for the TASchedule app.

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
object Relation

The Relation companion object provides additional functions for the Relation class. FIX - apply methods - make compatible with RelationSQL

The Relation companion object provides additional functions for the Relation class. FIX - apply methods - make compatible with RelationSQL

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
Relation.type
class Relation(name: String, schema: Schema, domain: Domain, key: Schema, var col: Vector[Vectr], var fKeys: ArrayBuffer[(String, String, Int)]) extends Tabular[Relation], Serializable

Value parameters

col

the Scala Vector of columns making up the columnar relation

domain

an optional string indicating domains for columns, e.g., Array ('S', 'D')

fKeys

an optional sequence of foreign keys - VEC (column name, ref table name, ref column position)

key

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

name

the name of the relation

schema

the names of columns

Attributes

Companion
object
Supertypes
trait Tabular[Relation]
trait Serializable
class Object
trait Matchable
class Any
object TableGen

The TableGen object generates data for Table classes (e.g., Relation).

The TableGen object generates data for Table classes (e.g., Relation).

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
TableGen.type
final class relationTest

Attributes

Supertypes
class Object
trait Matchable
class Any
final class relationTest11

Attributes

Supertypes
class Object
trait Matchable
class Any
final class relationTest2

Attributes

Supertypes
class Object
trait Matchable
class Any
final class relationTest5

Attributes

Supertypes
class Object
trait Matchable
class Any
final class relationTest7

Attributes

Supertypes
class Object
trait Matchable
class Any
final class relationTest8

Attributes

Supertypes
class Object
trait Matchable
class Any
final class relationTest9

Attributes

Supertypes
class Object
trait Matchable
class Any
final class showTables

Attributes

Supertypes
class Object
trait Matchable
class Any
final class tableGenTest

Attributes

Supertypes
class Object
trait Matchable
class Any

Types

Type definition for a union of column/vector types for Double, Int, Long, String, and TimeNum.

Type definition for a union of column/vector types for Double, Int, Long, String, and TimeNum.

Attributes

Value members

Concrete methods

def relationTest(): Unit

The relationTest main function tests the operations provided by Relation. on the Ex_Days schema.

The relationTest main function tests the operations provided by Relation. on the Ex_Days schema.

runMain scalation.database.relation.relationTest

Attributes

def relationTest11(): Unit

The relationTest11 main function tests the Relation on the traffic schema.

The relationTest11 main function tests the Relation on the traffic schema.

runMain scalation.database.relation.relationTest11

Attributes

def relationTest2(): Unit

The relationTest2 main function tests the operations provided by Relation. The relational algebra operators are given using Unicode.

The relationTest2 main function tests the operations provided by Relation. The relational algebra operators are given using Unicode.

Attributes

See also

en.wikipedia.org/wiki/List_of_Unicode_characters

runMain scalation.database.relation.relationTest2

def relationTest5(): Unit

The relationTest5 main function tests the interoperability between Relations and Matrices.

The relationTest5 main function tests the interoperability between Relations and Matrices.

runMain scalation.database.relation.relationTest5

Attributes

def relationTest7(): Unit

The relationTest7 main function tests join method.

The relationTest7 main function tests join method.

runMain scalation.database.relation.relationTest7

Attributes

def relationTest8(): Unit

The relationTest8 main function tests save method.

The relationTest8 main function tests save method.

runMain scalation.database.relation.relationTest8

Attributes

def relationTest9(): Unit

The relationTest9 main function tests apply method to load a saved relation.

The relationTest9 main function tests apply method to load a saved relation.

runMain scalation.database.relation.relationTest9

Attributes

def showTables(): Unit

The showTables main function prints all the tables defined in the Teachning object.

The showTables main function prints all the tables defined in the Teachning object.

runMain scalation/database.relation.showTables

Attributes

def tableGenTest(): Unit

The tableGenTest main function is used to test the TableGen object. Create unpopulated tables and use the table generator to populate their columns.

The tableGenTest main function is used to test the TableGen object. Create unpopulated tables and use the table generator to populate their columns.

runMain scalation.database.relation.tableGenTest

Attributes

def uniq_union(cn1: Schema, cn2: Schema): Schema

Combine two sequences of column names, keeping all names from cn1 and only those in cn2 that are not repeats (i.e., not already in cn1).

Combine two sequences of column names, keeping all names from cn1 and only those in cn2 that are not repeats (i.e., not already in cn1).

Value parameters

cn1

the first sequence of column names

cn2

the second sequence of column names

Attributes

Extensions

Extensions

extension (x: Vectr)
def at(pos: IndexedSeq[Int]): Vectr

Return the sub-vector of elements from the given index positions.

Return the sub-vector of elements from the given index positions.

Value parameters

pos

the given index positions

Attributes

def filterPos(p: ValueType => Boolean): IndexedSeq[Int]

Filter the vector according the predicate, return the index positions where it is true.

Filter the vector according the predicate, return the index positions where it is true.

Value parameters

p

the predicate function

Attributes

Covert Vectr to a vector of double-precision reals VectorD.

Covert Vectr to a vector of double-precision reals VectorD.

Attributes

def toInt: VectorI

Covert Vectr to a vector of integers VectorI.

Covert Vectr to a vector of integers VectorI.

Attributes

Covert Vectr to a vector of long inetgers VectorL.

Covert Vectr to a vector of long inetgers VectorL.

Attributes

Covert Vectr to a vector of strings VectorS.

Covert Vectr to a vector of strings VectorS.

Attributes

Covert Vectr to a vector of strings VectorT.

Covert Vectr to a vector of strings VectorT.

Attributes