Definition at line 25 of file QueryResult.cs.
Deveel.Data.Protocol.QueryResult.QueryResult |
( |
SqlQuery |
query, |
|
|
ITable |
result |
|
) |
| |
|
inlinepackage |
Definition at line 33 of file QueryResult.cs.
int locked
Incremented when we Lock roots.
Table result
The table that is the result.
void FormColumns(ITable result)
SqlQuery query
The SqlQuery that was executed to produce this result.
Deveel.Data.Protocol.QueryResult.QueryResult |
( |
SqlQuery |
query, |
|
|
Table |
result |
|
) |
| |
|
inline |
Constructs the result set.
- Parameters
-
Definition at line 72 of file QueryResult.old.cs.
83 IRowEnumerator rowEnum =
result.GetRowEnumerator();
84 if (rowEnum.MoveNext()) {
85 int rowIndex = rowEnum.RowIndex;
86 for (
int c = 0; c <
result.ColumnCount; ++c) {
87 result.GetCell(c, rowIndex);
99 IRowEnumerator en =
result.GetRowEnumerator();
100 while (en.MoveNext()) {
109 int colCount =
result.ColumnCount;
110 colDesc =
new QueryResultColumn[colCount];
111 for (
int i = 0; i < colCount; ++i) {
112 VariableName v =
result.GetResolvedVariable(i);
114 if (v.TableName == null) {
116 fieldName =
String.Format(
"@a{0}", v.Name);
119 fieldName =
String.Format(
"@f{0}", v);
122 colDesc[i] =
new QueryResultColumn(fieldName,
result.GetColumnInfo(i));
A long string in the system.
readonly int resultRowCount
The number of rows in the result.
readonly Dictionary< long, StreamableObject > streamableBlobMap
A Dictionary of blob_reference_id values to IRef objects used to handle and streamable o...
QueryResultColumn[] colDesc
A set of QueryResultColumn that describes each column in the ResultSet.
int locked
Incremented when we Lock roots.
Table result
The table that is the result.
IList< int > rowIndexMap
The IList that contains the row index into the table for each row of the result.
SqlQuery query
The SqlQuery that was executed to produce this result.
void Deveel.Data.Protocol.QueryResult.Dispose |
( |
| ) |
|
|
inline |
Definition at line 119 of file QueryResult.cs.
int locked
Incremented when we Lock roots.
QueryResultColumn[] columns
IList< int > rowIndexMap
The IList that contains the row index into the table for each row of the result.
void Deveel.Data.Protocol.QueryResult.Dispose |
( |
| ) |
|
|
inline |
Disposes this object.
Definition at line 154 of file QueryResult.old.cs.
QueryResultColumn[] colDesc
A set of QueryResultColumn that describes each column in the ResultSet.
int locked
Incremented when we Lock roots.
Table result
The table that is the result.
void UnlockRoot(int key)
Unlocks the root of the result set.
IList< int > rowIndexMap
The IList that contains the row index into the table for each row of the result.
void Deveel.Data.Protocol.QueryResult.FormColumns |
( |
ITable |
result | ) |
|
|
inlineprivate |
Definition at line 41 of file QueryResult.cs.
47 using (var rowEnum = result.GetEnumerator()) {
48 if (rowEnum.MoveNext()) {
49 int rowIndex = rowEnum.Current.RowId.RowNumber;
50 for (
int c = 0; c < columnCount; ++c) {
63 var en = result.GetEnumerator();
64 while (en.MoveNext()) {
74 columns =
new QueryResultColumn[colCount];
75 for (
int i = 0; i < colCount; ++i) {
76 var v = result.GetResolvedColumnName(i);
78 if (v.ParentName == null) {
80 fieldName =
String.Format(
"@a{0}", v.Name);
83 fieldName =
String.Format(
"@f{0}", v);
A long string in the system.
DataObject GetValue(long rowNumber, int columnOffset)
Gets a single cell within the table that is located at the given column offset and row...
QueryResultColumn[] columns
TableInfo TableInfo
Gets the metadata information of the table, used to resolve the column sources.
int RowCount
Gets the total number of rows in the table.
IList< int > rowIndexMap
The IList that contains the row index into the table for each row of the result.
int ColumnCount
Gets a count of the columns defined by this object.
TObject Deveel.Data.Protocol.QueryResult.GetCellContents |
( |
int |
column, |
|
|
int |
row |
|
) |
| |
|
inline |
Gets the cell contents of the cell at the given row/column.
- Parameters
-
Safe only if roots are locked.
- Returns
Definition at line 172 of file QueryResult.old.cs.
174 throw new Exception(
"Table roots not locked!");
177 TObject tob =
result.GetCell(column, realRow);
181 if (tob.Object is IRef) {
182 var reference = (IRef) tob.Object;
184 new StreamableObject(reference.Type, reference.RawSize, reference.Id);
readonly Dictionary< long, StreamableObject > streamableBlobMap
A Dictionary of blob_reference_id values to IRef objects used to handle and streamable o...
int locked
Incremented when we Lock roots.
Table result
The table that is the result.
IList< int > rowIndexMap
The IList that contains the row index into the table for each row of the result.
Definition at line 102 of file QueryResult.cs.
103 if (columnOffset < 0 || columnOffset >=
ColumnCount)
104 throw new ArgumentOutOfRangeException(
"columnOffset");
int ColumnCount
Returns the column count.
QueryResultColumn[] columns
Returns a IRef that has been cached in this table object by its identifier value.
- Parameters
-
- Returns
Definition at line 134 of file QueryResult.old.cs.
135 StreamableObject reference;
readonly Dictionary< long, StreamableObject > streamableBlobMap
A Dictionary of blob_reference_id values to IRef objects used to handle and streamable o...
DataObject Deveel.Data.Protocol.QueryResult.GetValue |
( |
int |
rowIndex, |
|
|
int |
columnIndex |
|
) |
| |
|
inline |
Definition at line 130 of file QueryResult.cs.
132 throw new Exception(
"Table roots not locked!");
DataObject GetValue(long rowNumber, int columnOffset)
Gets a single cell within the table that is located at the given column offset and row...
int locked
Incremented when we Lock roots.
IList< int > rowIndexMap
The IList that contains the row index into the table for each row of the result.
void Deveel.Data.Protocol.QueryResult.LockRoot |
( |
| ) |
|
|
inline |
Definition at line 109 of file QueryResult.cs.
int locked
Incremented when we Lock roots.
void Deveel.Data.Protocol.QueryResult.LockRoot |
( |
int |
key | ) |
|
|
inline |
Locks the root of the result set.
- Parameters
-
Definition at line 215 of file QueryResult.old.cs.
int locked
Incremented when we Lock roots.
Table result
The table that is the result.
void Deveel.Data.Protocol.QueryResult.Release |
( |
| ) |
|
|
inline |
Definition at line 114 of file QueryResult.cs.
int locked
Incremented when we Lock roots.
void Deveel.Data.Protocol.QueryResult.RemoveRef |
( |
long |
id | ) |
|
|
inline |
Removes a IRef that has been cached in this table object by its identifier value.
- Parameters
-
Definition at line 147 of file QueryResult.old.cs.
readonly Dictionary< long, StreamableObject > streamableBlobMap
A Dictionary of blob_reference_id values to IRef objects used to handle and streamable o...
void Deveel.Data.Protocol.QueryResult.UnlockRoot |
( |
int |
key | ) |
|
|
inlineprivate |
Unlocks the root of the result set.
- Parameters
-
Definition at line 224 of file QueryResult.old.cs.
int locked
Incremented when we Lock roots.
Table result
The table that is the result.
int Deveel.Data.Protocol.QueryResult.locked |
|
private |
SqlQuery Deveel.Data.Protocol.QueryResult.query |
|
private |
The SqlQuery that was executed to produce this result.
Definition at line 26 of file QueryResult.old.cs.
Table Deveel.Data.Protocol.QueryResult.result |
|
private |
bool Deveel.Data.Protocol.QueryResult.resultIsSimpleEnum |
|
private |
readonly bool Deveel.Data.Protocol.QueryResult.resultIsSimpleEnum |
|
private |
Set to true if the result table has a SimpleRowEnumerator, therefore guarenteeing we do not need to store a row lookup list.
Definition at line 48 of file QueryResult.old.cs.
readonly int Deveel.Data.Protocol.QueryResult.resultRowCount |
|
private |
IList< int > Deveel.Data.Protocol.QueryResult.rowIndexMap |
|
private |
The IList<T> that contains the row index into the table for each row of the result.
Definition at line 29 of file QueryResult.cs.
readonly Dictionary<long, StreamableObject> Deveel.Data.Protocol.QueryResult.streamableBlobMap |
|
private |
A Dictionary<TKey,TValue> of blob_reference_id values to IRef objects used to handle and streamable objects in this result.
Definition at line 64 of file QueryResult.old.cs.
int Deveel.Data.Protocol.QueryResult.ColumnCount |
|
get |
SqlQuery Deveel.Data.Protocol.QueryResult.Query |
|
getprivate set |
ITable Deveel.Data.Protocol.QueryResult.Result |
|
getprivate set |
int Deveel.Data.Protocol.QueryResult.RowCount |
|
get |
The documentation for this class was generated from the following files:
- /var/calculate/remote/distfiles/egit-src/deveeldb.git/src/deveeldb/Deveel.Data.Protocol/QueryResult.cs
- /var/calculate/remote/distfiles/egit-src/deveeldb.git/src/deveeldb/Deveel.Data.Protocol/QueryResult.old.cs