|
| TemporaryTable (TableInfo tableInfo) |
|
| TemporaryTable (IContext context, TableInfo tableInfo) |
|
| TemporaryTable (string name, TableInfo sourceTableInfo) |
|
| TemporaryTable (IDatabaseContext context, string name, TableInfo sourceTableInfo) |
|
| TemporaryTable (IDatabaseContext context, string name, IEnumerable< ColumnInfo > columns) |
|
override void | Lock () |
|
override void | Release () |
|
int | NewRow () |
|
int | NewRow (DataObject[] row) |
|
override DataObject | GetValue (long rowNumber, int columnOffset) |
| Gets a single cell within the table that is located at the given column offset and row. More...
|
|
void | SetValue (long rowNumber, int columnOffset, DataObject value) |
|
void | SetValue (int columnOffset, DataObject value) |
|
void | BuildIndexes () |
|
void | BuildIndexes (string indexName) |
|
void | CopyFrom (ITable table, int row) |
|
override IEnumerator< Row > | GetEnumerator () |
|
void | AddToIndex (int rowNumber, int columnNumber) |
|
void | AddRowToIndex (int rowNumber) |
|
void | RemoveRowFromIndex (int rowNumber) |
|
bool | TypeEquals (IRootTable other) |
|
void | Dispose () |
|
ColumnIndex | GetIndex (int columnOffset) |
| Gets an index for given column that can be used to select values from this table. More...
|
|
Definition at line 24 of file TemporaryTable.cs.
Deveel.Data.Sql.Tables.TemporaryTable.TemporaryTable |
( |
TableInfo |
tableInfo | ) |
|
|
inline |
Deveel.Data.Sql.Tables.TemporaryTable.TemporaryTable |
( |
IContext |
context, |
|
|
TableInfo |
tableInfo |
|
) |
| |
|
inline |
Definition at line 33 of file TemporaryTable.cs.
36 rows =
new List<DataObject[]>();
readonly TableInfo tableInfo
TableInfo AsReadOnly()
Creates a new instance of TableInfo as an immutable copy of this table metadata.
readonly IContext context
Deveel.Data.Sql.Tables.TemporaryTable.TemporaryTable |
( |
string |
name, |
|
|
TableInfo |
sourceTableInfo |
|
) |
| |
|
inline |
Definition at line 43 of file TemporaryTable.cs.
44 :
this(
context, sourceTableInfo.Alias(
new ObjectName(name))) {
readonly IContext context
Definition at line 47 of file TemporaryTable.cs.
static TableInfo MakeTableInfo(string tableName, IEnumerable< ColumnInfo > columns)
readonly IContext context
void Deveel.Data.Sql.Tables.TemporaryTable.BuildIndexes |
( |
| ) |
|
|
inline |
void Deveel.Data.Sql.Tables.TemporaryTable.BuildIndexes |
( |
string |
indexName | ) |
|
|
inline |
Definition at line 121 of file TemporaryTable.cs.
124 for (
int i = 0; i <
rowCount; i++) {
void AddRowToIndex(int rowNumber)
void SetupIndexes(string indexTypeName)
void Deveel.Data.Sql.Tables.TemporaryTable.CopyFrom |
( |
ITable |
table, |
|
|
int |
row |
|
) |
| |
|
inline |
Definition at line 129 of file TemporaryTable.cs.
132 var columnNames =
new ObjectName[table.ColumnCount()];
133 for (
int i = 0; i < columnNames.Length; ++i) {
134 columnNames[i] = table.GetResolvedColumnName(i);
139 var colName = v.Name;
142 int columnOffset = -1;
143 for (
int n = 0; n < columnNames.Length || columnOffset == -1; ++n) {
144 if (columnNames[n].Name.Equals(colName)) {
149 var value = table.GetValue(row, columnOffset);
151 }
catch (Exception e) {
152 throw new InvalidOperationException(e.Message, e);
int IQueryTable. ColumnCount
override ObjectName GetResolvedColumnName(int column)
void SetValue(long rowNumber, int columnOffset, DataObject value)
override IEnumerator<Row> Deveel.Data.Sql.Tables.TemporaryTable.GetEnumerator |
( |
| ) |
|
|
inlinevirtual |
override DataObject Deveel.Data.Sql.Tables.TemporaryTable.GetValue |
( |
long |
rowNumber, |
|
|
int |
columnOffset |
|
) |
| |
|
inlinevirtual |
Gets a single cell within the table that is located at the given column offset and row.
- Parameters
-
rowNumber | The unique number of the row where the cell is located. |
columnOffset | The 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
-
ArgumentOutOfRangeException | If 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.Table.
Definition at line 93 of file TemporaryTable.cs.
94 if (rowNumber >=
rows.Count)
95 throw new ArgumentOutOfRangeException(
"rowNumber");
97 throw new ArgumentOutOfRangeException(
"columnOffset");
99 var row =
rows[(int) rowNumber];
100 return row[columnOffset];
int IQueryTable. ColumnCount
override void Deveel.Data.Sql.Tables.TemporaryTable.Lock |
( |
| ) |
|
|
inlinevirtual |
static TableInfo Deveel.Data.Sql.Tables.TemporaryTable.MakeTableInfo |
( |
string |
tableName, |
|
|
IEnumerable< ColumnInfo > |
columns |
|
) |
| |
|
inlinestaticprivate |
Definition at line 65 of file TemporaryTable.cs.
67 foreach (var columnInfo
in columns) {
void AddColumn(ColumnInfo column)
Adds a new column to the table at the last position of the columns list in the table metadata...
readonly TableInfo tableInfo
override TableInfo TableInfo
int Deveel.Data.Sql.Tables.TemporaryTable.NewRow |
( |
| ) |
|
|
inline |
int Deveel.Data.Sql.Tables.TemporaryTable.NewRow |
( |
DataObject[] |
row | ) |
|
|
inline |
Definition at line 79 of file TemporaryTable.cs.
81 throw new ArgumentNullException(
"row");
83 throw new ArgumentException();
86 for (
int i = 0; i < row.Length; i++) {
int IQueryTable. ColumnCount
void SetValue(long rowNumber, int columnOffset, DataObject value)
override void Deveel.Data.Sql.Tables.TemporaryTable.Release |
( |
| ) |
|
|
inlinevirtual |
void Deveel.Data.Sql.Tables.TemporaryTable.SetValue |
( |
long |
rowNumber, |
|
|
int |
columnOffset, |
|
|
DataObject |
value |
|
) |
| |
|
inline |
Definition at line 103 of file TemporaryTable.cs.
104 if (rowNumber < 0 || rowNumber >=
rows.Count)
105 throw new ArgumentOutOfRangeException(
"rowNumber");
106 if (columnOffset < 0 || columnOffset >=
ColumnCount)
107 throw new ArgumentOutOfRangeException(
"columnOffset");
109 var row =
rows[(int) rowNumber];
110 row[columnOffset] = value;
int IQueryTable. ColumnCount
void Deveel.Data.Sql.Tables.TemporaryTable.SetValue |
( |
int |
columnOffset, |
|
|
DataObject |
value |
|
) |
| |
|
inline |
Definition at line 113 of file TemporaryTable.cs.
void SetValue(long rowNumber, int columnOffset, DataObject value)
Definition at line 162 of file TemporaryTable.cs.
164 tableInfo.AddColumn(columnName, columnType);
165 tableInfo = tableInfo.AsReadOnly();
readonly TableInfo tableInfo
TemporaryTable(TableInfo tableInfo)
override TableInfo TableInfo
int Deveel.Data.Sql.Tables.TemporaryTable.rowCount |
|
private |
List<DataObject[]> Deveel.Data.Sql.Tables.TemporaryTable.rows |
|
private |
readonly TableInfo Deveel.Data.Sql.Tables.TemporaryTable.tableInfo |
|
private |
override int Deveel.Data.Sql.Tables.TemporaryTable.RowCount |
|
get |
override TableInfo Deveel.Data.Sql.Tables.TemporaryTable.TableInfo |
|
get |
The documentation for this class was generated from the following file:
- /var/calculate/remote/distfiles/egit-src/deveeldb.git/src/deveeldb/Deveel.Data.Sql.Tables/TemporaryTable.cs