19 using System.Collections.Generic;
21 namespace Deveel.Data.Sql.Tables {
23 public long Offset {
get;
private set; }
25 public long Total {
get;
private set; }
43 return (
int)
System.Math.Min(count, Total);
46 public override int RowCount {
47 get {
return NormalizeCount(base.RowCount); }
51 if (rowNumber >= RowCount)
52 throw new ArgumentOutOfRangeException(
"rowNumber");
54 return base.GetValue(NormalizeRow(rowNumber), columnOffset);
64 private int offset = -1;
84 get {
return table.GetRow(offset); }
87 object IEnumerator.Current {
88 get {
return Current; }
Defines the contract to access the data contained into a table of a database.
long NormalizeRow(long rowNumber)
Enumerator(LimitedTable table)
A single row in a table of a database.
Represents a dynamic object that encapsulates a defined SqlType and a compatible constant ISqlObject ...
override IEnumerator< Row > GetEnumerator()
override DataObject GetValue(long rowNumber, int columnOffset)
Gets a single cell within the table that is located at the given column offset and row...
int NormalizeCount(long count)
LimitedTable(ITable parent, long offset, long total)