DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Classes | Public Member Functions | Properties | Private Member Functions | Private Attributes | List of all members
Deveel.Data.Sql.Tables.TableSource.MinimalTable Class Reference
Inheritance diagram for Deveel.Data.Sql.Tables.TableSource.MinimalTable:
Deveel.Data.Sql.Tables.ITable Deveel.Data.Sql.IDbObject

Classes

class  RowEnumerator
 

Public Member Functions

 MinimalTable (TableSource source, IIndex masterIndex)
 
IEnumerator< RowGetEnumerator ()
 
void Dispose ()
 
DataObject GetValue (long rowNumber, int columnOffset)
 Gets a single cell within the table that is located at the given column offset and row. More...
 
ColumnIndex GetIndex (int columnOffset)
 Gets an index for given column that can be used to select values from this table. More...
 

Properties

ObjectName IDbObject. FullName [get]
 
DbObjectType IDbObject. ObjectType [get]
 
IContext Context [get]
 
TableInfo TableInfo [get]
 
int RowCount [get]
 
- Properties inherited from Deveel.Data.Sql.Tables.ITable
IContext Context [get]
 
TableInfo TableInfo [get]
 Gets the metadata information of the table, used to resolve the column sources. More...
 
int RowCount [get]
 Gets the total number of rows in the table. More...
 
- Properties inherited from Deveel.Data.Sql.IDbObject
ObjectName FullName [get]
 Gets the fully qualified name of the object used to resolve it uniquely within the database. More...
 
DbObjectType ObjectType [get]
 Gets the type of database object that the implementation is for More...
 

Private Member Functions

IEnumerator IEnumerable. GetEnumerator ()
 

Private Attributes

readonly TableSource source
 
readonly IIndex masterIndex
 

Detailed Description

Definition at line 1411 of file TableSource.cs.

Constructor & Destructor Documentation

Deveel.Data.Sql.Tables.TableSource.MinimalTable.MinimalTable ( TableSource  source,
IIndex  masterIndex 
)
inline

Definition at line 1415 of file TableSource.cs.

1415  {
1416  this.source = source;
1417  this.masterIndex = masterIndex;
1418  }

Member Function Documentation

void Deveel.Data.Sql.Tables.TableSource.MinimalTable.Dispose ( )
inline

Definition at line 1471 of file TableSource.cs.

1471  {
1472 
1473  }
IEnumerator<Row> Deveel.Data.Sql.Tables.TableSource.MinimalTable.GetEnumerator ( )
inline

Definition at line 1428 of file TableSource.cs.

1428  {
1429  // NOTE: Returns iterator across master index before journal entry
1430  // changes.
1431  var iterator = masterIndex.GetEnumerator();
1432  // Wrap it around a IRowEnumerator object.
1433  return new RowEnumerator(this, iterator);
1434  }
IEnumerator IEnumerable. Deveel.Data.Sql.Tables.TableSource.MinimalTable.GetEnumerator ( )
inlineprivate

Definition at line 1467 of file TableSource.cs.

1467  {
1468  return GetEnumerator();
1469  }
ColumnIndex Deveel.Data.Sql.Tables.TableSource.MinimalTable.GetIndex ( int  columnOffset)
inline

Gets an index for given column that can be used to select values from this table.

Parameters
columnOffsetThe zero-based offset of the column which to get the index.
Returns
Returns an instance of ColumnIndex that is used to select a subset of rows from the table.

Implements Deveel.Data.Sql.Tables.ITable.

Definition at line 1495 of file TableSource.cs.

1495  {
1496  throw new NotImplementedException();
1497  }
DataObject Deveel.Data.Sql.Tables.TableSource.MinimalTable.GetValue ( long  rowNumber,
int  columnOffset 
)
inline

Gets a single cell within the table that is located at the given column offset and row.

Parameters
rowNumberThe unique number of the row where the cell is located.
columnOffsetThe zero-based offset of the column of the cell to return.
Returns
Returns an instance of DataObject that is contained in the cell located by the row and column coordinates provided.
Exceptions
ArgumentOutOfRangeExceptionIf the given columnOffset is less than zero or greater or equal than the number of columns defined in the table metadata.
See also
Tables.TableInfo.IndexOfColumn(string)

Implements Deveel.Data.Sql.Tables.ITable.

Definition at line 1491 of file TableSource.cs.

1491  {
1492  return source.GetValue((int)rowNumber, columnOffset);
1493  }
DataObject GetValue(int rowIndex, int columnOffset)

Member Data Documentation

readonly IIndex Deveel.Data.Sql.Tables.TableSource.MinimalTable.masterIndex
private

Definition at line 1413 of file TableSource.cs.

readonly TableSource Deveel.Data.Sql.Tables.TableSource.MinimalTable.source
private

Definition at line 1412 of file TableSource.cs.

Property Documentation

IContext Deveel.Data.Sql.Tables.TableSource.MinimalTable.Context
get

Definition at line 1475 of file TableSource.cs.

ObjectName IDbObject. Deveel.Data.Sql.Tables.TableSource.MinimalTable.FullName
getprivate

Definition at line 1420 of file TableSource.cs.

DbObjectType IDbObject. Deveel.Data.Sql.Tables.TableSource.MinimalTable.ObjectType
getprivate

Definition at line 1424 of file TableSource.cs.

int Deveel.Data.Sql.Tables.TableSource.MinimalTable.RowCount
get

Definition at line 1483 of file TableSource.cs.

TableInfo Deveel.Data.Sql.Tables.TableSource.MinimalTable.TableInfo
get

Definition at line 1479 of file TableSource.cs.


The documentation for this class was generated from the following file: