1 write to _records
System.Data.Common (1)
System\Data\Selection.cs (1)
723
_records
= new IndexTree(this);
50 references to _records
System.Data.Common (50)
System\Data\Selection.cs (50)
176
return
_records
[recordIndex];
179
public bool HasDuplicates =>
_records
.HasDuplicates;
234
Debug.Assert(null !=
_records
, "null records");
298
Debug.Assert(
_records
.CheckUnique(
_records
.root) != HasDuplicates, "CheckUnique difference");
419
int record =
_records
.DeleteByIndex(recordIndex);
434
new IndexTree.RBTreeEnumerator(
_records
, startIndex);
439
public int GetIndex(int record) =>
_records
.GetIndexByKey(record);
468
index =
_records
.GetIndexByKey(record);
500
GetUniqueKeyValues(list,
_records
.root);
509
int nodeId =
_records
.Search(record);
511
return
_records
.GetIndexByNode(nodeId); //always returns the First record index
521
return
_records
.GetIndexByNode(nodeId);
531
return
_records
.GetIndexByNode(nodeId);
544
x =
_records
.root;
551
x =
_records
.root;
556
c = column.CompareValueTo(
_records
.Key(x), key);
558
if (c < 0) { x =
_records
.Left(x); } // < for decsending
559
else { x =
_records
.Right(x); }
566
c = column.CompareValueTo(
_records
.Key(x), key);
568
if (c > 0) { x =
_records
.Left(x); } // > for ascending
569
else { x =
_records
.Right(x); }
585
x =
_records
.root;
596
x =
_records
.root;
599
c = CompareRecordToKey(
_records
.Key(x), key);
601
if (c > 0) { x =
_records
.Left(x); }
602
else { x =
_records
.Right(x); }
611
x =
_records
.root;
615
x =
_records
.root;
618
c = CompareRecords(
_records
.Key(x), record);
620
if (c > 0) { x =
_records
.Left(x); }
621
else { x =
_records
.Right(x); }
632
int x =
_records
.root;
635
int c = comparison(key, (TRow)_table._recordManager[
_records
.Key(x)]!);
637
if (c < 0) { x =
_records
.Left(x); }
638
else { x =
_records
.Right(x); }
652
int recordIndex =
_records
.GetIndexByNode(nodeId);
654
if (
_records
.Next(nodeId) == IndexTree.NIL)
657
int span =
_records
.SubTreeSize(
_records
.Next(nodeId));
765
_records
.InsertAt(-1, record, append);
798
int nodeId =
_records
.InsertAt(-1, record, append);
808
OnListChanged(ListChangedType.ItemAdded,
_records
.GetIndexByNode(nodeId));
814
return
_records
.GetIndexByNode(nodeId);
962
_records
.UpdateNodeKey(oldRecord, newRecord); //change in place, as Both records have same key value
972
_records
.DeleteByIndex(oldRecordIndex); // DeleteByIndex doesn't require searching by key
976
_records
.Insert(newRecord);
1013
GetUniqueKeyValues(list,
_records
.Left(curNodeId));
1015
int record =
_records
.Key(curNodeId);
1023
GetUniqueKeyValues(list,
_records
.Right(curNodeId));