1010data .NET SDK
TenTenSDK.Table Class Reference

A representation of data–either a query result or an actual table. More...

Inherits IDisposable.

Public Member Functions

 Table (Table t)
 Copy constructor. More...
 
void Dispose ()
 Do nothing; disposing of the Cache here is too soon.
 
Table Subset (Column.Computation< bool > predicate)
 Creates a new table with a subset of Columns (Policies references will match). More...
 
delegate bool ColumnPredicate (Column c)
 Delegate for basic predicate on columns.
 
Table Subset (ColumnPredicate predicate)
 Creates a new table with a subset of Columns (Policies references will match). More...
 
DataTable CrossSection (long offset, long rows)
 Grabs a cross section of the table. More...
 

Static Public Member Functions

static operator DataTable (Table t)
 Grabs the entire Table into a DataTable. More...
 

Public Attributes

readonly Query Source
 Query that this Table is the result of.
 
readonly Session HostSession
 Session this Table was generated by.
 

Properties

ColumnSet Columns [get]
 Columns of the table.
 
RowSet Rows [get]
 Rows of the table.
 

Detailed Description

A representation of data–either a query result or an actual table.

Constructor & Destructor Documentation

TenTenSDK.Table.Table ( Table  t)

Copy constructor.

Parameters
tTable to copy.

Member Function Documentation

DataTable TenTenSDK.Table.CrossSection ( long  offset,
long  rows 
)

Grabs a cross section of the table.

Parameters
offsetRow offset of data to get.
rowsHow many rows to get.
Returns
A DataTable with the given rows.

References TenTenSDK.Column.Information.ComponentType, TenTenSDK.Column.Info, and TenTenSDK.Column.Name.

static TenTenSDK.Table.operator DataTable ( Table  t)
explicitstatic

Grabs the entire Table into a DataTable.

Returns
A DataTable with all the rows of this table within it.

References TenTenSDK.RowSet.Count, TenTenSDK.Table.CrossSection(), and TenTenSDK.Table.Rows.

Table TenTenSDK.Table.Subset ( Column.Computation< bool >  predicate)

Creates a new table with a subset of Columns (Policies references will match).

Parameters
predicateComputation used to determine which columns to keep (true=keep).
Returns
A new table with the given columns.

References TenTenSDK.Column.Accept(), TenTenSDK.Column.Information.Index, and TenTenSDK.Column.Info.

Table TenTenSDK.Table.Subset ( ColumnPredicate  predicate)

Creates a new table with a subset of Columns (Policies references will match).

Parameters
predicateComputation used to determine which columns to keep (true=keep).
Returns
A new table with the given columns.

References TenTenSDK.Column.Information.Index, and TenTenSDK.Column.Info.