GTable

scalation.database.table.GTable
See theGTable companion class
object GTable

The GTable companion object provides factory methods for creating graph-tables. Supported domains/data-types are 'D'ouble, 'I'nt, 'L'ong, 'S'tring, and 'T'imeNum.

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
GTable.type

Members list

Value members

Concrete methods

def apply(name: String, schema: String, domain: String, key: String): GTable

Create a graph-table given convenient string specifications.

Create a graph-table given convenient string specifications.

Value parameters

domain

the domains/data-types for attributes ('D', 'I', 'L', 'S', 'X', 'T')

key

the attributes forming the primary key

name

the name of the graph-table

schema

the attributes for the graph-table

Attributes

def load(fileName: String, name: String, domain: Domain, key: String, pos_: Array[Int], sep: String): GTable

Read the graph-table with the given name into memory loading its columns with data from the CSV file named fileName. The attribute names are read from the FIRST LINE.

Read the graph-table with the given name into memory loading its columns with data from the CSV file named fileName. The attribute names are read from the FIRST LINE.

Value parameters

domain

the domains/data-types for attributes ('D', 'I', 'L', 'S', 'X', 'T')

fileName

the file name (or file-path) of the data file

key

the attributes forming the primary key

name

the name of the graph-table

pos_

the sequence of column positions in the input file to be used (null => select all)

sep

the element separation string/regex (e.g., "," ";" " +")

Attributes

See also

scalation.readFileIntoArray

def setFullPath(fullPath: Boolean): Unit

Set the full-path flag to the value of parameter fullPath.

Set the full-path flag to the value of parameter fullPath.

Value parameters

fullPath

flag indicating whether full or relative paths should be used

Attributes

def setLimit(lim: Int): Unit

Set the limit on the number of lines to read to lim.

Set the limit on the number of lines to read to lim.

Value parameters

lim

the limit on the number of lines to read (<= 0 => unlimited)

Attributes