DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Public Member Functions | Private Attributes | List of all members
Deveel.Data.Index.ColumnIndex.IndexComparer Class Reference
Inheritance diagram for Deveel.Data.Index.ColumnIndex.IndexComparer:
Deveel.Data.Index.IIndexComparer< int >

Public Member Functions

 IndexComparer (ColumnIndex scheme, IEnumerable< int > rowSet)
 
int CompareValue (int index, DataObject val)
 
int Compare (int index1, int index2)
 
- Public Member Functions inherited from Deveel.Data.Index.IIndexComparer< int >
int CompareValue (T index, DataObject value)
 Compares a value contained in the underlying index at the given position and the More...
 
int Compare (T index1, T index2)
 Comnpares two values referenced by the indices given. More...
 

Private Attributes

readonly ColumnIndex scheme
 
readonly IEnumerable< int > rowSet
 

Detailed Description

Definition at line 296 of file ColumnIndex.cs.

Constructor & Destructor Documentation

Deveel.Data.Index.ColumnIndex.IndexComparer.IndexComparer ( ColumnIndex  scheme,
IEnumerable< int >  rowSet 
)
inline

Definition at line 300 of file ColumnIndex.cs.

300  {
301  this.scheme = scheme;
302  this.rowSet = rowSet;
303  }
readonly IEnumerable< int > rowSet
Definition: ColumnIndex.cs:298

Member Function Documentation

int Deveel.Data.Index.ColumnIndex.IndexComparer.Compare ( int  index1,
int  index2 
)
inline

Definition at line 310 of file ColumnIndex.cs.

310  {
311  throw new NotSupportedException("Shouldn't be called!");
312  }
int Deveel.Data.Index.ColumnIndex.IndexComparer.CompareValue ( int  index,
DataObject  val 
)
inline

Definition at line 305 of file ColumnIndex.cs.

305  {
306  var cell = scheme.GetValue(rowSet.ElementAt((int)index));
307  return cell.CompareTo(val);
308  }
readonly IEnumerable< int > rowSet
Definition: ColumnIndex.cs:298
int CompareTo(DataObject other)
Definition: DataObject.cs:131
DataObject GetValue(long row)
Definition: ColumnIndex.cs:60

Member Data Documentation

readonly IEnumerable<int> Deveel.Data.Index.ColumnIndex.IndexComparer.rowSet
private

Definition at line 298 of file ColumnIndex.cs.

readonly ColumnIndex Deveel.Data.Index.ColumnIndex.IndexComparer.scheme
private

Definition at line 297 of file ColumnIndex.cs.


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