@@ -35,24 +35,24 @@ class TChargeBTreeIndex : public ICharge {
35
35
36
36
const auto & meta = Part->IndexPages .BTreeGroups [0 ];
37
37
38
- if (Y_UNLIKELY (row1 >= meta.RowsCount )) {
38
+ if (Y_UNLIKELY (row1 >= meta.RowCount )) {
39
39
return { true , true }; // already out of bounds, nothing to precharge
40
40
}
41
41
if (Y_UNLIKELY (row1 > row2)) {
42
42
row2 = row1; // will not go further than row1
43
43
}
44
44
45
45
TVector<TBtreeIndexNode> level, nextLevel (Reserve (2 ));
46
- for (ui32 high = 0 ; high < meta.LevelsCount && ready; high ++) {
47
- if (high == 0 ) {
46
+ for (ui32 height = 0 ; height < meta.LevelCount && ready; height ++) {
47
+ if (height == 0 ) {
48
48
ready &= TryLoadNode (meta.PageId , nextLevel);
49
49
} else {
50
50
for (ui32 i : xrange<ui32>(level.size ())) {
51
51
TRecIdx from = 0 , to = level[i].GetKeysCount ();
52
52
if (i == 0 ) {
53
53
from = level[i].Seek (row1);
54
54
}
55
- if (i + 1 == level.size () && row2 < meta.RowsCount ) {
55
+ if (i + 1 == level.size () && row2 < meta.RowCount ) {
56
56
to = level[i].Seek (row2);
57
57
}
58
58
for (TRecIdx j : xrange (from, to + 1 )) {
@@ -70,15 +70,15 @@ class TChargeBTreeIndex : public ICharge {
70
70
return {false , false };
71
71
}
72
72
73
- if (meta.LevelsCount == 0 ) {
73
+ if (meta.LevelCount == 0 ) {
74
74
ready &= HasDataPage (meta.PageId , { });
75
75
} else {
76
76
for (ui32 i : xrange<ui32>(level.size ())) {
77
77
TRecIdx from = 0 , to = level[i].GetKeysCount ();
78
78
if (i == 0 ) {
79
79
from = level[i].Seek (row1);
80
80
}
81
- if (i + 1 == level.size () && row2 < meta.RowsCount ) {
81
+ if (i + 1 == level.size () && row2 < meta.RowCount ) {
82
82
to = level[i].Seek (row2);
83
83
}
84
84
for (TRecIdx j : xrange (from, to + 1 )) {
@@ -103,25 +103,25 @@ class TChargeBTreeIndex : public ICharge {
103
103
104
104
const auto & meta = Part->IndexPages .BTreeGroups [0 ];
105
105
106
- if (Y_UNLIKELY (row1 >= meta.RowsCount )) {
107
- row1 = meta.RowsCount - 1 ; // start from the last row
106
+ if (Y_UNLIKELY (row1 >= meta.RowCount )) {
107
+ row1 = meta.RowCount - 1 ; // start from the last row
108
108
}
109
109
if (Y_UNLIKELY (row1 < row2)) {
110
110
row2 = row1; // will not go further than row1
111
111
}
112
112
113
113
// level contains nodes in reverse order
114
114
TVector<TBtreeIndexNode> level, nextLevel (Reserve (2 ));
115
- for (ui32 high = 0 ; high < meta.LevelsCount && ready; high ++) {
116
- if (high == 0 ) {
115
+ for (ui32 height = 0 ; height < meta.LevelCount && ready; height ++) {
116
+ if (height == 0 ) {
117
117
ready &= TryLoadNode (meta.PageId , nextLevel);
118
118
} else {
119
119
for (ui32 i : xrange<ui32>(level.size ())) {
120
120
TRecIdx from = level[i].GetKeysCount (), to = 0 ;
121
121
if (i == 0 ) {
122
122
from = level[i].Seek (row1);
123
123
}
124
- if (i + 1 == level.size () && row2 < meta.RowsCount ) {
124
+ if (i + 1 == level.size () && row2 < meta.RowCount ) {
125
125
to = level[i].Seek (row2);
126
126
}
127
127
for (TRecIdx j = from + 1 ; j > to; j--) {
@@ -139,15 +139,15 @@ class TChargeBTreeIndex : public ICharge {
139
139
return {false , false };
140
140
}
141
141
142
- if (meta.LevelsCount == 0 ) {
142
+ if (meta.LevelCount == 0 ) {
143
143
ready &= HasDataPage (meta.PageId , { });
144
144
} else {
145
145
for (ui32 i : xrange<ui32>(level.size ())) {
146
146
TRecIdx from = level[i].GetKeysCount (), to = 0 ;
147
147
if (i == 0 ) {
148
148
from = level[i].Seek (row1);
149
149
}
150
- if (i + 1 == level.size () && row2 < meta.RowsCount ) {
150
+ if (i + 1 == level.size () && row2 < meta.RowCount ) {
151
151
to = level[i].Seek (row2);
152
152
}
153
153
for (TRecIdx j = from + 1 ; j > to; j--) {
0 commit comments