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
Members list
Value members
Concrete methods
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
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
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
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)