Table
Namespace: Angara.Data
Represents a table wich is an immutable list of named columns. The type is thread safe.
Instance members
Static members
Static member | Description |
Add(column table)
Signature: column:Column -> table:Table -> Table
|
Creates a new table that has all columns of the original table appended with the given column. Duplicate names are allowed. |
Append(table1 table2)
Signature: table1:Table -> table2:Table -> Table
|
Builds a new table that contains the columns of both given tables in order. Duplicate column names are allowed. |
AppendMatrix(table1 table2)
Signature: table1:MatrixTable<'v> -> table2:MatrixTable<'v> -> MatrixTable<'v>
Type parameters: 'v |
Builds a new matrix table by concatenting columns of two given matrix tables. Duplicate column names are allowed. |
AppendTransform(...)
Signature: columnNames:seq<string> -> (transform:(ImmutableArray<'a> -> 'b)) -> table:Table -> Table
Type parameters: 'a, 'b |
Builds a new table that contains columns of the given table appended with columns of a table produced by the
given function applied to the values of the given table columns.
The generic transform function is only partially defined but its ultimate result must be of type |
DefaultColumnName(columnIndex)
Signature: columnIndex:int -> string
|
Returns a default column from a column index. The produced names are similar to Excel column names; e.g. "A", "B", ..., "Z", "AA", "AB", ... |
Empty
Signature: Table
|
Creates a new, empty table CompiledName: |
Filter(columnNames predicate table)
Signature: columnNames:seq<string> -> (predicate:('a -> 'b)) -> table:Table -> Table
Type parameters: 'a, 'b |
The function |
Filteri(columnNames predicate table)
Signature: columnNames:seq<string> -> (predicate:(int -> 'a)) -> table:Table -> Table
Type parameters: 'a |
The function |
Load(reader, settings)
Signature: (reader:TextReader * settings:ReadSettings) -> Table
|
Loads a table from a delimited text stream using given reader. |
Load(reader)
Signature: reader:TextReader -> Table
|
Loads a table from a delimited text stream using given reader. |
Load(path, settings)
Signature: (path:string * settings:ReadSettings) -> Table
|
Loads a table from a delimited text file. |
Load(path)
Signature: path:string -> Table
|
Loads a table from a delimited text file. |
Map(columnNames map table)
Signature: columnNames:seq<string> -> (map:('a -> 'b)) -> table:Table -> seq<'c>
Type parameters: 'a, 'b, 'c |
Builds a new sequence whose elements are the results of applying the given function 'map'
to each of the rows of the given table columns. The generic |
Mapi(columnNames map table)
Signature: columnNames:seq<string> -> (map:(int -> 'a)) -> table:Table -> seq<'c>
Type parameters: 'a, 'c |
Builds a new sequence whose elements are the results of applying the given function 'map'
to each of the rows of the given table columns.
The integer index passed to the function indicates the index of row being transformed.
The generic |
MapiToColumn(...)
Signature: newColumnName:string -> columnNames:seq<string> -> (map:(int -> 'a)) -> table:Table -> Table
Type parameters: 'a |
Builds a new table that contains all columns of the given table and a new column or a replacement of an original table column;
elements of the column are the results of applying the given function to each of the rows of the given table columns.
The integer index passed to the function indicates the index of row being transformed.
The generic |
MapToColumn(...)
Signature: newColumnName:string -> columnNames:seq<string> -> (map:('a -> 'b)) -> table:Table -> Table
Type parameters: 'a, 'b |
Builds a new table that contains all columns of the given table and a new column or a replacement of an original table column;
elements of the column are the results of applying the given function to each of the rows of the given table columns.
The generic |
OfColumns(columns)
Signature: columns:seq<Column> -> Table
|
Builds a table from a finite sequence of columns. All given columns must be of same height. Duplicate column names are allowed. Order of columns in the table is same as in the input sequence. |
OfMatrix(matrixRows, columnNames)
Signature: (matrixRows:seq<ImmutableArray<'v>> * columnNames:seq<string> option) -> MatrixTable<'v>
Type parameters: 'v |
|
OfMatrix(matrixRows, columnNames)
Signature: (matrixRows:seq<'v []> * columnNames:seq<string> option) -> MatrixTable<'v>
Type parameters: 'v |
|
OfMatrix(matrixRows, columnNames)
Signature: (matrixRows:seq<seq<'v>> * columnNames:seq<string> option) -> MatrixTable<'v>
Type parameters: 'v |
Builds a matrix table such that all columns have same type. Matrix table
exposes its content as a two-dimensional array as well as a collection of columns.
If column names are missed, the default names are given; see |
OfRows(arg1)
Signature: ImmutableArray<'r> -> Table<'r>
Type parameters: 'r |
Builds a table such that each public property of a given type |
OfRows(arg1)
Signature: seq<'r> -> Table<'r>
Type parameters: 'r |
Builds a table such that each public property of a given type |
Remove(columnNames table)
Signature: columnNames:seq<string> -> table:Table -> Table
|
Creates a new table that has all columns of the original table excluding the columns having name contained in the given column names. |
Save(table, writer, settings)
Signature: (table:Table * writer:TextWriter * settings:WriteSettings) -> unit
|
Saves the table to a delimited text stream using given writer. |
Save(table, writer)
Signature: (table:Table * writer:TextWriter) -> unit
|
Saves the table to a delimited text stream using given writer. |
Save(table, path, settings)
Signature: (table:Table * path:string * settings:WriteSettings) -> unit
|
Saves the table to a delimited text file, overwriting an existing file, if it exists. |
Save(table, path)
Signature: (table:Table * path:string) -> unit
|
Saves the table to a delimited text file, overwriting an existing file, if it exists. |
Transform(columnNames transform table)
Signature: columnNames:seq<string> -> (transform:(ImmutableArray<'a> -> 'b)) -> table:Table -> 'c
Type parameters: 'a, 'b, 'c |
Applies the given function to the values of the given table columns and returns the function result. Each column is represented as an immutable array. The generic transform function is only partially defined. |