github.com/m3db/m3@v1.5.0/src/dbnode/storage/index/index_mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/m3db/m3/src/dbnode/storage/index/types.go 3 4 // Copyright (c) 2021 Uber Technologies, Inc. 5 // 6 // Permission is hereby granted, free of charge, to any person obtaining a copy 7 // of this software and associated documentation files (the "Software"), to deal 8 // in the Software without restriction, including without limitation the rights 9 // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 // copies of the Software, and to permit persons to whom the Software is 11 // furnished to do so, subject to the following conditions: 12 // 13 // The above copyright notice and this permission notice shall be included in 14 // all copies or substantial portions of the Software. 15 // 16 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 // THE SOFTWARE. 23 24 // Package index is a generated GoMock package. 25 package index 26 27 import ( 28 "reflect" 29 "time" 30 31 "github.com/m3db/m3/src/dbnode/storage/bootstrap/result" 32 "github.com/m3db/m3/src/dbnode/storage/index/compaction" 33 "github.com/m3db/m3/src/dbnode/storage/limits" 34 "github.com/m3db/m3/src/m3ninx/doc" 35 "github.com/m3db/m3/src/m3ninx/index/segment/builder" 36 "github.com/m3db/m3/src/m3ninx/index/segment/fst" 37 "github.com/m3db/m3/src/m3ninx/index/segment/mem" 38 "github.com/m3db/m3/src/x/clock" 39 "github.com/m3db/m3/src/x/context" 40 "github.com/m3db/m3/src/x/ident" 41 "github.com/m3db/m3/src/x/instrument" 42 "github.com/m3db/m3/src/x/mmap" 43 "github.com/m3db/m3/src/x/pool" 44 time0 "github.com/m3db/m3/src/x/time" 45 46 "github.com/golang/mock/gomock" 47 "github.com/opentracing/opentracing-go/log" 48 ) 49 50 // MockBaseResults is a mock of BaseResults interface. 51 type MockBaseResults struct { 52 ctrl *gomock.Controller 53 recorder *MockBaseResultsMockRecorder 54 } 55 56 // MockBaseResultsMockRecorder is the mock recorder for MockBaseResults. 57 type MockBaseResultsMockRecorder struct { 58 mock *MockBaseResults 59 } 60 61 // NewMockBaseResults creates a new mock instance. 62 func NewMockBaseResults(ctrl *gomock.Controller) *MockBaseResults { 63 mock := &MockBaseResults{ctrl: ctrl} 64 mock.recorder = &MockBaseResultsMockRecorder{mock} 65 return mock 66 } 67 68 // EXPECT returns an object that allows the caller to indicate expected use. 69 func (m *MockBaseResults) EXPECT() *MockBaseResultsMockRecorder { 70 return m.recorder 71 } 72 73 // EnforceLimits mocks base method. 74 func (m *MockBaseResults) EnforceLimits() bool { 75 m.ctrl.T.Helper() 76 ret := m.ctrl.Call(m, "EnforceLimits") 77 ret0, _ := ret[0].(bool) 78 return ret0 79 } 80 81 // EnforceLimits indicates an expected call of EnforceLimits. 82 func (mr *MockBaseResultsMockRecorder) EnforceLimits() *gomock.Call { 83 mr.mock.ctrl.T.Helper() 84 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnforceLimits", reflect.TypeOf((*MockBaseResults)(nil).EnforceLimits)) 85 } 86 87 // Finalize mocks base method. 88 func (m *MockBaseResults) Finalize() { 89 m.ctrl.T.Helper() 90 m.ctrl.Call(m, "Finalize") 91 } 92 93 // Finalize indicates an expected call of Finalize. 94 func (mr *MockBaseResultsMockRecorder) Finalize() *gomock.Call { 95 mr.mock.ctrl.T.Helper() 96 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Finalize", reflect.TypeOf((*MockBaseResults)(nil).Finalize)) 97 } 98 99 // Namespace mocks base method. 100 func (m *MockBaseResults) Namespace() ident.ID { 101 m.ctrl.T.Helper() 102 ret := m.ctrl.Call(m, "Namespace") 103 ret0, _ := ret[0].(ident.ID) 104 return ret0 105 } 106 107 // Namespace indicates an expected call of Namespace. 108 func (mr *MockBaseResultsMockRecorder) Namespace() *gomock.Call { 109 mr.mock.ctrl.T.Helper() 110 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Namespace", reflect.TypeOf((*MockBaseResults)(nil).Namespace)) 111 } 112 113 // Size mocks base method. 114 func (m *MockBaseResults) Size() int { 115 m.ctrl.T.Helper() 116 ret := m.ctrl.Call(m, "Size") 117 ret0, _ := ret[0].(int) 118 return ret0 119 } 120 121 // Size indicates an expected call of Size. 122 func (mr *MockBaseResultsMockRecorder) Size() *gomock.Call { 123 mr.mock.ctrl.T.Helper() 124 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Size", reflect.TypeOf((*MockBaseResults)(nil).Size)) 125 } 126 127 // TotalDocsCount mocks base method. 128 func (m *MockBaseResults) TotalDocsCount() int { 129 m.ctrl.T.Helper() 130 ret := m.ctrl.Call(m, "TotalDocsCount") 131 ret0, _ := ret[0].(int) 132 return ret0 133 } 134 135 // TotalDocsCount indicates an expected call of TotalDocsCount. 136 func (mr *MockBaseResultsMockRecorder) TotalDocsCount() *gomock.Call { 137 mr.mock.ctrl.T.Helper() 138 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TotalDocsCount", reflect.TypeOf((*MockBaseResults)(nil).TotalDocsCount)) 139 } 140 141 // MockDocumentResults is a mock of DocumentResults interface. 142 type MockDocumentResults struct { 143 ctrl *gomock.Controller 144 recorder *MockDocumentResultsMockRecorder 145 } 146 147 // MockDocumentResultsMockRecorder is the mock recorder for MockDocumentResults. 148 type MockDocumentResultsMockRecorder struct { 149 mock *MockDocumentResults 150 } 151 152 // NewMockDocumentResults creates a new mock instance. 153 func NewMockDocumentResults(ctrl *gomock.Controller) *MockDocumentResults { 154 mock := &MockDocumentResults{ctrl: ctrl} 155 mock.recorder = &MockDocumentResultsMockRecorder{mock} 156 return mock 157 } 158 159 // EXPECT returns an object that allows the caller to indicate expected use. 160 func (m *MockDocumentResults) EXPECT() *MockDocumentResultsMockRecorder { 161 return m.recorder 162 } 163 164 // AddDocuments mocks base method. 165 func (m *MockDocumentResults) AddDocuments(batch []doc.Document) (int, int, error) { 166 m.ctrl.T.Helper() 167 ret := m.ctrl.Call(m, "AddDocuments", batch) 168 ret0, _ := ret[0].(int) 169 ret1, _ := ret[1].(int) 170 ret2, _ := ret[2].(error) 171 return ret0, ret1, ret2 172 } 173 174 // AddDocuments indicates an expected call of AddDocuments. 175 func (mr *MockDocumentResultsMockRecorder) AddDocuments(batch interface{}) *gomock.Call { 176 mr.mock.ctrl.T.Helper() 177 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddDocuments", reflect.TypeOf((*MockDocumentResults)(nil).AddDocuments), batch) 178 } 179 180 // EnforceLimits mocks base method. 181 func (m *MockDocumentResults) EnforceLimits() bool { 182 m.ctrl.T.Helper() 183 ret := m.ctrl.Call(m, "EnforceLimits") 184 ret0, _ := ret[0].(bool) 185 return ret0 186 } 187 188 // EnforceLimits indicates an expected call of EnforceLimits. 189 func (mr *MockDocumentResultsMockRecorder) EnforceLimits() *gomock.Call { 190 mr.mock.ctrl.T.Helper() 191 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnforceLimits", reflect.TypeOf((*MockDocumentResults)(nil).EnforceLimits)) 192 } 193 194 // Finalize mocks base method. 195 func (m *MockDocumentResults) Finalize() { 196 m.ctrl.T.Helper() 197 m.ctrl.Call(m, "Finalize") 198 } 199 200 // Finalize indicates an expected call of Finalize. 201 func (mr *MockDocumentResultsMockRecorder) Finalize() *gomock.Call { 202 mr.mock.ctrl.T.Helper() 203 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Finalize", reflect.TypeOf((*MockDocumentResults)(nil).Finalize)) 204 } 205 206 // Namespace mocks base method. 207 func (m *MockDocumentResults) Namespace() ident.ID { 208 m.ctrl.T.Helper() 209 ret := m.ctrl.Call(m, "Namespace") 210 ret0, _ := ret[0].(ident.ID) 211 return ret0 212 } 213 214 // Namespace indicates an expected call of Namespace. 215 func (mr *MockDocumentResultsMockRecorder) Namespace() *gomock.Call { 216 mr.mock.ctrl.T.Helper() 217 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Namespace", reflect.TypeOf((*MockDocumentResults)(nil).Namespace)) 218 } 219 220 // Size mocks base method. 221 func (m *MockDocumentResults) Size() int { 222 m.ctrl.T.Helper() 223 ret := m.ctrl.Call(m, "Size") 224 ret0, _ := ret[0].(int) 225 return ret0 226 } 227 228 // Size indicates an expected call of Size. 229 func (mr *MockDocumentResultsMockRecorder) Size() *gomock.Call { 230 mr.mock.ctrl.T.Helper() 231 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Size", reflect.TypeOf((*MockDocumentResults)(nil).Size)) 232 } 233 234 // TotalDocsCount mocks base method. 235 func (m *MockDocumentResults) TotalDocsCount() int { 236 m.ctrl.T.Helper() 237 ret := m.ctrl.Call(m, "TotalDocsCount") 238 ret0, _ := ret[0].(int) 239 return ret0 240 } 241 242 // TotalDocsCount indicates an expected call of TotalDocsCount. 243 func (mr *MockDocumentResultsMockRecorder) TotalDocsCount() *gomock.Call { 244 mr.mock.ctrl.T.Helper() 245 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TotalDocsCount", reflect.TypeOf((*MockDocumentResults)(nil).TotalDocsCount)) 246 } 247 248 // MockQueryResults is a mock of QueryResults interface. 249 type MockQueryResults struct { 250 ctrl *gomock.Controller 251 recorder *MockQueryResultsMockRecorder 252 } 253 254 // MockQueryResultsMockRecorder is the mock recorder for MockQueryResults. 255 type MockQueryResultsMockRecorder struct { 256 mock *MockQueryResults 257 } 258 259 // NewMockQueryResults creates a new mock instance. 260 func NewMockQueryResults(ctrl *gomock.Controller) *MockQueryResults { 261 mock := &MockQueryResults{ctrl: ctrl} 262 mock.recorder = &MockQueryResultsMockRecorder{mock} 263 return mock 264 } 265 266 // EXPECT returns an object that allows the caller to indicate expected use. 267 func (m *MockQueryResults) EXPECT() *MockQueryResultsMockRecorder { 268 return m.recorder 269 } 270 271 // AddDocuments mocks base method. 272 func (m *MockQueryResults) AddDocuments(batch []doc.Document) (int, int, error) { 273 m.ctrl.T.Helper() 274 ret := m.ctrl.Call(m, "AddDocuments", batch) 275 ret0, _ := ret[0].(int) 276 ret1, _ := ret[1].(int) 277 ret2, _ := ret[2].(error) 278 return ret0, ret1, ret2 279 } 280 281 // AddDocuments indicates an expected call of AddDocuments. 282 func (mr *MockQueryResultsMockRecorder) AddDocuments(batch interface{}) *gomock.Call { 283 mr.mock.ctrl.T.Helper() 284 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddDocuments", reflect.TypeOf((*MockQueryResults)(nil).AddDocuments), batch) 285 } 286 287 // EnforceLimits mocks base method. 288 func (m *MockQueryResults) EnforceLimits() bool { 289 m.ctrl.T.Helper() 290 ret := m.ctrl.Call(m, "EnforceLimits") 291 ret0, _ := ret[0].(bool) 292 return ret0 293 } 294 295 // EnforceLimits indicates an expected call of EnforceLimits. 296 func (mr *MockQueryResultsMockRecorder) EnforceLimits() *gomock.Call { 297 mr.mock.ctrl.T.Helper() 298 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnforceLimits", reflect.TypeOf((*MockQueryResults)(nil).EnforceLimits)) 299 } 300 301 // Finalize mocks base method. 302 func (m *MockQueryResults) Finalize() { 303 m.ctrl.T.Helper() 304 m.ctrl.Call(m, "Finalize") 305 } 306 307 // Finalize indicates an expected call of Finalize. 308 func (mr *MockQueryResultsMockRecorder) Finalize() *gomock.Call { 309 mr.mock.ctrl.T.Helper() 310 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Finalize", reflect.TypeOf((*MockQueryResults)(nil).Finalize)) 311 } 312 313 // Map mocks base method. 314 func (m *MockQueryResults) Map() *ResultsMap { 315 m.ctrl.T.Helper() 316 ret := m.ctrl.Call(m, "Map") 317 ret0, _ := ret[0].(*ResultsMap) 318 return ret0 319 } 320 321 // Map indicates an expected call of Map. 322 func (mr *MockQueryResultsMockRecorder) Map() *gomock.Call { 323 mr.mock.ctrl.T.Helper() 324 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Map", reflect.TypeOf((*MockQueryResults)(nil).Map)) 325 } 326 327 // Namespace mocks base method. 328 func (m *MockQueryResults) Namespace() ident.ID { 329 m.ctrl.T.Helper() 330 ret := m.ctrl.Call(m, "Namespace") 331 ret0, _ := ret[0].(ident.ID) 332 return ret0 333 } 334 335 // Namespace indicates an expected call of Namespace. 336 func (mr *MockQueryResultsMockRecorder) Namespace() *gomock.Call { 337 mr.mock.ctrl.T.Helper() 338 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Namespace", reflect.TypeOf((*MockQueryResults)(nil).Namespace)) 339 } 340 341 // Reset mocks base method. 342 func (m *MockQueryResults) Reset(nsID ident.ID, opts QueryResultsOptions) { 343 m.ctrl.T.Helper() 344 m.ctrl.Call(m, "Reset", nsID, opts) 345 } 346 347 // Reset indicates an expected call of Reset. 348 func (mr *MockQueryResultsMockRecorder) Reset(nsID, opts interface{}) *gomock.Call { 349 mr.mock.ctrl.T.Helper() 350 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Reset", reflect.TypeOf((*MockQueryResults)(nil).Reset), nsID, opts) 351 } 352 353 // Size mocks base method. 354 func (m *MockQueryResults) Size() int { 355 m.ctrl.T.Helper() 356 ret := m.ctrl.Call(m, "Size") 357 ret0, _ := ret[0].(int) 358 return ret0 359 } 360 361 // Size indicates an expected call of Size. 362 func (mr *MockQueryResultsMockRecorder) Size() *gomock.Call { 363 mr.mock.ctrl.T.Helper() 364 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Size", reflect.TypeOf((*MockQueryResults)(nil).Size)) 365 } 366 367 // TotalDocsCount mocks base method. 368 func (m *MockQueryResults) TotalDocsCount() int { 369 m.ctrl.T.Helper() 370 ret := m.ctrl.Call(m, "TotalDocsCount") 371 ret0, _ := ret[0].(int) 372 return ret0 373 } 374 375 // TotalDocsCount indicates an expected call of TotalDocsCount. 376 func (mr *MockQueryResultsMockRecorder) TotalDocsCount() *gomock.Call { 377 mr.mock.ctrl.T.Helper() 378 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TotalDocsCount", reflect.TypeOf((*MockQueryResults)(nil).TotalDocsCount)) 379 } 380 381 // MockQueryResultsPool is a mock of QueryResultsPool interface. 382 type MockQueryResultsPool struct { 383 ctrl *gomock.Controller 384 recorder *MockQueryResultsPoolMockRecorder 385 } 386 387 // MockQueryResultsPoolMockRecorder is the mock recorder for MockQueryResultsPool. 388 type MockQueryResultsPoolMockRecorder struct { 389 mock *MockQueryResultsPool 390 } 391 392 // NewMockQueryResultsPool creates a new mock instance. 393 func NewMockQueryResultsPool(ctrl *gomock.Controller) *MockQueryResultsPool { 394 mock := &MockQueryResultsPool{ctrl: ctrl} 395 mock.recorder = &MockQueryResultsPoolMockRecorder{mock} 396 return mock 397 } 398 399 // EXPECT returns an object that allows the caller to indicate expected use. 400 func (m *MockQueryResultsPool) EXPECT() *MockQueryResultsPoolMockRecorder { 401 return m.recorder 402 } 403 404 // Get mocks base method. 405 func (m *MockQueryResultsPool) Get() QueryResults { 406 m.ctrl.T.Helper() 407 ret := m.ctrl.Call(m, "Get") 408 ret0, _ := ret[0].(QueryResults) 409 return ret0 410 } 411 412 // Get indicates an expected call of Get. 413 func (mr *MockQueryResultsPoolMockRecorder) Get() *gomock.Call { 414 mr.mock.ctrl.T.Helper() 415 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockQueryResultsPool)(nil).Get)) 416 } 417 418 // Init mocks base method. 419 func (m *MockQueryResultsPool) Init(alloc QueryResultsAllocator) { 420 m.ctrl.T.Helper() 421 m.ctrl.Call(m, "Init", alloc) 422 } 423 424 // Init indicates an expected call of Init. 425 func (mr *MockQueryResultsPoolMockRecorder) Init(alloc interface{}) *gomock.Call { 426 mr.mock.ctrl.T.Helper() 427 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Init", reflect.TypeOf((*MockQueryResultsPool)(nil).Init), alloc) 428 } 429 430 // Put mocks base method. 431 func (m *MockQueryResultsPool) Put(value QueryResults) { 432 m.ctrl.T.Helper() 433 m.ctrl.Call(m, "Put", value) 434 } 435 436 // Put indicates an expected call of Put. 437 func (mr *MockQueryResultsPoolMockRecorder) Put(value interface{}) *gomock.Call { 438 mr.mock.ctrl.T.Helper() 439 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Put", reflect.TypeOf((*MockQueryResultsPool)(nil).Put), value) 440 } 441 442 // MockAggregateResults is a mock of AggregateResults interface. 443 type MockAggregateResults struct { 444 ctrl *gomock.Controller 445 recorder *MockAggregateResultsMockRecorder 446 } 447 448 // MockAggregateResultsMockRecorder is the mock recorder for MockAggregateResults. 449 type MockAggregateResultsMockRecorder struct { 450 mock *MockAggregateResults 451 } 452 453 // NewMockAggregateResults creates a new mock instance. 454 func NewMockAggregateResults(ctrl *gomock.Controller) *MockAggregateResults { 455 mock := &MockAggregateResults{ctrl: ctrl} 456 mock.recorder = &MockAggregateResultsMockRecorder{mock} 457 return mock 458 } 459 460 // EXPECT returns an object that allows the caller to indicate expected use. 461 func (m *MockAggregateResults) EXPECT() *MockAggregateResultsMockRecorder { 462 return m.recorder 463 } 464 465 // AddFields mocks base method. 466 func (m *MockAggregateResults) AddFields(batch []AggregateResultsEntry) (int, int) { 467 m.ctrl.T.Helper() 468 ret := m.ctrl.Call(m, "AddFields", batch) 469 ret0, _ := ret[0].(int) 470 ret1, _ := ret[1].(int) 471 return ret0, ret1 472 } 473 474 // AddFields indicates an expected call of AddFields. 475 func (mr *MockAggregateResultsMockRecorder) AddFields(batch interface{}) *gomock.Call { 476 mr.mock.ctrl.T.Helper() 477 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddFields", reflect.TypeOf((*MockAggregateResults)(nil).AddFields), batch) 478 } 479 480 // AggregateResultsOptions mocks base method. 481 func (m *MockAggregateResults) AggregateResultsOptions() AggregateResultsOptions { 482 m.ctrl.T.Helper() 483 ret := m.ctrl.Call(m, "AggregateResultsOptions") 484 ret0, _ := ret[0].(AggregateResultsOptions) 485 return ret0 486 } 487 488 // AggregateResultsOptions indicates an expected call of AggregateResultsOptions. 489 func (mr *MockAggregateResultsMockRecorder) AggregateResultsOptions() *gomock.Call { 490 mr.mock.ctrl.T.Helper() 491 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AggregateResultsOptions", reflect.TypeOf((*MockAggregateResults)(nil).AggregateResultsOptions)) 492 } 493 494 // EnforceLimits mocks base method. 495 func (m *MockAggregateResults) EnforceLimits() bool { 496 m.ctrl.T.Helper() 497 ret := m.ctrl.Call(m, "EnforceLimits") 498 ret0, _ := ret[0].(bool) 499 return ret0 500 } 501 502 // EnforceLimits indicates an expected call of EnforceLimits. 503 func (mr *MockAggregateResultsMockRecorder) EnforceLimits() *gomock.Call { 504 mr.mock.ctrl.T.Helper() 505 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnforceLimits", reflect.TypeOf((*MockAggregateResults)(nil).EnforceLimits)) 506 } 507 508 // Finalize mocks base method. 509 func (m *MockAggregateResults) Finalize() { 510 m.ctrl.T.Helper() 511 m.ctrl.Call(m, "Finalize") 512 } 513 514 // Finalize indicates an expected call of Finalize. 515 func (mr *MockAggregateResultsMockRecorder) Finalize() *gomock.Call { 516 mr.mock.ctrl.T.Helper() 517 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Finalize", reflect.TypeOf((*MockAggregateResults)(nil).Finalize)) 518 } 519 520 // Map mocks base method. 521 func (m *MockAggregateResults) Map() *AggregateResultsMap { 522 m.ctrl.T.Helper() 523 ret := m.ctrl.Call(m, "Map") 524 ret0, _ := ret[0].(*AggregateResultsMap) 525 return ret0 526 } 527 528 // Map indicates an expected call of Map. 529 func (mr *MockAggregateResultsMockRecorder) Map() *gomock.Call { 530 mr.mock.ctrl.T.Helper() 531 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Map", reflect.TypeOf((*MockAggregateResults)(nil).Map)) 532 } 533 534 // Namespace mocks base method. 535 func (m *MockAggregateResults) Namespace() ident.ID { 536 m.ctrl.T.Helper() 537 ret := m.ctrl.Call(m, "Namespace") 538 ret0, _ := ret[0].(ident.ID) 539 return ret0 540 } 541 542 // Namespace indicates an expected call of Namespace. 543 func (mr *MockAggregateResultsMockRecorder) Namespace() *gomock.Call { 544 mr.mock.ctrl.T.Helper() 545 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Namespace", reflect.TypeOf((*MockAggregateResults)(nil).Namespace)) 546 } 547 548 // Reset mocks base method. 549 func (m *MockAggregateResults) Reset(nsID ident.ID, aggregateQueryOpts AggregateResultsOptions) { 550 m.ctrl.T.Helper() 551 m.ctrl.Call(m, "Reset", nsID, aggregateQueryOpts) 552 } 553 554 // Reset indicates an expected call of Reset. 555 func (mr *MockAggregateResultsMockRecorder) Reset(nsID, aggregateQueryOpts interface{}) *gomock.Call { 556 mr.mock.ctrl.T.Helper() 557 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Reset", reflect.TypeOf((*MockAggregateResults)(nil).Reset), nsID, aggregateQueryOpts) 558 } 559 560 // Size mocks base method. 561 func (m *MockAggregateResults) Size() int { 562 m.ctrl.T.Helper() 563 ret := m.ctrl.Call(m, "Size") 564 ret0, _ := ret[0].(int) 565 return ret0 566 } 567 568 // Size indicates an expected call of Size. 569 func (mr *MockAggregateResultsMockRecorder) Size() *gomock.Call { 570 mr.mock.ctrl.T.Helper() 571 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Size", reflect.TypeOf((*MockAggregateResults)(nil).Size)) 572 } 573 574 // TotalDocsCount mocks base method. 575 func (m *MockAggregateResults) TotalDocsCount() int { 576 m.ctrl.T.Helper() 577 ret := m.ctrl.Call(m, "TotalDocsCount") 578 ret0, _ := ret[0].(int) 579 return ret0 580 } 581 582 // TotalDocsCount indicates an expected call of TotalDocsCount. 583 func (mr *MockAggregateResultsMockRecorder) TotalDocsCount() *gomock.Call { 584 mr.mock.ctrl.T.Helper() 585 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TotalDocsCount", reflect.TypeOf((*MockAggregateResults)(nil).TotalDocsCount)) 586 } 587 588 // MockAggregateUsageMetrics is a mock of AggregateUsageMetrics interface. 589 type MockAggregateUsageMetrics struct { 590 ctrl *gomock.Controller 591 recorder *MockAggregateUsageMetricsMockRecorder 592 } 593 594 // MockAggregateUsageMetricsMockRecorder is the mock recorder for MockAggregateUsageMetrics. 595 type MockAggregateUsageMetricsMockRecorder struct { 596 mock *MockAggregateUsageMetrics 597 } 598 599 // NewMockAggregateUsageMetrics creates a new mock instance. 600 func NewMockAggregateUsageMetrics(ctrl *gomock.Controller) *MockAggregateUsageMetrics { 601 mock := &MockAggregateUsageMetrics{ctrl: ctrl} 602 mock.recorder = &MockAggregateUsageMetricsMockRecorder{mock} 603 return mock 604 } 605 606 // EXPECT returns an object that allows the caller to indicate expected use. 607 func (m *MockAggregateUsageMetrics) EXPECT() *MockAggregateUsageMetricsMockRecorder { 608 return m.recorder 609 } 610 611 // IncDedupedFields mocks base method. 612 func (m *MockAggregateUsageMetrics) IncDedupedFields(val int64) { 613 m.ctrl.T.Helper() 614 m.ctrl.Call(m, "IncDedupedFields", val) 615 } 616 617 // IncDedupedFields indicates an expected call of IncDedupedFields. 618 func (mr *MockAggregateUsageMetricsMockRecorder) IncDedupedFields(val interface{}) *gomock.Call { 619 mr.mock.ctrl.T.Helper() 620 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IncDedupedFields", reflect.TypeOf((*MockAggregateUsageMetrics)(nil).IncDedupedFields), val) 621 } 622 623 // IncDedupedTerms mocks base method. 624 func (m *MockAggregateUsageMetrics) IncDedupedTerms(val int64) { 625 m.ctrl.T.Helper() 626 m.ctrl.Call(m, "IncDedupedTerms", val) 627 } 628 629 // IncDedupedTerms indicates an expected call of IncDedupedTerms. 630 func (mr *MockAggregateUsageMetricsMockRecorder) IncDedupedTerms(val interface{}) *gomock.Call { 631 mr.mock.ctrl.T.Helper() 632 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IncDedupedTerms", reflect.TypeOf((*MockAggregateUsageMetrics)(nil).IncDedupedTerms), val) 633 } 634 635 // IncTotal mocks base method. 636 func (m *MockAggregateUsageMetrics) IncTotal(val int64) { 637 m.ctrl.T.Helper() 638 m.ctrl.Call(m, "IncTotal", val) 639 } 640 641 // IncTotal indicates an expected call of IncTotal. 642 func (mr *MockAggregateUsageMetricsMockRecorder) IncTotal(val interface{}) *gomock.Call { 643 mr.mock.ctrl.T.Helper() 644 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IncTotal", reflect.TypeOf((*MockAggregateUsageMetrics)(nil).IncTotal), val) 645 } 646 647 // IncTotalFields mocks base method. 648 func (m *MockAggregateUsageMetrics) IncTotalFields(val int64) { 649 m.ctrl.T.Helper() 650 m.ctrl.Call(m, "IncTotalFields", val) 651 } 652 653 // IncTotalFields indicates an expected call of IncTotalFields. 654 func (mr *MockAggregateUsageMetricsMockRecorder) IncTotalFields(val interface{}) *gomock.Call { 655 mr.mock.ctrl.T.Helper() 656 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IncTotalFields", reflect.TypeOf((*MockAggregateUsageMetrics)(nil).IncTotalFields), val) 657 } 658 659 // IncTotalTerms mocks base method. 660 func (m *MockAggregateUsageMetrics) IncTotalTerms(val int64) { 661 m.ctrl.T.Helper() 662 m.ctrl.Call(m, "IncTotalTerms", val) 663 } 664 665 // IncTotalTerms indicates an expected call of IncTotalTerms. 666 func (mr *MockAggregateUsageMetricsMockRecorder) IncTotalTerms(val interface{}) *gomock.Call { 667 mr.mock.ctrl.T.Helper() 668 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IncTotalTerms", reflect.TypeOf((*MockAggregateUsageMetrics)(nil).IncTotalTerms), val) 669 } 670 671 // MockAggregateResultsPool is a mock of AggregateResultsPool interface. 672 type MockAggregateResultsPool struct { 673 ctrl *gomock.Controller 674 recorder *MockAggregateResultsPoolMockRecorder 675 } 676 677 // MockAggregateResultsPoolMockRecorder is the mock recorder for MockAggregateResultsPool. 678 type MockAggregateResultsPoolMockRecorder struct { 679 mock *MockAggregateResultsPool 680 } 681 682 // NewMockAggregateResultsPool creates a new mock instance. 683 func NewMockAggregateResultsPool(ctrl *gomock.Controller) *MockAggregateResultsPool { 684 mock := &MockAggregateResultsPool{ctrl: ctrl} 685 mock.recorder = &MockAggregateResultsPoolMockRecorder{mock} 686 return mock 687 } 688 689 // EXPECT returns an object that allows the caller to indicate expected use. 690 func (m *MockAggregateResultsPool) EXPECT() *MockAggregateResultsPoolMockRecorder { 691 return m.recorder 692 } 693 694 // Get mocks base method. 695 func (m *MockAggregateResultsPool) Get() AggregateResults { 696 m.ctrl.T.Helper() 697 ret := m.ctrl.Call(m, "Get") 698 ret0, _ := ret[0].(AggregateResults) 699 return ret0 700 } 701 702 // Get indicates an expected call of Get. 703 func (mr *MockAggregateResultsPoolMockRecorder) Get() *gomock.Call { 704 mr.mock.ctrl.T.Helper() 705 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockAggregateResultsPool)(nil).Get)) 706 } 707 708 // Init mocks base method. 709 func (m *MockAggregateResultsPool) Init(alloc AggregateResultsAllocator) { 710 m.ctrl.T.Helper() 711 m.ctrl.Call(m, "Init", alloc) 712 } 713 714 // Init indicates an expected call of Init. 715 func (mr *MockAggregateResultsPoolMockRecorder) Init(alloc interface{}) *gomock.Call { 716 mr.mock.ctrl.T.Helper() 717 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Init", reflect.TypeOf((*MockAggregateResultsPool)(nil).Init), alloc) 718 } 719 720 // Put mocks base method. 721 func (m *MockAggregateResultsPool) Put(value AggregateResults) { 722 m.ctrl.T.Helper() 723 m.ctrl.Call(m, "Put", value) 724 } 725 726 // Put indicates an expected call of Put. 727 func (mr *MockAggregateResultsPoolMockRecorder) Put(value interface{}) *gomock.Call { 728 mr.mock.ctrl.T.Helper() 729 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Put", reflect.TypeOf((*MockAggregateResultsPool)(nil).Put), value) 730 } 731 732 // MockAggregateValuesPool is a mock of AggregateValuesPool interface. 733 type MockAggregateValuesPool struct { 734 ctrl *gomock.Controller 735 recorder *MockAggregateValuesPoolMockRecorder 736 } 737 738 // MockAggregateValuesPoolMockRecorder is the mock recorder for MockAggregateValuesPool. 739 type MockAggregateValuesPoolMockRecorder struct { 740 mock *MockAggregateValuesPool 741 } 742 743 // NewMockAggregateValuesPool creates a new mock instance. 744 func NewMockAggregateValuesPool(ctrl *gomock.Controller) *MockAggregateValuesPool { 745 mock := &MockAggregateValuesPool{ctrl: ctrl} 746 mock.recorder = &MockAggregateValuesPoolMockRecorder{mock} 747 return mock 748 } 749 750 // EXPECT returns an object that allows the caller to indicate expected use. 751 func (m *MockAggregateValuesPool) EXPECT() *MockAggregateValuesPoolMockRecorder { 752 return m.recorder 753 } 754 755 // Get mocks base method. 756 func (m *MockAggregateValuesPool) Get() AggregateValues { 757 m.ctrl.T.Helper() 758 ret := m.ctrl.Call(m, "Get") 759 ret0, _ := ret[0].(AggregateValues) 760 return ret0 761 } 762 763 // Get indicates an expected call of Get. 764 func (mr *MockAggregateValuesPoolMockRecorder) Get() *gomock.Call { 765 mr.mock.ctrl.T.Helper() 766 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockAggregateValuesPool)(nil).Get)) 767 } 768 769 // Init mocks base method. 770 func (m *MockAggregateValuesPool) Init(alloc AggregateValuesAllocator) { 771 m.ctrl.T.Helper() 772 m.ctrl.Call(m, "Init", alloc) 773 } 774 775 // Init indicates an expected call of Init. 776 func (mr *MockAggregateValuesPoolMockRecorder) Init(alloc interface{}) *gomock.Call { 777 mr.mock.ctrl.T.Helper() 778 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Init", reflect.TypeOf((*MockAggregateValuesPool)(nil).Init), alloc) 779 } 780 781 // Put mocks base method. 782 func (m *MockAggregateValuesPool) Put(value AggregateValues) { 783 m.ctrl.T.Helper() 784 m.ctrl.Call(m, "Put", value) 785 } 786 787 // Put indicates an expected call of Put. 788 func (mr *MockAggregateValuesPoolMockRecorder) Put(value interface{}) *gomock.Call { 789 mr.mock.ctrl.T.Helper() 790 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Put", reflect.TypeOf((*MockAggregateValuesPool)(nil).Put), value) 791 } 792 793 // MockBlock is a mock of Block interface. 794 type MockBlock struct { 795 ctrl *gomock.Controller 796 recorder *MockBlockMockRecorder 797 } 798 799 // MockBlockMockRecorder is the mock recorder for MockBlock. 800 type MockBlockMockRecorder struct { 801 mock *MockBlock 802 } 803 804 // NewMockBlock creates a new mock instance. 805 func NewMockBlock(ctrl *gomock.Controller) *MockBlock { 806 mock := &MockBlock{ctrl: ctrl} 807 mock.recorder = &MockBlockMockRecorder{mock} 808 return mock 809 } 810 811 // EXPECT returns an object that allows the caller to indicate expected use. 812 func (m *MockBlock) EXPECT() *MockBlockMockRecorder { 813 return m.recorder 814 } 815 816 // AddResults mocks base method. 817 func (m *MockBlock) AddResults(resultsByVolumeType result.IndexBlockByVolumeType) error { 818 m.ctrl.T.Helper() 819 ret := m.ctrl.Call(m, "AddResults", resultsByVolumeType) 820 ret0, _ := ret[0].(error) 821 return ret0 822 } 823 824 // AddResults indicates an expected call of AddResults. 825 func (mr *MockBlockMockRecorder) AddResults(resultsByVolumeType interface{}) *gomock.Call { 826 mr.mock.ctrl.T.Helper() 827 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddResults", reflect.TypeOf((*MockBlock)(nil).AddResults), resultsByVolumeType) 828 } 829 830 // AggregateIter mocks base method. 831 func (m *MockBlock) AggregateIter(ctx context.Context, aggOpts AggregateResultsOptions) (AggregateIterator, error) { 832 m.ctrl.T.Helper() 833 ret := m.ctrl.Call(m, "AggregateIter", ctx, aggOpts) 834 ret0, _ := ret[0].(AggregateIterator) 835 ret1, _ := ret[1].(error) 836 return ret0, ret1 837 } 838 839 // AggregateIter indicates an expected call of AggregateIter. 840 func (mr *MockBlockMockRecorder) AggregateIter(ctx, aggOpts interface{}) *gomock.Call { 841 mr.mock.ctrl.T.Helper() 842 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AggregateIter", reflect.TypeOf((*MockBlock)(nil).AggregateIter), ctx, aggOpts) 843 } 844 845 // AggregateWithIter mocks base method. 846 func (m *MockBlock) AggregateWithIter(ctx context.Context, iter AggregateIterator, opts QueryOptions, results AggregateResults, deadline time.Time, logFields []log.Field) error { 847 m.ctrl.T.Helper() 848 ret := m.ctrl.Call(m, "AggregateWithIter", ctx, iter, opts, results, deadline, logFields) 849 ret0, _ := ret[0].(error) 850 return ret0 851 } 852 853 // AggregateWithIter indicates an expected call of AggregateWithIter. 854 func (mr *MockBlockMockRecorder) AggregateWithIter(ctx, iter, opts, results, deadline, logFields interface{}) *gomock.Call { 855 mr.mock.ctrl.T.Helper() 856 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AggregateWithIter", reflect.TypeOf((*MockBlock)(nil).AggregateWithIter), ctx, iter, opts, results, deadline, logFields) 857 } 858 859 // BackgroundCompact mocks base method. 860 func (m *MockBlock) BackgroundCompact() { 861 m.ctrl.T.Helper() 862 m.ctrl.Call(m, "BackgroundCompact") 863 } 864 865 // BackgroundCompact indicates an expected call of BackgroundCompact. 866 func (mr *MockBlockMockRecorder) BackgroundCompact() *gomock.Call { 867 mr.mock.ctrl.T.Helper() 868 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BackgroundCompact", reflect.TypeOf((*MockBlock)(nil).BackgroundCompact)) 869 } 870 871 // Close mocks base method. 872 func (m *MockBlock) Close() error { 873 m.ctrl.T.Helper() 874 ret := m.ctrl.Call(m, "Close") 875 ret0, _ := ret[0].(error) 876 return ret0 877 } 878 879 // Close indicates an expected call of Close. 880 func (mr *MockBlockMockRecorder) Close() *gomock.Call { 881 mr.mock.ctrl.T.Helper() 882 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockBlock)(nil).Close)) 883 } 884 885 // EndTime mocks base method. 886 func (m *MockBlock) EndTime() time0.UnixNano { 887 m.ctrl.T.Helper() 888 ret := m.ctrl.Call(m, "EndTime") 889 ret0, _ := ret[0].(time0.UnixNano) 890 return ret0 891 } 892 893 // EndTime indicates an expected call of EndTime. 894 func (mr *MockBlockMockRecorder) EndTime() *gomock.Call { 895 mr.mock.ctrl.T.Helper() 896 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EndTime", reflect.TypeOf((*MockBlock)(nil).EndTime)) 897 } 898 899 // EvictColdMutableSegments mocks base method. 900 func (m *MockBlock) EvictColdMutableSegments() error { 901 m.ctrl.T.Helper() 902 ret := m.ctrl.Call(m, "EvictColdMutableSegments") 903 ret0, _ := ret[0].(error) 904 return ret0 905 } 906 907 // EvictColdMutableSegments indicates an expected call of EvictColdMutableSegments. 908 func (mr *MockBlockMockRecorder) EvictColdMutableSegments() *gomock.Call { 909 mr.mock.ctrl.T.Helper() 910 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EvictColdMutableSegments", reflect.TypeOf((*MockBlock)(nil).EvictColdMutableSegments)) 911 } 912 913 // EvictMutableSegments mocks base method. 914 func (m *MockBlock) EvictMutableSegments() error { 915 m.ctrl.T.Helper() 916 ret := m.ctrl.Call(m, "EvictMutableSegments") 917 ret0, _ := ret[0].(error) 918 return ret0 919 } 920 921 // EvictMutableSegments indicates an expected call of EvictMutableSegments. 922 func (mr *MockBlockMockRecorder) EvictMutableSegments() *gomock.Call { 923 mr.mock.ctrl.T.Helper() 924 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EvictMutableSegments", reflect.TypeOf((*MockBlock)(nil).EvictMutableSegments)) 925 } 926 927 // IsOpen mocks base method. 928 func (m *MockBlock) IsOpen() bool { 929 m.ctrl.T.Helper() 930 ret := m.ctrl.Call(m, "IsOpen") 931 ret0, _ := ret[0].(bool) 932 return ret0 933 } 934 935 // IsOpen indicates an expected call of IsOpen. 936 func (mr *MockBlockMockRecorder) IsOpen() *gomock.Call { 937 mr.mock.ctrl.T.Helper() 938 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsOpen", reflect.TypeOf((*MockBlock)(nil).IsOpen)) 939 } 940 941 // IsSealed mocks base method. 942 func (m *MockBlock) IsSealed() bool { 943 m.ctrl.T.Helper() 944 ret := m.ctrl.Call(m, "IsSealed") 945 ret0, _ := ret[0].(bool) 946 return ret0 947 } 948 949 // IsSealed indicates an expected call of IsSealed. 950 func (mr *MockBlockMockRecorder) IsSealed() *gomock.Call { 951 mr.mock.ctrl.T.Helper() 952 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsSealed", reflect.TypeOf((*MockBlock)(nil).IsSealed)) 953 } 954 955 // MemorySegmentsData mocks base method. 956 func (m *MockBlock) MemorySegmentsData(ctx context.Context) ([]fst.SegmentData, error) { 957 m.ctrl.T.Helper() 958 ret := m.ctrl.Call(m, "MemorySegmentsData", ctx) 959 ret0, _ := ret[0].([]fst.SegmentData) 960 ret1, _ := ret[1].(error) 961 return ret0, ret1 962 } 963 964 // MemorySegmentsData indicates an expected call of MemorySegmentsData. 965 func (mr *MockBlockMockRecorder) MemorySegmentsData(ctx interface{}) *gomock.Call { 966 mr.mock.ctrl.T.Helper() 967 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MemorySegmentsData", reflect.TypeOf((*MockBlock)(nil).MemorySegmentsData), ctx) 968 } 969 970 // NeedsColdMutableSegmentsEvicted mocks base method. 971 func (m *MockBlock) NeedsColdMutableSegmentsEvicted() bool { 972 m.ctrl.T.Helper() 973 ret := m.ctrl.Call(m, "NeedsColdMutableSegmentsEvicted") 974 ret0, _ := ret[0].(bool) 975 return ret0 976 } 977 978 // NeedsColdMutableSegmentsEvicted indicates an expected call of NeedsColdMutableSegmentsEvicted. 979 func (mr *MockBlockMockRecorder) NeedsColdMutableSegmentsEvicted() *gomock.Call { 980 mr.mock.ctrl.T.Helper() 981 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NeedsColdMutableSegmentsEvicted", reflect.TypeOf((*MockBlock)(nil).NeedsColdMutableSegmentsEvicted)) 982 } 983 984 // NeedsMutableSegmentsEvicted mocks base method. 985 func (m *MockBlock) NeedsMutableSegmentsEvicted() bool { 986 m.ctrl.T.Helper() 987 ret := m.ctrl.Call(m, "NeedsMutableSegmentsEvicted") 988 ret0, _ := ret[0].(bool) 989 return ret0 990 } 991 992 // NeedsMutableSegmentsEvicted indicates an expected call of NeedsMutableSegmentsEvicted. 993 func (mr *MockBlockMockRecorder) NeedsMutableSegmentsEvicted() *gomock.Call { 994 mr.mock.ctrl.T.Helper() 995 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NeedsMutableSegmentsEvicted", reflect.TypeOf((*MockBlock)(nil).NeedsMutableSegmentsEvicted)) 996 } 997 998 // QueryIter mocks base method. 999 func (m *MockBlock) QueryIter(ctx context.Context, query Query) (QueryIterator, error) { 1000 m.ctrl.T.Helper() 1001 ret := m.ctrl.Call(m, "QueryIter", ctx, query) 1002 ret0, _ := ret[0].(QueryIterator) 1003 ret1, _ := ret[1].(error) 1004 return ret0, ret1 1005 } 1006 1007 // QueryIter indicates an expected call of QueryIter. 1008 func (mr *MockBlockMockRecorder) QueryIter(ctx, query interface{}) *gomock.Call { 1009 mr.mock.ctrl.T.Helper() 1010 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueryIter", reflect.TypeOf((*MockBlock)(nil).QueryIter), ctx, query) 1011 } 1012 1013 // QueryWithIter mocks base method. 1014 func (m *MockBlock) QueryWithIter(ctx context.Context, opts QueryOptions, iter QueryIterator, results DocumentResults, deadline time.Time, logFields []log.Field) error { 1015 m.ctrl.T.Helper() 1016 ret := m.ctrl.Call(m, "QueryWithIter", ctx, opts, iter, results, deadline, logFields) 1017 ret0, _ := ret[0].(error) 1018 return ret0 1019 } 1020 1021 // QueryWithIter indicates an expected call of QueryWithIter. 1022 func (mr *MockBlockMockRecorder) QueryWithIter(ctx, opts, iter, results, deadline, logFields interface{}) *gomock.Call { 1023 mr.mock.ctrl.T.Helper() 1024 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueryWithIter", reflect.TypeOf((*MockBlock)(nil).QueryWithIter), ctx, opts, iter, results, deadline, logFields) 1025 } 1026 1027 // RotateColdMutableSegments mocks base method. 1028 func (m *MockBlock) RotateColdMutableSegments() error { 1029 m.ctrl.T.Helper() 1030 ret := m.ctrl.Call(m, "RotateColdMutableSegments") 1031 ret0, _ := ret[0].(error) 1032 return ret0 1033 } 1034 1035 // RotateColdMutableSegments indicates an expected call of RotateColdMutableSegments. 1036 func (mr *MockBlockMockRecorder) RotateColdMutableSegments() *gomock.Call { 1037 mr.mock.ctrl.T.Helper() 1038 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RotateColdMutableSegments", reflect.TypeOf((*MockBlock)(nil).RotateColdMutableSegments)) 1039 } 1040 1041 // Seal mocks base method. 1042 func (m *MockBlock) Seal() error { 1043 m.ctrl.T.Helper() 1044 ret := m.ctrl.Call(m, "Seal") 1045 ret0, _ := ret[0].(error) 1046 return ret0 1047 } 1048 1049 // Seal indicates an expected call of Seal. 1050 func (mr *MockBlockMockRecorder) Seal() *gomock.Call { 1051 mr.mock.ctrl.T.Helper() 1052 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Seal", reflect.TypeOf((*MockBlock)(nil).Seal)) 1053 } 1054 1055 // StartTime mocks base method. 1056 func (m *MockBlock) StartTime() time0.UnixNano { 1057 m.ctrl.T.Helper() 1058 ret := m.ctrl.Call(m, "StartTime") 1059 ret0, _ := ret[0].(time0.UnixNano) 1060 return ret0 1061 } 1062 1063 // StartTime indicates an expected call of StartTime. 1064 func (mr *MockBlockMockRecorder) StartTime() *gomock.Call { 1065 mr.mock.ctrl.T.Helper() 1066 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartTime", reflect.TypeOf((*MockBlock)(nil).StartTime)) 1067 } 1068 1069 // Stats mocks base method. 1070 func (m *MockBlock) Stats(reporter BlockStatsReporter) error { 1071 m.ctrl.T.Helper() 1072 ret := m.ctrl.Call(m, "Stats", reporter) 1073 ret0, _ := ret[0].(error) 1074 return ret0 1075 } 1076 1077 // Stats indicates an expected call of Stats. 1078 func (mr *MockBlockMockRecorder) Stats(reporter interface{}) *gomock.Call { 1079 mr.mock.ctrl.T.Helper() 1080 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Stats", reflect.TypeOf((*MockBlock)(nil).Stats), reporter) 1081 } 1082 1083 // Tick mocks base method. 1084 func (m *MockBlock) Tick(c context.Cancellable) (BlockTickResult, error) { 1085 m.ctrl.T.Helper() 1086 ret := m.ctrl.Call(m, "Tick", c) 1087 ret0, _ := ret[0].(BlockTickResult) 1088 ret1, _ := ret[1].(error) 1089 return ret0, ret1 1090 } 1091 1092 // Tick indicates an expected call of Tick. 1093 func (mr *MockBlockMockRecorder) Tick(c interface{}) *gomock.Call { 1094 mr.mock.ctrl.T.Helper() 1095 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Tick", reflect.TypeOf((*MockBlock)(nil).Tick), c) 1096 } 1097 1098 // WriteBatch mocks base method. 1099 func (m *MockBlock) WriteBatch(inserts *WriteBatch) (WriteBatchResult, error) { 1100 m.ctrl.T.Helper() 1101 ret := m.ctrl.Call(m, "WriteBatch", inserts) 1102 ret0, _ := ret[0].(WriteBatchResult) 1103 ret1, _ := ret[1].(error) 1104 return ret0, ret1 1105 } 1106 1107 // WriteBatch indicates an expected call of WriteBatch. 1108 func (mr *MockBlockMockRecorder) WriteBatch(inserts interface{}) *gomock.Call { 1109 mr.mock.ctrl.T.Helper() 1110 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteBatch", reflect.TypeOf((*MockBlock)(nil).WriteBatch), inserts) 1111 } 1112 1113 // MockBlockStatsReporter is a mock of BlockStatsReporter interface. 1114 type MockBlockStatsReporter struct { 1115 ctrl *gomock.Controller 1116 recorder *MockBlockStatsReporterMockRecorder 1117 } 1118 1119 // MockBlockStatsReporterMockRecorder is the mock recorder for MockBlockStatsReporter. 1120 type MockBlockStatsReporterMockRecorder struct { 1121 mock *MockBlockStatsReporter 1122 } 1123 1124 // NewMockBlockStatsReporter creates a new mock instance. 1125 func NewMockBlockStatsReporter(ctrl *gomock.Controller) *MockBlockStatsReporter { 1126 mock := &MockBlockStatsReporter{ctrl: ctrl} 1127 mock.recorder = &MockBlockStatsReporterMockRecorder{mock} 1128 return mock 1129 } 1130 1131 // EXPECT returns an object that allows the caller to indicate expected use. 1132 func (m *MockBlockStatsReporter) EXPECT() *MockBlockStatsReporterMockRecorder { 1133 return m.recorder 1134 } 1135 1136 // ReportIndexingStats mocks base method. 1137 func (m *MockBlockStatsReporter) ReportIndexingStats(stats BlockIndexingStats) { 1138 m.ctrl.T.Helper() 1139 m.ctrl.Call(m, "ReportIndexingStats", stats) 1140 } 1141 1142 // ReportIndexingStats indicates an expected call of ReportIndexingStats. 1143 func (mr *MockBlockStatsReporterMockRecorder) ReportIndexingStats(stats interface{}) *gomock.Call { 1144 mr.mock.ctrl.T.Helper() 1145 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReportIndexingStats", reflect.TypeOf((*MockBlockStatsReporter)(nil).ReportIndexingStats), stats) 1146 } 1147 1148 // ReportSegmentStats mocks base method. 1149 func (m *MockBlockStatsReporter) ReportSegmentStats(stats BlockSegmentStats) { 1150 m.ctrl.T.Helper() 1151 m.ctrl.Call(m, "ReportSegmentStats", stats) 1152 } 1153 1154 // ReportSegmentStats indicates an expected call of ReportSegmentStats. 1155 func (mr *MockBlockStatsReporterMockRecorder) ReportSegmentStats(stats interface{}) *gomock.Call { 1156 mr.mock.ctrl.T.Helper() 1157 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReportSegmentStats", reflect.TypeOf((*MockBlockStatsReporter)(nil).ReportSegmentStats), stats) 1158 } 1159 1160 // MockQueryIterator is a mock of QueryIterator interface. 1161 type MockQueryIterator struct { 1162 ctrl *gomock.Controller 1163 recorder *MockQueryIteratorMockRecorder 1164 } 1165 1166 // MockQueryIteratorMockRecorder is the mock recorder for MockQueryIterator. 1167 type MockQueryIteratorMockRecorder struct { 1168 mock *MockQueryIterator 1169 } 1170 1171 // NewMockQueryIterator creates a new mock instance. 1172 func NewMockQueryIterator(ctrl *gomock.Controller) *MockQueryIterator { 1173 mock := &MockQueryIterator{ctrl: ctrl} 1174 mock.recorder = &MockQueryIteratorMockRecorder{mock} 1175 return mock 1176 } 1177 1178 // EXPECT returns an object that allows the caller to indicate expected use. 1179 func (m *MockQueryIterator) EXPECT() *MockQueryIteratorMockRecorder { 1180 return m.recorder 1181 } 1182 1183 // AddDocs mocks base method. 1184 func (m *MockQueryIterator) AddDocs(count int) { 1185 m.ctrl.T.Helper() 1186 m.ctrl.Call(m, "AddDocs", count) 1187 } 1188 1189 // AddDocs indicates an expected call of AddDocs. 1190 func (mr *MockQueryIteratorMockRecorder) AddDocs(count interface{}) *gomock.Call { 1191 mr.mock.ctrl.T.Helper() 1192 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddDocs", reflect.TypeOf((*MockQueryIterator)(nil).AddDocs), count) 1193 } 1194 1195 // AddSeries mocks base method. 1196 func (m *MockQueryIterator) AddSeries(count int) { 1197 m.ctrl.T.Helper() 1198 m.ctrl.Call(m, "AddSeries", count) 1199 } 1200 1201 // AddSeries indicates an expected call of AddSeries. 1202 func (mr *MockQueryIteratorMockRecorder) AddSeries(count interface{}) *gomock.Call { 1203 mr.mock.ctrl.T.Helper() 1204 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddSeries", reflect.TypeOf((*MockQueryIterator)(nil).AddSeries), count) 1205 } 1206 1207 // Close mocks base method. 1208 func (m *MockQueryIterator) Close() error { 1209 m.ctrl.T.Helper() 1210 ret := m.ctrl.Call(m, "Close") 1211 ret0, _ := ret[0].(error) 1212 return ret0 1213 } 1214 1215 // Close indicates an expected call of Close. 1216 func (mr *MockQueryIteratorMockRecorder) Close() *gomock.Call { 1217 mr.mock.ctrl.T.Helper() 1218 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockQueryIterator)(nil).Close)) 1219 } 1220 1221 // Counts mocks base method. 1222 func (m *MockQueryIterator) Counts() (int, int) { 1223 m.ctrl.T.Helper() 1224 ret := m.ctrl.Call(m, "Counts") 1225 ret0, _ := ret[0].(int) 1226 ret1, _ := ret[1].(int) 1227 return ret0, ret1 1228 } 1229 1230 // Counts indicates an expected call of Counts. 1231 func (mr *MockQueryIteratorMockRecorder) Counts() *gomock.Call { 1232 mr.mock.ctrl.T.Helper() 1233 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Counts", reflect.TypeOf((*MockQueryIterator)(nil).Counts)) 1234 } 1235 1236 // Current mocks base method. 1237 func (m *MockQueryIterator) Current() doc.Document { 1238 m.ctrl.T.Helper() 1239 ret := m.ctrl.Call(m, "Current") 1240 ret0, _ := ret[0].(doc.Document) 1241 return ret0 1242 } 1243 1244 // Current indicates an expected call of Current. 1245 func (mr *MockQueryIteratorMockRecorder) Current() *gomock.Call { 1246 mr.mock.ctrl.T.Helper() 1247 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Current", reflect.TypeOf((*MockQueryIterator)(nil).Current)) 1248 } 1249 1250 // Done mocks base method. 1251 func (m *MockQueryIterator) Done() bool { 1252 m.ctrl.T.Helper() 1253 ret := m.ctrl.Call(m, "Done") 1254 ret0, _ := ret[0].(bool) 1255 return ret0 1256 } 1257 1258 // Done indicates an expected call of Done. 1259 func (mr *MockQueryIteratorMockRecorder) Done() *gomock.Call { 1260 mr.mock.ctrl.T.Helper() 1261 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Done", reflect.TypeOf((*MockQueryIterator)(nil).Done)) 1262 } 1263 1264 // Err mocks base method. 1265 func (m *MockQueryIterator) Err() error { 1266 m.ctrl.T.Helper() 1267 ret := m.ctrl.Call(m, "Err") 1268 ret0, _ := ret[0].(error) 1269 return ret0 1270 } 1271 1272 // Err indicates an expected call of Err. 1273 func (mr *MockQueryIteratorMockRecorder) Err() *gomock.Call { 1274 mr.mock.ctrl.T.Helper() 1275 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Err", reflect.TypeOf((*MockQueryIterator)(nil).Err)) 1276 } 1277 1278 // Next mocks base method. 1279 func (m *MockQueryIterator) Next(ctx context.Context) bool { 1280 m.ctrl.T.Helper() 1281 ret := m.ctrl.Call(m, "Next", ctx) 1282 ret0, _ := ret[0].(bool) 1283 return ret0 1284 } 1285 1286 // Next indicates an expected call of Next. 1287 func (mr *MockQueryIteratorMockRecorder) Next(ctx interface{}) *gomock.Call { 1288 mr.mock.ctrl.T.Helper() 1289 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Next", reflect.TypeOf((*MockQueryIterator)(nil).Next), ctx) 1290 } 1291 1292 // MockAggregateIterator is a mock of AggregateIterator interface. 1293 type MockAggregateIterator struct { 1294 ctrl *gomock.Controller 1295 recorder *MockAggregateIteratorMockRecorder 1296 } 1297 1298 // MockAggregateIteratorMockRecorder is the mock recorder for MockAggregateIterator. 1299 type MockAggregateIteratorMockRecorder struct { 1300 mock *MockAggregateIterator 1301 } 1302 1303 // NewMockAggregateIterator creates a new mock instance. 1304 func NewMockAggregateIterator(ctrl *gomock.Controller) *MockAggregateIterator { 1305 mock := &MockAggregateIterator{ctrl: ctrl} 1306 mock.recorder = &MockAggregateIteratorMockRecorder{mock} 1307 return mock 1308 } 1309 1310 // EXPECT returns an object that allows the caller to indicate expected use. 1311 func (m *MockAggregateIterator) EXPECT() *MockAggregateIteratorMockRecorder { 1312 return m.recorder 1313 } 1314 1315 // AddDocs mocks base method. 1316 func (m *MockAggregateIterator) AddDocs(count int) { 1317 m.ctrl.T.Helper() 1318 m.ctrl.Call(m, "AddDocs", count) 1319 } 1320 1321 // AddDocs indicates an expected call of AddDocs. 1322 func (mr *MockAggregateIteratorMockRecorder) AddDocs(count interface{}) *gomock.Call { 1323 mr.mock.ctrl.T.Helper() 1324 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddDocs", reflect.TypeOf((*MockAggregateIterator)(nil).AddDocs), count) 1325 } 1326 1327 // AddSeries mocks base method. 1328 func (m *MockAggregateIterator) AddSeries(count int) { 1329 m.ctrl.T.Helper() 1330 m.ctrl.Call(m, "AddSeries", count) 1331 } 1332 1333 // AddSeries indicates an expected call of AddSeries. 1334 func (mr *MockAggregateIteratorMockRecorder) AddSeries(count interface{}) *gomock.Call { 1335 mr.mock.ctrl.T.Helper() 1336 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddSeries", reflect.TypeOf((*MockAggregateIterator)(nil).AddSeries), count) 1337 } 1338 1339 // Close mocks base method. 1340 func (m *MockAggregateIterator) Close() error { 1341 m.ctrl.T.Helper() 1342 ret := m.ctrl.Call(m, "Close") 1343 ret0, _ := ret[0].(error) 1344 return ret0 1345 } 1346 1347 // Close indicates an expected call of Close. 1348 func (mr *MockAggregateIteratorMockRecorder) Close() *gomock.Call { 1349 mr.mock.ctrl.T.Helper() 1350 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockAggregateIterator)(nil).Close)) 1351 } 1352 1353 // Counts mocks base method. 1354 func (m *MockAggregateIterator) Counts() (int, int) { 1355 m.ctrl.T.Helper() 1356 ret := m.ctrl.Call(m, "Counts") 1357 ret0, _ := ret[0].(int) 1358 ret1, _ := ret[1].(int) 1359 return ret0, ret1 1360 } 1361 1362 // Counts indicates an expected call of Counts. 1363 func (mr *MockAggregateIteratorMockRecorder) Counts() *gomock.Call { 1364 mr.mock.ctrl.T.Helper() 1365 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Counts", reflect.TypeOf((*MockAggregateIterator)(nil).Counts)) 1366 } 1367 1368 // Current mocks base method. 1369 func (m *MockAggregateIterator) Current() ([]byte, []byte) { 1370 m.ctrl.T.Helper() 1371 ret := m.ctrl.Call(m, "Current") 1372 ret0, _ := ret[0].([]byte) 1373 ret1, _ := ret[1].([]byte) 1374 return ret0, ret1 1375 } 1376 1377 // Current indicates an expected call of Current. 1378 func (mr *MockAggregateIteratorMockRecorder) Current() *gomock.Call { 1379 mr.mock.ctrl.T.Helper() 1380 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Current", reflect.TypeOf((*MockAggregateIterator)(nil).Current)) 1381 } 1382 1383 // Done mocks base method. 1384 func (m *MockAggregateIterator) Done() bool { 1385 m.ctrl.T.Helper() 1386 ret := m.ctrl.Call(m, "Done") 1387 ret0, _ := ret[0].(bool) 1388 return ret0 1389 } 1390 1391 // Done indicates an expected call of Done. 1392 func (mr *MockAggregateIteratorMockRecorder) Done() *gomock.Call { 1393 mr.mock.ctrl.T.Helper() 1394 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Done", reflect.TypeOf((*MockAggregateIterator)(nil).Done)) 1395 } 1396 1397 // Err mocks base method. 1398 func (m *MockAggregateIterator) Err() error { 1399 m.ctrl.T.Helper() 1400 ret := m.ctrl.Call(m, "Err") 1401 ret0, _ := ret[0].(error) 1402 return ret0 1403 } 1404 1405 // Err indicates an expected call of Err. 1406 func (mr *MockAggregateIteratorMockRecorder) Err() *gomock.Call { 1407 mr.mock.ctrl.T.Helper() 1408 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Err", reflect.TypeOf((*MockAggregateIterator)(nil).Err)) 1409 } 1410 1411 // Next mocks base method. 1412 func (m *MockAggregateIterator) Next(ctx context.Context) bool { 1413 m.ctrl.T.Helper() 1414 ret := m.ctrl.Call(m, "Next", ctx) 1415 ret0, _ := ret[0].(bool) 1416 return ret0 1417 } 1418 1419 // Next indicates an expected call of Next. 1420 func (mr *MockAggregateIteratorMockRecorder) Next(ctx interface{}) *gomock.Call { 1421 mr.mock.ctrl.T.Helper() 1422 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Next", reflect.TypeOf((*MockAggregateIterator)(nil).Next), ctx) 1423 } 1424 1425 // fieldsAndTermsIteratorOpts mocks base method. 1426 func (m *MockAggregateIterator) fieldsAndTermsIteratorOpts() fieldsAndTermsIteratorOpts { 1427 m.ctrl.T.Helper() 1428 ret := m.ctrl.Call(m, "fieldsAndTermsIteratorOpts") 1429 ret0, _ := ret[0].(fieldsAndTermsIteratorOpts) 1430 return ret0 1431 } 1432 1433 // fieldsAndTermsIteratorOpts indicates an expected call of fieldsAndTermsIteratorOpts. 1434 func (mr *MockAggregateIteratorMockRecorder) fieldsAndTermsIteratorOpts() *gomock.Call { 1435 mr.mock.ctrl.T.Helper() 1436 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "fieldsAndTermsIteratorOpts", reflect.TypeOf((*MockAggregateIterator)(nil).fieldsAndTermsIteratorOpts)) 1437 } 1438 1439 // MockResultIterator is a mock of ResultIterator interface. 1440 type MockResultIterator struct { 1441 ctrl *gomock.Controller 1442 recorder *MockResultIteratorMockRecorder 1443 } 1444 1445 // MockResultIteratorMockRecorder is the mock recorder for MockResultIterator. 1446 type MockResultIteratorMockRecorder struct { 1447 mock *MockResultIterator 1448 } 1449 1450 // NewMockResultIterator creates a new mock instance. 1451 func NewMockResultIterator(ctrl *gomock.Controller) *MockResultIterator { 1452 mock := &MockResultIterator{ctrl: ctrl} 1453 mock.recorder = &MockResultIteratorMockRecorder{mock} 1454 return mock 1455 } 1456 1457 // EXPECT returns an object that allows the caller to indicate expected use. 1458 func (m *MockResultIterator) EXPECT() *MockResultIteratorMockRecorder { 1459 return m.recorder 1460 } 1461 1462 // AddDocs mocks base method. 1463 func (m *MockResultIterator) AddDocs(count int) { 1464 m.ctrl.T.Helper() 1465 m.ctrl.Call(m, "AddDocs", count) 1466 } 1467 1468 // AddDocs indicates an expected call of AddDocs. 1469 func (mr *MockResultIteratorMockRecorder) AddDocs(count interface{}) *gomock.Call { 1470 mr.mock.ctrl.T.Helper() 1471 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddDocs", reflect.TypeOf((*MockResultIterator)(nil).AddDocs), count) 1472 } 1473 1474 // AddSeries mocks base method. 1475 func (m *MockResultIterator) AddSeries(count int) { 1476 m.ctrl.T.Helper() 1477 m.ctrl.Call(m, "AddSeries", count) 1478 } 1479 1480 // AddSeries indicates an expected call of AddSeries. 1481 func (mr *MockResultIteratorMockRecorder) AddSeries(count interface{}) *gomock.Call { 1482 mr.mock.ctrl.T.Helper() 1483 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddSeries", reflect.TypeOf((*MockResultIterator)(nil).AddSeries), count) 1484 } 1485 1486 // Close mocks base method. 1487 func (m *MockResultIterator) Close() error { 1488 m.ctrl.T.Helper() 1489 ret := m.ctrl.Call(m, "Close") 1490 ret0, _ := ret[0].(error) 1491 return ret0 1492 } 1493 1494 // Close indicates an expected call of Close. 1495 func (mr *MockResultIteratorMockRecorder) Close() *gomock.Call { 1496 mr.mock.ctrl.T.Helper() 1497 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockResultIterator)(nil).Close)) 1498 } 1499 1500 // Counts mocks base method. 1501 func (m *MockResultIterator) Counts() (int, int) { 1502 m.ctrl.T.Helper() 1503 ret := m.ctrl.Call(m, "Counts") 1504 ret0, _ := ret[0].(int) 1505 ret1, _ := ret[1].(int) 1506 return ret0, ret1 1507 } 1508 1509 // Counts indicates an expected call of Counts. 1510 func (mr *MockResultIteratorMockRecorder) Counts() *gomock.Call { 1511 mr.mock.ctrl.T.Helper() 1512 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Counts", reflect.TypeOf((*MockResultIterator)(nil).Counts)) 1513 } 1514 1515 // Done mocks base method. 1516 func (m *MockResultIterator) Done() bool { 1517 m.ctrl.T.Helper() 1518 ret := m.ctrl.Call(m, "Done") 1519 ret0, _ := ret[0].(bool) 1520 return ret0 1521 } 1522 1523 // Done indicates an expected call of Done. 1524 func (mr *MockResultIteratorMockRecorder) Done() *gomock.Call { 1525 mr.mock.ctrl.T.Helper() 1526 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Done", reflect.TypeOf((*MockResultIterator)(nil).Done)) 1527 } 1528 1529 // Err mocks base method. 1530 func (m *MockResultIterator) Err() error { 1531 m.ctrl.T.Helper() 1532 ret := m.ctrl.Call(m, "Err") 1533 ret0, _ := ret[0].(error) 1534 return ret0 1535 } 1536 1537 // Err indicates an expected call of Err. 1538 func (mr *MockResultIteratorMockRecorder) Err() *gomock.Call { 1539 mr.mock.ctrl.T.Helper() 1540 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Err", reflect.TypeOf((*MockResultIterator)(nil).Err)) 1541 } 1542 1543 // Next mocks base method. 1544 func (m *MockResultIterator) Next(ctx context.Context) bool { 1545 m.ctrl.T.Helper() 1546 ret := m.ctrl.Call(m, "Next", ctx) 1547 ret0, _ := ret[0].(bool) 1548 return ret0 1549 } 1550 1551 // Next indicates an expected call of Next. 1552 func (mr *MockResultIteratorMockRecorder) Next(ctx interface{}) *gomock.Call { 1553 mr.mock.ctrl.T.Helper() 1554 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Next", reflect.TypeOf((*MockResultIterator)(nil).Next), ctx) 1555 } 1556 1557 // MockfieldsAndTermsIterator is a mock of fieldsAndTermsIterator interface. 1558 type MockfieldsAndTermsIterator struct { 1559 ctrl *gomock.Controller 1560 recorder *MockfieldsAndTermsIteratorMockRecorder 1561 } 1562 1563 // MockfieldsAndTermsIteratorMockRecorder is the mock recorder for MockfieldsAndTermsIterator. 1564 type MockfieldsAndTermsIteratorMockRecorder struct { 1565 mock *MockfieldsAndTermsIterator 1566 } 1567 1568 // NewMockfieldsAndTermsIterator creates a new mock instance. 1569 func NewMockfieldsAndTermsIterator(ctrl *gomock.Controller) *MockfieldsAndTermsIterator { 1570 mock := &MockfieldsAndTermsIterator{ctrl: ctrl} 1571 mock.recorder = &MockfieldsAndTermsIteratorMockRecorder{mock} 1572 return mock 1573 } 1574 1575 // EXPECT returns an object that allows the caller to indicate expected use. 1576 func (m *MockfieldsAndTermsIterator) EXPECT() *MockfieldsAndTermsIteratorMockRecorder { 1577 return m.recorder 1578 } 1579 1580 // Close mocks base method. 1581 func (m *MockfieldsAndTermsIterator) Close() error { 1582 m.ctrl.T.Helper() 1583 ret := m.ctrl.Call(m, "Close") 1584 ret0, _ := ret[0].(error) 1585 return ret0 1586 } 1587 1588 // Close indicates an expected call of Close. 1589 func (mr *MockfieldsAndTermsIteratorMockRecorder) Close() *gomock.Call { 1590 mr.mock.ctrl.T.Helper() 1591 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockfieldsAndTermsIterator)(nil).Close)) 1592 } 1593 1594 // Current mocks base method. 1595 func (m *MockfieldsAndTermsIterator) Current() ([]byte, []byte) { 1596 m.ctrl.T.Helper() 1597 ret := m.ctrl.Call(m, "Current") 1598 ret0, _ := ret[0].([]byte) 1599 ret1, _ := ret[1].([]byte) 1600 return ret0, ret1 1601 } 1602 1603 // Current indicates an expected call of Current. 1604 func (mr *MockfieldsAndTermsIteratorMockRecorder) Current() *gomock.Call { 1605 mr.mock.ctrl.T.Helper() 1606 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Current", reflect.TypeOf((*MockfieldsAndTermsIterator)(nil).Current)) 1607 } 1608 1609 // Err mocks base method. 1610 func (m *MockfieldsAndTermsIterator) Err() error { 1611 m.ctrl.T.Helper() 1612 ret := m.ctrl.Call(m, "Err") 1613 ret0, _ := ret[0].(error) 1614 return ret0 1615 } 1616 1617 // Err indicates an expected call of Err. 1618 func (mr *MockfieldsAndTermsIteratorMockRecorder) Err() *gomock.Call { 1619 mr.mock.ctrl.T.Helper() 1620 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Err", reflect.TypeOf((*MockfieldsAndTermsIterator)(nil).Err)) 1621 } 1622 1623 // Next mocks base method. 1624 func (m *MockfieldsAndTermsIterator) Next() bool { 1625 m.ctrl.T.Helper() 1626 ret := m.ctrl.Call(m, "Next") 1627 ret0, _ := ret[0].(bool) 1628 return ret0 1629 } 1630 1631 // Next indicates an expected call of Next. 1632 func (mr *MockfieldsAndTermsIteratorMockRecorder) Next() *gomock.Call { 1633 mr.mock.ctrl.T.Helper() 1634 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Next", reflect.TypeOf((*MockfieldsAndTermsIterator)(nil).Next)) 1635 } 1636 1637 // MockOptions is a mock of Options interface. 1638 type MockOptions struct { 1639 ctrl *gomock.Controller 1640 recorder *MockOptionsMockRecorder 1641 } 1642 1643 // MockOptionsMockRecorder is the mock recorder for MockOptions. 1644 type MockOptionsMockRecorder struct { 1645 mock *MockOptions 1646 } 1647 1648 // NewMockOptions creates a new mock instance. 1649 func NewMockOptions(ctrl *gomock.Controller) *MockOptions { 1650 mock := &MockOptions{ctrl: ctrl} 1651 mock.recorder = &MockOptionsMockRecorder{mock} 1652 return mock 1653 } 1654 1655 // EXPECT returns an object that allows the caller to indicate expected use. 1656 func (m *MockOptions) EXPECT() *MockOptionsMockRecorder { 1657 return m.recorder 1658 } 1659 1660 // AggregateResultsEntryArrayPool mocks base method. 1661 func (m *MockOptions) AggregateResultsEntryArrayPool() AggregateResultsEntryArrayPool { 1662 m.ctrl.T.Helper() 1663 ret := m.ctrl.Call(m, "AggregateResultsEntryArrayPool") 1664 ret0, _ := ret[0].(AggregateResultsEntryArrayPool) 1665 return ret0 1666 } 1667 1668 // AggregateResultsEntryArrayPool indicates an expected call of AggregateResultsEntryArrayPool. 1669 func (mr *MockOptionsMockRecorder) AggregateResultsEntryArrayPool() *gomock.Call { 1670 mr.mock.ctrl.T.Helper() 1671 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AggregateResultsEntryArrayPool", reflect.TypeOf((*MockOptions)(nil).AggregateResultsEntryArrayPool)) 1672 } 1673 1674 // AggregateResultsPool mocks base method. 1675 func (m *MockOptions) AggregateResultsPool() AggregateResultsPool { 1676 m.ctrl.T.Helper() 1677 ret := m.ctrl.Call(m, "AggregateResultsPool") 1678 ret0, _ := ret[0].(AggregateResultsPool) 1679 return ret0 1680 } 1681 1682 // AggregateResultsPool indicates an expected call of AggregateResultsPool. 1683 func (mr *MockOptionsMockRecorder) AggregateResultsPool() *gomock.Call { 1684 mr.mock.ctrl.T.Helper() 1685 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AggregateResultsPool", reflect.TypeOf((*MockOptions)(nil).AggregateResultsPool)) 1686 } 1687 1688 // AggregateValuesPool mocks base method. 1689 func (m *MockOptions) AggregateValuesPool() AggregateValuesPool { 1690 m.ctrl.T.Helper() 1691 ret := m.ctrl.Call(m, "AggregateValuesPool") 1692 ret0, _ := ret[0].(AggregateValuesPool) 1693 return ret0 1694 } 1695 1696 // AggregateValuesPool indicates an expected call of AggregateValuesPool. 1697 func (mr *MockOptionsMockRecorder) AggregateValuesPool() *gomock.Call { 1698 mr.mock.ctrl.T.Helper() 1699 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AggregateValuesPool", reflect.TypeOf((*MockOptions)(nil).AggregateValuesPool)) 1700 } 1701 1702 // BackgroundCompactionPlannerOptions mocks base method. 1703 func (m *MockOptions) BackgroundCompactionPlannerOptions() compaction.PlannerOptions { 1704 m.ctrl.T.Helper() 1705 ret := m.ctrl.Call(m, "BackgroundCompactionPlannerOptions") 1706 ret0, _ := ret[0].(compaction.PlannerOptions) 1707 return ret0 1708 } 1709 1710 // BackgroundCompactionPlannerOptions indicates an expected call of BackgroundCompactionPlannerOptions. 1711 func (mr *MockOptionsMockRecorder) BackgroundCompactionPlannerOptions() *gomock.Call { 1712 mr.mock.ctrl.T.Helper() 1713 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BackgroundCompactionPlannerOptions", reflect.TypeOf((*MockOptions)(nil).BackgroundCompactionPlannerOptions)) 1714 } 1715 1716 // CheckedBytesPool mocks base method. 1717 func (m *MockOptions) CheckedBytesPool() pool.CheckedBytesPool { 1718 m.ctrl.T.Helper() 1719 ret := m.ctrl.Call(m, "CheckedBytesPool") 1720 ret0, _ := ret[0].(pool.CheckedBytesPool) 1721 return ret0 1722 } 1723 1724 // CheckedBytesPool indicates an expected call of CheckedBytesPool. 1725 func (mr *MockOptionsMockRecorder) CheckedBytesPool() *gomock.Call { 1726 mr.mock.ctrl.T.Helper() 1727 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CheckedBytesPool", reflect.TypeOf((*MockOptions)(nil).CheckedBytesPool)) 1728 } 1729 1730 // ClockOptions mocks base method. 1731 func (m *MockOptions) ClockOptions() clock.Options { 1732 m.ctrl.T.Helper() 1733 ret := m.ctrl.Call(m, "ClockOptions") 1734 ret0, _ := ret[0].(clock.Options) 1735 return ret0 1736 } 1737 1738 // ClockOptions indicates an expected call of ClockOptions. 1739 func (mr *MockOptionsMockRecorder) ClockOptions() *gomock.Call { 1740 mr.mock.ctrl.T.Helper() 1741 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClockOptions", reflect.TypeOf((*MockOptions)(nil).ClockOptions)) 1742 } 1743 1744 // DocumentArrayPool mocks base method. 1745 func (m *MockOptions) DocumentArrayPool() doc.DocumentArrayPool { 1746 m.ctrl.T.Helper() 1747 ret := m.ctrl.Call(m, "DocumentArrayPool") 1748 ret0, _ := ret[0].(doc.DocumentArrayPool) 1749 return ret0 1750 } 1751 1752 // DocumentArrayPool indicates an expected call of DocumentArrayPool. 1753 func (mr *MockOptionsMockRecorder) DocumentArrayPool() *gomock.Call { 1754 mr.mock.ctrl.T.Helper() 1755 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DocumentArrayPool", reflect.TypeOf((*MockOptions)(nil).DocumentArrayPool)) 1756 } 1757 1758 // FSTSegmentOptions mocks base method. 1759 func (m *MockOptions) FSTSegmentOptions() fst.Options { 1760 m.ctrl.T.Helper() 1761 ret := m.ctrl.Call(m, "FSTSegmentOptions") 1762 ret0, _ := ret[0].(fst.Options) 1763 return ret0 1764 } 1765 1766 // FSTSegmentOptions indicates an expected call of FSTSegmentOptions. 1767 func (mr *MockOptionsMockRecorder) FSTSegmentOptions() *gomock.Call { 1768 mr.mock.ctrl.T.Helper() 1769 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FSTSegmentOptions", reflect.TypeOf((*MockOptions)(nil).FSTSegmentOptions)) 1770 } 1771 1772 // ForegroundCompactionPlannerOptions mocks base method. 1773 func (m *MockOptions) ForegroundCompactionPlannerOptions() compaction.PlannerOptions { 1774 m.ctrl.T.Helper() 1775 ret := m.ctrl.Call(m, "ForegroundCompactionPlannerOptions") 1776 ret0, _ := ret[0].(compaction.PlannerOptions) 1777 return ret0 1778 } 1779 1780 // ForegroundCompactionPlannerOptions indicates an expected call of ForegroundCompactionPlannerOptions. 1781 func (mr *MockOptionsMockRecorder) ForegroundCompactionPlannerOptions() *gomock.Call { 1782 mr.mock.ctrl.T.Helper() 1783 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ForegroundCompactionPlannerOptions", reflect.TypeOf((*MockOptions)(nil).ForegroundCompactionPlannerOptions)) 1784 } 1785 1786 // ForwardIndexProbability mocks base method. 1787 func (m *MockOptions) ForwardIndexProbability() float64 { 1788 m.ctrl.T.Helper() 1789 ret := m.ctrl.Call(m, "ForwardIndexProbability") 1790 ret0, _ := ret[0].(float64) 1791 return ret0 1792 } 1793 1794 // ForwardIndexProbability indicates an expected call of ForwardIndexProbability. 1795 func (mr *MockOptionsMockRecorder) ForwardIndexProbability() *gomock.Call { 1796 mr.mock.ctrl.T.Helper() 1797 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ForwardIndexProbability", reflect.TypeOf((*MockOptions)(nil).ForwardIndexProbability)) 1798 } 1799 1800 // ForwardIndexThreshold mocks base method. 1801 func (m *MockOptions) ForwardIndexThreshold() float64 { 1802 m.ctrl.T.Helper() 1803 ret := m.ctrl.Call(m, "ForwardIndexThreshold") 1804 ret0, _ := ret[0].(float64) 1805 return ret0 1806 } 1807 1808 // ForwardIndexThreshold indicates an expected call of ForwardIndexThreshold. 1809 func (mr *MockOptionsMockRecorder) ForwardIndexThreshold() *gomock.Call { 1810 mr.mock.ctrl.T.Helper() 1811 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ForwardIndexThreshold", reflect.TypeOf((*MockOptions)(nil).ForwardIndexThreshold)) 1812 } 1813 1814 // IdentifierPool mocks base method. 1815 func (m *MockOptions) IdentifierPool() ident.Pool { 1816 m.ctrl.T.Helper() 1817 ret := m.ctrl.Call(m, "IdentifierPool") 1818 ret0, _ := ret[0].(ident.Pool) 1819 return ret0 1820 } 1821 1822 // IdentifierPool indicates an expected call of IdentifierPool. 1823 func (mr *MockOptionsMockRecorder) IdentifierPool() *gomock.Call { 1824 mr.mock.ctrl.T.Helper() 1825 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IdentifierPool", reflect.TypeOf((*MockOptions)(nil).IdentifierPool)) 1826 } 1827 1828 // InsertMode mocks base method. 1829 func (m *MockOptions) InsertMode() InsertMode { 1830 m.ctrl.T.Helper() 1831 ret := m.ctrl.Call(m, "InsertMode") 1832 ret0, _ := ret[0].(InsertMode) 1833 return ret0 1834 } 1835 1836 // InsertMode indicates an expected call of InsertMode. 1837 func (mr *MockOptionsMockRecorder) InsertMode() *gomock.Call { 1838 mr.mock.ctrl.T.Helper() 1839 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsertMode", reflect.TypeOf((*MockOptions)(nil).InsertMode)) 1840 } 1841 1842 // InstrumentOptions mocks base method. 1843 func (m *MockOptions) InstrumentOptions() instrument.Options { 1844 m.ctrl.T.Helper() 1845 ret := m.ctrl.Call(m, "InstrumentOptions") 1846 ret0, _ := ret[0].(instrument.Options) 1847 return ret0 1848 } 1849 1850 // InstrumentOptions indicates an expected call of InstrumentOptions. 1851 func (mr *MockOptionsMockRecorder) InstrumentOptions() *gomock.Call { 1852 mr.mock.ctrl.T.Helper() 1853 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InstrumentOptions", reflect.TypeOf((*MockOptions)(nil).InstrumentOptions)) 1854 } 1855 1856 // MemSegmentOptions mocks base method. 1857 func (m *MockOptions) MemSegmentOptions() mem.Options { 1858 m.ctrl.T.Helper() 1859 ret := m.ctrl.Call(m, "MemSegmentOptions") 1860 ret0, _ := ret[0].(mem.Options) 1861 return ret0 1862 } 1863 1864 // MemSegmentOptions indicates an expected call of MemSegmentOptions. 1865 func (mr *MockOptionsMockRecorder) MemSegmentOptions() *gomock.Call { 1866 mr.mock.ctrl.T.Helper() 1867 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MemSegmentOptions", reflect.TypeOf((*MockOptions)(nil).MemSegmentOptions)) 1868 } 1869 1870 // MetadataArrayPool mocks base method. 1871 func (m *MockOptions) MetadataArrayPool() doc.MetadataArrayPool { 1872 m.ctrl.T.Helper() 1873 ret := m.ctrl.Call(m, "MetadataArrayPool") 1874 ret0, _ := ret[0].(doc.MetadataArrayPool) 1875 return ret0 1876 } 1877 1878 // MetadataArrayPool indicates an expected call of MetadataArrayPool. 1879 func (mr *MockOptionsMockRecorder) MetadataArrayPool() *gomock.Call { 1880 mr.mock.ctrl.T.Helper() 1881 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MetadataArrayPool", reflect.TypeOf((*MockOptions)(nil).MetadataArrayPool)) 1882 } 1883 1884 // MmapReporter mocks base method. 1885 func (m *MockOptions) MmapReporter() mmap.Reporter { 1886 m.ctrl.T.Helper() 1887 ret := m.ctrl.Call(m, "MmapReporter") 1888 ret0, _ := ret[0].(mmap.Reporter) 1889 return ret0 1890 } 1891 1892 // MmapReporter indicates an expected call of MmapReporter. 1893 func (mr *MockOptionsMockRecorder) MmapReporter() *gomock.Call { 1894 mr.mock.ctrl.T.Helper() 1895 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MmapReporter", reflect.TypeOf((*MockOptions)(nil).MmapReporter)) 1896 } 1897 1898 // PostingsListCache mocks base method. 1899 func (m *MockOptions) PostingsListCache() *PostingsListCache { 1900 m.ctrl.T.Helper() 1901 ret := m.ctrl.Call(m, "PostingsListCache") 1902 ret0, _ := ret[0].(*PostingsListCache) 1903 return ret0 1904 } 1905 1906 // PostingsListCache indicates an expected call of PostingsListCache. 1907 func (mr *MockOptionsMockRecorder) PostingsListCache() *gomock.Call { 1908 mr.mock.ctrl.T.Helper() 1909 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PostingsListCache", reflect.TypeOf((*MockOptions)(nil).PostingsListCache)) 1910 } 1911 1912 // QueryLimits mocks base method. 1913 func (m *MockOptions) QueryLimits() limits.QueryLimits { 1914 m.ctrl.T.Helper() 1915 ret := m.ctrl.Call(m, "QueryLimits") 1916 ret0, _ := ret[0].(limits.QueryLimits) 1917 return ret0 1918 } 1919 1920 // QueryLimits indicates an expected call of QueryLimits. 1921 func (mr *MockOptionsMockRecorder) QueryLimits() *gomock.Call { 1922 mr.mock.ctrl.T.Helper() 1923 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueryLimits", reflect.TypeOf((*MockOptions)(nil).QueryLimits)) 1924 } 1925 1926 // QueryResultsPool mocks base method. 1927 func (m *MockOptions) QueryResultsPool() QueryResultsPool { 1928 m.ctrl.T.Helper() 1929 ret := m.ctrl.Call(m, "QueryResultsPool") 1930 ret0, _ := ret[0].(QueryResultsPool) 1931 return ret0 1932 } 1933 1934 // QueryResultsPool indicates an expected call of QueryResultsPool. 1935 func (mr *MockOptionsMockRecorder) QueryResultsPool() *gomock.Call { 1936 mr.mock.ctrl.T.Helper() 1937 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueryResultsPool", reflect.TypeOf((*MockOptions)(nil).QueryResultsPool)) 1938 } 1939 1940 // ReadThroughSegmentOptions mocks base method. 1941 func (m *MockOptions) ReadThroughSegmentOptions() ReadThroughSegmentOptions { 1942 m.ctrl.T.Helper() 1943 ret := m.ctrl.Call(m, "ReadThroughSegmentOptions") 1944 ret0, _ := ret[0].(ReadThroughSegmentOptions) 1945 return ret0 1946 } 1947 1948 // ReadThroughSegmentOptions indicates an expected call of ReadThroughSegmentOptions. 1949 func (mr *MockOptionsMockRecorder) ReadThroughSegmentOptions() *gomock.Call { 1950 mr.mock.ctrl.T.Helper() 1951 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadThroughSegmentOptions", reflect.TypeOf((*MockOptions)(nil).ReadThroughSegmentOptions)) 1952 } 1953 1954 // SearchPostingsListCache mocks base method. 1955 func (m *MockOptions) SearchPostingsListCache() *PostingsListCache { 1956 m.ctrl.T.Helper() 1957 ret := m.ctrl.Call(m, "SearchPostingsListCache") 1958 ret0, _ := ret[0].(*PostingsListCache) 1959 return ret0 1960 } 1961 1962 // SearchPostingsListCache indicates an expected call of SearchPostingsListCache. 1963 func (mr *MockOptionsMockRecorder) SearchPostingsListCache() *gomock.Call { 1964 mr.mock.ctrl.T.Helper() 1965 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SearchPostingsListCache", reflect.TypeOf((*MockOptions)(nil).SearchPostingsListCache)) 1966 } 1967 1968 // SegmentBuilderOptions mocks base method. 1969 func (m *MockOptions) SegmentBuilderOptions() builder.Options { 1970 m.ctrl.T.Helper() 1971 ret := m.ctrl.Call(m, "SegmentBuilderOptions") 1972 ret0, _ := ret[0].(builder.Options) 1973 return ret0 1974 } 1975 1976 // SegmentBuilderOptions indicates an expected call of SegmentBuilderOptions. 1977 func (mr *MockOptionsMockRecorder) SegmentBuilderOptions() *gomock.Call { 1978 mr.mock.ctrl.T.Helper() 1979 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SegmentBuilderOptions", reflect.TypeOf((*MockOptions)(nil).SegmentBuilderOptions)) 1980 } 1981 1982 // SetAggregateResultsEntryArrayPool mocks base method. 1983 func (m *MockOptions) SetAggregateResultsEntryArrayPool(value AggregateResultsEntryArrayPool) Options { 1984 m.ctrl.T.Helper() 1985 ret := m.ctrl.Call(m, "SetAggregateResultsEntryArrayPool", value) 1986 ret0, _ := ret[0].(Options) 1987 return ret0 1988 } 1989 1990 // SetAggregateResultsEntryArrayPool indicates an expected call of SetAggregateResultsEntryArrayPool. 1991 func (mr *MockOptionsMockRecorder) SetAggregateResultsEntryArrayPool(value interface{}) *gomock.Call { 1992 mr.mock.ctrl.T.Helper() 1993 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetAggregateResultsEntryArrayPool", reflect.TypeOf((*MockOptions)(nil).SetAggregateResultsEntryArrayPool), value) 1994 } 1995 1996 // SetAggregateResultsPool mocks base method. 1997 func (m *MockOptions) SetAggregateResultsPool(values AggregateResultsPool) Options { 1998 m.ctrl.T.Helper() 1999 ret := m.ctrl.Call(m, "SetAggregateResultsPool", values) 2000 ret0, _ := ret[0].(Options) 2001 return ret0 2002 } 2003 2004 // SetAggregateResultsPool indicates an expected call of SetAggregateResultsPool. 2005 func (mr *MockOptionsMockRecorder) SetAggregateResultsPool(values interface{}) *gomock.Call { 2006 mr.mock.ctrl.T.Helper() 2007 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetAggregateResultsPool", reflect.TypeOf((*MockOptions)(nil).SetAggregateResultsPool), values) 2008 } 2009 2010 // SetAggregateValuesPool mocks base method. 2011 func (m *MockOptions) SetAggregateValuesPool(values AggregateValuesPool) Options { 2012 m.ctrl.T.Helper() 2013 ret := m.ctrl.Call(m, "SetAggregateValuesPool", values) 2014 ret0, _ := ret[0].(Options) 2015 return ret0 2016 } 2017 2018 // SetAggregateValuesPool indicates an expected call of SetAggregateValuesPool. 2019 func (mr *MockOptionsMockRecorder) SetAggregateValuesPool(values interface{}) *gomock.Call { 2020 mr.mock.ctrl.T.Helper() 2021 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetAggregateValuesPool", reflect.TypeOf((*MockOptions)(nil).SetAggregateValuesPool), values) 2022 } 2023 2024 // SetBackgroundCompactionPlannerOptions mocks base method. 2025 func (m *MockOptions) SetBackgroundCompactionPlannerOptions(v compaction.PlannerOptions) Options { 2026 m.ctrl.T.Helper() 2027 ret := m.ctrl.Call(m, "SetBackgroundCompactionPlannerOptions", v) 2028 ret0, _ := ret[0].(Options) 2029 return ret0 2030 } 2031 2032 // SetBackgroundCompactionPlannerOptions indicates an expected call of SetBackgroundCompactionPlannerOptions. 2033 func (mr *MockOptionsMockRecorder) SetBackgroundCompactionPlannerOptions(v interface{}) *gomock.Call { 2034 mr.mock.ctrl.T.Helper() 2035 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetBackgroundCompactionPlannerOptions", reflect.TypeOf((*MockOptions)(nil).SetBackgroundCompactionPlannerOptions), v) 2036 } 2037 2038 // SetCheckedBytesPool mocks base method. 2039 func (m *MockOptions) SetCheckedBytesPool(value pool.CheckedBytesPool) Options { 2040 m.ctrl.T.Helper() 2041 ret := m.ctrl.Call(m, "SetCheckedBytesPool", value) 2042 ret0, _ := ret[0].(Options) 2043 return ret0 2044 } 2045 2046 // SetCheckedBytesPool indicates an expected call of SetCheckedBytesPool. 2047 func (mr *MockOptionsMockRecorder) SetCheckedBytesPool(value interface{}) *gomock.Call { 2048 mr.mock.ctrl.T.Helper() 2049 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetCheckedBytesPool", reflect.TypeOf((*MockOptions)(nil).SetCheckedBytesPool), value) 2050 } 2051 2052 // SetClockOptions mocks base method. 2053 func (m *MockOptions) SetClockOptions(value clock.Options) Options { 2054 m.ctrl.T.Helper() 2055 ret := m.ctrl.Call(m, "SetClockOptions", value) 2056 ret0, _ := ret[0].(Options) 2057 return ret0 2058 } 2059 2060 // SetClockOptions indicates an expected call of SetClockOptions. 2061 func (mr *MockOptionsMockRecorder) SetClockOptions(value interface{}) *gomock.Call { 2062 mr.mock.ctrl.T.Helper() 2063 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetClockOptions", reflect.TypeOf((*MockOptions)(nil).SetClockOptions), value) 2064 } 2065 2066 // SetDocumentArrayPool mocks base method. 2067 func (m *MockOptions) SetDocumentArrayPool(value doc.DocumentArrayPool) Options { 2068 m.ctrl.T.Helper() 2069 ret := m.ctrl.Call(m, "SetDocumentArrayPool", value) 2070 ret0, _ := ret[0].(Options) 2071 return ret0 2072 } 2073 2074 // SetDocumentArrayPool indicates an expected call of SetDocumentArrayPool. 2075 func (mr *MockOptionsMockRecorder) SetDocumentArrayPool(value interface{}) *gomock.Call { 2076 mr.mock.ctrl.T.Helper() 2077 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetDocumentArrayPool", reflect.TypeOf((*MockOptions)(nil).SetDocumentArrayPool), value) 2078 } 2079 2080 // SetFSTSegmentOptions mocks base method. 2081 func (m *MockOptions) SetFSTSegmentOptions(value fst.Options) Options { 2082 m.ctrl.T.Helper() 2083 ret := m.ctrl.Call(m, "SetFSTSegmentOptions", value) 2084 ret0, _ := ret[0].(Options) 2085 return ret0 2086 } 2087 2088 // SetFSTSegmentOptions indicates an expected call of SetFSTSegmentOptions. 2089 func (mr *MockOptionsMockRecorder) SetFSTSegmentOptions(value interface{}) *gomock.Call { 2090 mr.mock.ctrl.T.Helper() 2091 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetFSTSegmentOptions", reflect.TypeOf((*MockOptions)(nil).SetFSTSegmentOptions), value) 2092 } 2093 2094 // SetForegroundCompactionPlannerOptions mocks base method. 2095 func (m *MockOptions) SetForegroundCompactionPlannerOptions(v compaction.PlannerOptions) Options { 2096 m.ctrl.T.Helper() 2097 ret := m.ctrl.Call(m, "SetForegroundCompactionPlannerOptions", v) 2098 ret0, _ := ret[0].(Options) 2099 return ret0 2100 } 2101 2102 // SetForegroundCompactionPlannerOptions indicates an expected call of SetForegroundCompactionPlannerOptions. 2103 func (mr *MockOptionsMockRecorder) SetForegroundCompactionPlannerOptions(v interface{}) *gomock.Call { 2104 mr.mock.ctrl.T.Helper() 2105 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetForegroundCompactionPlannerOptions", reflect.TypeOf((*MockOptions)(nil).SetForegroundCompactionPlannerOptions), v) 2106 } 2107 2108 // SetForwardIndexProbability mocks base method. 2109 func (m *MockOptions) SetForwardIndexProbability(value float64) Options { 2110 m.ctrl.T.Helper() 2111 ret := m.ctrl.Call(m, "SetForwardIndexProbability", value) 2112 ret0, _ := ret[0].(Options) 2113 return ret0 2114 } 2115 2116 // SetForwardIndexProbability indicates an expected call of SetForwardIndexProbability. 2117 func (mr *MockOptionsMockRecorder) SetForwardIndexProbability(value interface{}) *gomock.Call { 2118 mr.mock.ctrl.T.Helper() 2119 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetForwardIndexProbability", reflect.TypeOf((*MockOptions)(nil).SetForwardIndexProbability), value) 2120 } 2121 2122 // SetForwardIndexThreshold mocks base method. 2123 func (m *MockOptions) SetForwardIndexThreshold(value float64) Options { 2124 m.ctrl.T.Helper() 2125 ret := m.ctrl.Call(m, "SetForwardIndexThreshold", value) 2126 ret0, _ := ret[0].(Options) 2127 return ret0 2128 } 2129 2130 // SetForwardIndexThreshold indicates an expected call of SetForwardIndexThreshold. 2131 func (mr *MockOptionsMockRecorder) SetForwardIndexThreshold(value interface{}) *gomock.Call { 2132 mr.mock.ctrl.T.Helper() 2133 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetForwardIndexThreshold", reflect.TypeOf((*MockOptions)(nil).SetForwardIndexThreshold), value) 2134 } 2135 2136 // SetIdentifierPool mocks base method. 2137 func (m *MockOptions) SetIdentifierPool(value ident.Pool) Options { 2138 m.ctrl.T.Helper() 2139 ret := m.ctrl.Call(m, "SetIdentifierPool", value) 2140 ret0, _ := ret[0].(Options) 2141 return ret0 2142 } 2143 2144 // SetIdentifierPool indicates an expected call of SetIdentifierPool. 2145 func (mr *MockOptionsMockRecorder) SetIdentifierPool(value interface{}) *gomock.Call { 2146 mr.mock.ctrl.T.Helper() 2147 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetIdentifierPool", reflect.TypeOf((*MockOptions)(nil).SetIdentifierPool), value) 2148 } 2149 2150 // SetInsertMode mocks base method. 2151 func (m *MockOptions) SetInsertMode(value InsertMode) Options { 2152 m.ctrl.T.Helper() 2153 ret := m.ctrl.Call(m, "SetInsertMode", value) 2154 ret0, _ := ret[0].(Options) 2155 return ret0 2156 } 2157 2158 // SetInsertMode indicates an expected call of SetInsertMode. 2159 func (mr *MockOptionsMockRecorder) SetInsertMode(value interface{}) *gomock.Call { 2160 mr.mock.ctrl.T.Helper() 2161 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetInsertMode", reflect.TypeOf((*MockOptions)(nil).SetInsertMode), value) 2162 } 2163 2164 // SetInstrumentOptions mocks base method. 2165 func (m *MockOptions) SetInstrumentOptions(value instrument.Options) Options { 2166 m.ctrl.T.Helper() 2167 ret := m.ctrl.Call(m, "SetInstrumentOptions", value) 2168 ret0, _ := ret[0].(Options) 2169 return ret0 2170 } 2171 2172 // SetInstrumentOptions indicates an expected call of SetInstrumentOptions. 2173 func (mr *MockOptionsMockRecorder) SetInstrumentOptions(value interface{}) *gomock.Call { 2174 mr.mock.ctrl.T.Helper() 2175 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetInstrumentOptions", reflect.TypeOf((*MockOptions)(nil).SetInstrumentOptions), value) 2176 } 2177 2178 // SetMemSegmentOptions mocks base method. 2179 func (m *MockOptions) SetMemSegmentOptions(value mem.Options) Options { 2180 m.ctrl.T.Helper() 2181 ret := m.ctrl.Call(m, "SetMemSegmentOptions", value) 2182 ret0, _ := ret[0].(Options) 2183 return ret0 2184 } 2185 2186 // SetMemSegmentOptions indicates an expected call of SetMemSegmentOptions. 2187 func (mr *MockOptionsMockRecorder) SetMemSegmentOptions(value interface{}) *gomock.Call { 2188 mr.mock.ctrl.T.Helper() 2189 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetMemSegmentOptions", reflect.TypeOf((*MockOptions)(nil).SetMemSegmentOptions), value) 2190 } 2191 2192 // SetMetadataArrayPool mocks base method. 2193 func (m *MockOptions) SetMetadataArrayPool(value doc.MetadataArrayPool) Options { 2194 m.ctrl.T.Helper() 2195 ret := m.ctrl.Call(m, "SetMetadataArrayPool", value) 2196 ret0, _ := ret[0].(Options) 2197 return ret0 2198 } 2199 2200 // SetMetadataArrayPool indicates an expected call of SetMetadataArrayPool. 2201 func (mr *MockOptionsMockRecorder) SetMetadataArrayPool(value interface{}) *gomock.Call { 2202 mr.mock.ctrl.T.Helper() 2203 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetMetadataArrayPool", reflect.TypeOf((*MockOptions)(nil).SetMetadataArrayPool), value) 2204 } 2205 2206 // SetMmapReporter mocks base method. 2207 func (m *MockOptions) SetMmapReporter(mmapReporter mmap.Reporter) Options { 2208 m.ctrl.T.Helper() 2209 ret := m.ctrl.Call(m, "SetMmapReporter", mmapReporter) 2210 ret0, _ := ret[0].(Options) 2211 return ret0 2212 } 2213 2214 // SetMmapReporter indicates an expected call of SetMmapReporter. 2215 func (mr *MockOptionsMockRecorder) SetMmapReporter(mmapReporter interface{}) *gomock.Call { 2216 mr.mock.ctrl.T.Helper() 2217 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetMmapReporter", reflect.TypeOf((*MockOptions)(nil).SetMmapReporter), mmapReporter) 2218 } 2219 2220 // SetPostingsListCache mocks base method. 2221 func (m *MockOptions) SetPostingsListCache(value *PostingsListCache) Options { 2222 m.ctrl.T.Helper() 2223 ret := m.ctrl.Call(m, "SetPostingsListCache", value) 2224 ret0, _ := ret[0].(Options) 2225 return ret0 2226 } 2227 2228 // SetPostingsListCache indicates an expected call of SetPostingsListCache. 2229 func (mr *MockOptionsMockRecorder) SetPostingsListCache(value interface{}) *gomock.Call { 2230 mr.mock.ctrl.T.Helper() 2231 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetPostingsListCache", reflect.TypeOf((*MockOptions)(nil).SetPostingsListCache), value) 2232 } 2233 2234 // SetQueryLimits mocks base method. 2235 func (m *MockOptions) SetQueryLimits(value limits.QueryLimits) Options { 2236 m.ctrl.T.Helper() 2237 ret := m.ctrl.Call(m, "SetQueryLimits", value) 2238 ret0, _ := ret[0].(Options) 2239 return ret0 2240 } 2241 2242 // SetQueryLimits indicates an expected call of SetQueryLimits. 2243 func (mr *MockOptionsMockRecorder) SetQueryLimits(value interface{}) *gomock.Call { 2244 mr.mock.ctrl.T.Helper() 2245 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetQueryLimits", reflect.TypeOf((*MockOptions)(nil).SetQueryLimits), value) 2246 } 2247 2248 // SetQueryResultsPool mocks base method. 2249 func (m *MockOptions) SetQueryResultsPool(values QueryResultsPool) Options { 2250 m.ctrl.T.Helper() 2251 ret := m.ctrl.Call(m, "SetQueryResultsPool", values) 2252 ret0, _ := ret[0].(Options) 2253 return ret0 2254 } 2255 2256 // SetQueryResultsPool indicates an expected call of SetQueryResultsPool. 2257 func (mr *MockOptionsMockRecorder) SetQueryResultsPool(values interface{}) *gomock.Call { 2258 mr.mock.ctrl.T.Helper() 2259 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetQueryResultsPool", reflect.TypeOf((*MockOptions)(nil).SetQueryResultsPool), values) 2260 } 2261 2262 // SetReadThroughSegmentOptions mocks base method. 2263 func (m *MockOptions) SetReadThroughSegmentOptions(value ReadThroughSegmentOptions) Options { 2264 m.ctrl.T.Helper() 2265 ret := m.ctrl.Call(m, "SetReadThroughSegmentOptions", value) 2266 ret0, _ := ret[0].(Options) 2267 return ret0 2268 } 2269 2270 // SetReadThroughSegmentOptions indicates an expected call of SetReadThroughSegmentOptions. 2271 func (mr *MockOptionsMockRecorder) SetReadThroughSegmentOptions(value interface{}) *gomock.Call { 2272 mr.mock.ctrl.T.Helper() 2273 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetReadThroughSegmentOptions", reflect.TypeOf((*MockOptions)(nil).SetReadThroughSegmentOptions), value) 2274 } 2275 2276 // SetSearchPostingsListCache mocks base method. 2277 func (m *MockOptions) SetSearchPostingsListCache(value *PostingsListCache) Options { 2278 m.ctrl.T.Helper() 2279 ret := m.ctrl.Call(m, "SetSearchPostingsListCache", value) 2280 ret0, _ := ret[0].(Options) 2281 return ret0 2282 } 2283 2284 // SetSearchPostingsListCache indicates an expected call of SetSearchPostingsListCache. 2285 func (mr *MockOptionsMockRecorder) SetSearchPostingsListCache(value interface{}) *gomock.Call { 2286 mr.mock.ctrl.T.Helper() 2287 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetSearchPostingsListCache", reflect.TypeOf((*MockOptions)(nil).SetSearchPostingsListCache), value) 2288 } 2289 2290 // SetSegmentBuilderOptions mocks base method. 2291 func (m *MockOptions) SetSegmentBuilderOptions(value builder.Options) Options { 2292 m.ctrl.T.Helper() 2293 ret := m.ctrl.Call(m, "SetSegmentBuilderOptions", value) 2294 ret0, _ := ret[0].(Options) 2295 return ret0 2296 } 2297 2298 // SetSegmentBuilderOptions indicates an expected call of SetSegmentBuilderOptions. 2299 func (mr *MockOptionsMockRecorder) SetSegmentBuilderOptions(value interface{}) *gomock.Call { 2300 mr.mock.ctrl.T.Helper() 2301 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetSegmentBuilderOptions", reflect.TypeOf((*MockOptions)(nil).SetSegmentBuilderOptions), value) 2302 } 2303 2304 // Validate mocks base method. 2305 func (m *MockOptions) Validate() error { 2306 m.ctrl.T.Helper() 2307 ret := m.ctrl.Call(m, "Validate") 2308 ret0, _ := ret[0].(error) 2309 return ret0 2310 } 2311 2312 // Validate indicates an expected call of Validate. 2313 func (mr *MockOptionsMockRecorder) Validate() *gomock.Call { 2314 mr.mock.ctrl.T.Helper() 2315 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Validate", reflect.TypeOf((*MockOptions)(nil).Validate)) 2316 }