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

Public Member Functions

 IndexComparerImpl (InsertSearchIndex columnIndex)
 
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 Member Functions

int InternalCompare (int index, DataObject value)
 

Private Attributes

readonly InsertSearchIndex columnIndex
 

Detailed Description

Definition at line 140 of file InsertSearchIndex.cs.

Constructor & Destructor Documentation

Deveel.Data.Index.InsertSearchIndex.IndexComparerImpl.IndexComparerImpl ( InsertSearchIndex  columnIndex)
inline

Definition at line 143 of file InsertSearchIndex.cs.

143  {
144  this.columnIndex = columnIndex;
145  }

Member Function Documentation

int Deveel.Data.Index.InsertSearchIndex.IndexComparerImpl.Compare ( int  index1,
int  index2 
)
inline

Definition at line 157 of file InsertSearchIndex.cs.

157  {
158  var cell = columnIndex.GetValue(index2);
159  return InternalCompare(index1, cell);
160  }
DataObject GetValue(long row)
Definition: ColumnIndex.cs:60
int Deveel.Data.Index.InsertSearchIndex.IndexComparerImpl.CompareValue ( int  index,
DataObject  val 
)
inline

Definition at line 153 of file InsertSearchIndex.cs.

153  {
154  return InternalCompare(index, val);
155  }
int Deveel.Data.Index.InsertSearchIndex.IndexComparerImpl.InternalCompare ( int  index,
DataObject  value 
)
inlineprivate

Definition at line 147 of file InsertSearchIndex.cs.

147  {
148  var cell = columnIndex.GetValue(index);
149  var cmp = cell.CompareTo(value);
150  return cmp;
151  }
int CompareTo(DataObject other)
Definition: DataObject.cs:131
DataObject GetValue(long row)
Definition: ColumnIndex.cs:60

Member Data Documentation

readonly InsertSearchIndex Deveel.Data.Index.InsertSearchIndex.IndexComparerImpl.columnIndex
private

Definition at line 141 of file InsertSearchIndex.cs.


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