github.com/m3db/m3@v1.5.0/src/dbnode/storage/storage_mock.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/m3db/m3/src/dbnode/storage/types.go
     3  
     4  // Copyright (c) 2022 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 storage is a generated GoMock package.
    25  package storage
    26  
    27  import (
    28  	"reflect"
    29  	"sync"
    30  	"time"
    31  
    32  	"github.com/m3db/m3/src/dbnode/client"
    33  	"github.com/m3db/m3/src/dbnode/encoding"
    34  	"github.com/m3db/m3/src/dbnode/namespace"
    35  	"github.com/m3db/m3/src/dbnode/persist"
    36  	"github.com/m3db/m3/src/dbnode/persist/fs"
    37  	"github.com/m3db/m3/src/dbnode/persist/fs/commitlog"
    38  	"github.com/m3db/m3/src/dbnode/runtime"
    39  	"github.com/m3db/m3/src/dbnode/sharding"
    40  	"github.com/m3db/m3/src/dbnode/storage/block"
    41  	"github.com/m3db/m3/src/dbnode/storage/bootstrap"
    42  	"github.com/m3db/m3/src/dbnode/storage/bootstrap/result"
    43  	"github.com/m3db/m3/src/dbnode/storage/index"
    44  	"github.com/m3db/m3/src/dbnode/storage/index/convert"
    45  	"github.com/m3db/m3/src/dbnode/storage/limits"
    46  	"github.com/m3db/m3/src/dbnode/storage/limits/permits"
    47  	"github.com/m3db/m3/src/dbnode/storage/repair"
    48  	"github.com/m3db/m3/src/dbnode/storage/series"
    49  	"github.com/m3db/m3/src/dbnode/ts/writes"
    50  	"github.com/m3db/m3/src/dbnode/x/xio"
    51  	"github.com/m3db/m3/src/dbnode/x/xpool"
    52  	"github.com/m3db/m3/src/m3ninx/doc"
    53  	"github.com/m3db/m3/src/x/clock"
    54  	"github.com/m3db/m3/src/x/context"
    55  	"github.com/m3db/m3/src/x/ident"
    56  	"github.com/m3db/m3/src/x/instrument"
    57  	"github.com/m3db/m3/src/x/mmap"
    58  	"github.com/m3db/m3/src/x/pool"
    59  	sync0 "github.com/m3db/m3/src/x/sync"
    60  	time0 "github.com/m3db/m3/src/x/time"
    61  
    62  	"github.com/golang/mock/gomock"
    63  )
    64  
    65  // MockIndexedErrorHandler is a mock of IndexedErrorHandler interface.
    66  type MockIndexedErrorHandler struct {
    67  	ctrl     *gomock.Controller
    68  	recorder *MockIndexedErrorHandlerMockRecorder
    69  }
    70  
    71  // MockIndexedErrorHandlerMockRecorder is the mock recorder for MockIndexedErrorHandler.
    72  type MockIndexedErrorHandlerMockRecorder struct {
    73  	mock *MockIndexedErrorHandler
    74  }
    75  
    76  // NewMockIndexedErrorHandler creates a new mock instance.
    77  func NewMockIndexedErrorHandler(ctrl *gomock.Controller) *MockIndexedErrorHandler {
    78  	mock := &MockIndexedErrorHandler{ctrl: ctrl}
    79  	mock.recorder = &MockIndexedErrorHandlerMockRecorder{mock}
    80  	return mock
    81  }
    82  
    83  // EXPECT returns an object that allows the caller to indicate expected use.
    84  func (m *MockIndexedErrorHandler) EXPECT() *MockIndexedErrorHandlerMockRecorder {
    85  	return m.recorder
    86  }
    87  
    88  // HandleError mocks base method.
    89  func (m *MockIndexedErrorHandler) HandleError(index int, err error) {
    90  	m.ctrl.T.Helper()
    91  	m.ctrl.Call(m, "HandleError", index, err)
    92  }
    93  
    94  // HandleError indicates an expected call of HandleError.
    95  func (mr *MockIndexedErrorHandlerMockRecorder) HandleError(index, err interface{}) *gomock.Call {
    96  	mr.mock.ctrl.T.Helper()
    97  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HandleError", reflect.TypeOf((*MockIndexedErrorHandler)(nil).HandleError), index, err)
    98  }
    99  
   100  // MockDatabase is a mock of Database interface.
   101  type MockDatabase struct {
   102  	ctrl     *gomock.Controller
   103  	recorder *MockDatabaseMockRecorder
   104  }
   105  
   106  // MockDatabaseMockRecorder is the mock recorder for MockDatabase.
   107  type MockDatabaseMockRecorder struct {
   108  	mock *MockDatabase
   109  }
   110  
   111  // NewMockDatabase creates a new mock instance.
   112  func NewMockDatabase(ctrl *gomock.Controller) *MockDatabase {
   113  	mock := &MockDatabase{ctrl: ctrl}
   114  	mock.recorder = &MockDatabaseMockRecorder{mock}
   115  	return mock
   116  }
   117  
   118  // EXPECT returns an object that allows the caller to indicate expected use.
   119  func (m *MockDatabase) EXPECT() *MockDatabaseMockRecorder {
   120  	return m.recorder
   121  }
   122  
   123  // AggregateQuery mocks base method.
   124  func (m *MockDatabase) AggregateQuery(ctx context.Context, namespace ident.ID, query index.Query, opts index.AggregationOptions) (index.AggregateQueryResult, error) {
   125  	m.ctrl.T.Helper()
   126  	ret := m.ctrl.Call(m, "AggregateQuery", ctx, namespace, query, opts)
   127  	ret0, _ := ret[0].(index.AggregateQueryResult)
   128  	ret1, _ := ret[1].(error)
   129  	return ret0, ret1
   130  }
   131  
   132  // AggregateQuery indicates an expected call of AggregateQuery.
   133  func (mr *MockDatabaseMockRecorder) AggregateQuery(ctx, namespace, query, opts interface{}) *gomock.Call {
   134  	mr.mock.ctrl.T.Helper()
   135  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AggregateQuery", reflect.TypeOf((*MockDatabase)(nil).AggregateQuery), ctx, namespace, query, opts)
   136  }
   137  
   138  // AggregateTiles mocks base method.
   139  func (m *MockDatabase) AggregateTiles(ctx context.Context, sourceNsID, targetNsID ident.ID, opts AggregateTilesOptions) (int64, error) {
   140  	m.ctrl.T.Helper()
   141  	ret := m.ctrl.Call(m, "AggregateTiles", ctx, sourceNsID, targetNsID, opts)
   142  	ret0, _ := ret[0].(int64)
   143  	ret1, _ := ret[1].(error)
   144  	return ret0, ret1
   145  }
   146  
   147  // AggregateTiles indicates an expected call of AggregateTiles.
   148  func (mr *MockDatabaseMockRecorder) AggregateTiles(ctx, sourceNsID, targetNsID, opts interface{}) *gomock.Call {
   149  	mr.mock.ctrl.T.Helper()
   150  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AggregateTiles", reflect.TypeOf((*MockDatabase)(nil).AggregateTiles), ctx, sourceNsID, targetNsID, opts)
   151  }
   152  
   153  // AssignShardSet mocks base method.
   154  func (m *MockDatabase) AssignShardSet(shardSet sharding.ShardSet) {
   155  	m.ctrl.T.Helper()
   156  	m.ctrl.Call(m, "AssignShardSet", shardSet)
   157  }
   158  
   159  // AssignShardSet indicates an expected call of AssignShardSet.
   160  func (mr *MockDatabaseMockRecorder) AssignShardSet(shardSet interface{}) *gomock.Call {
   161  	mr.mock.ctrl.T.Helper()
   162  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AssignShardSet", reflect.TypeOf((*MockDatabase)(nil).AssignShardSet), shardSet)
   163  }
   164  
   165  // BatchWriter mocks base method.
   166  func (m *MockDatabase) BatchWriter(namespace ident.ID, batchSize int) (writes.BatchWriter, error) {
   167  	m.ctrl.T.Helper()
   168  	ret := m.ctrl.Call(m, "BatchWriter", namespace, batchSize)
   169  	ret0, _ := ret[0].(writes.BatchWriter)
   170  	ret1, _ := ret[1].(error)
   171  	return ret0, ret1
   172  }
   173  
   174  // BatchWriter indicates an expected call of BatchWriter.
   175  func (mr *MockDatabaseMockRecorder) BatchWriter(namespace, batchSize interface{}) *gomock.Call {
   176  	mr.mock.ctrl.T.Helper()
   177  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchWriter", reflect.TypeOf((*MockDatabase)(nil).BatchWriter), namespace, batchSize)
   178  }
   179  
   180  // Bootstrap mocks base method.
   181  func (m *MockDatabase) Bootstrap() error {
   182  	m.ctrl.T.Helper()
   183  	ret := m.ctrl.Call(m, "Bootstrap")
   184  	ret0, _ := ret[0].(error)
   185  	return ret0
   186  }
   187  
   188  // Bootstrap indicates an expected call of Bootstrap.
   189  func (mr *MockDatabaseMockRecorder) Bootstrap() *gomock.Call {
   190  	mr.mock.ctrl.T.Helper()
   191  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Bootstrap", reflect.TypeOf((*MockDatabase)(nil).Bootstrap))
   192  }
   193  
   194  // BootstrapState mocks base method.
   195  func (m *MockDatabase) BootstrapState() DatabaseBootstrapState {
   196  	m.ctrl.T.Helper()
   197  	ret := m.ctrl.Call(m, "BootstrapState")
   198  	ret0, _ := ret[0].(DatabaseBootstrapState)
   199  	return ret0
   200  }
   201  
   202  // BootstrapState indicates an expected call of BootstrapState.
   203  func (mr *MockDatabaseMockRecorder) BootstrapState() *gomock.Call {
   204  	mr.mock.ctrl.T.Helper()
   205  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BootstrapState", reflect.TypeOf((*MockDatabase)(nil).BootstrapState))
   206  }
   207  
   208  // Close mocks base method.
   209  func (m *MockDatabase) Close() error {
   210  	m.ctrl.T.Helper()
   211  	ret := m.ctrl.Call(m, "Close")
   212  	ret0, _ := ret[0].(error)
   213  	return ret0
   214  }
   215  
   216  // Close indicates an expected call of Close.
   217  func (mr *MockDatabaseMockRecorder) Close() *gomock.Call {
   218  	mr.mock.ctrl.T.Helper()
   219  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockDatabase)(nil).Close))
   220  }
   221  
   222  // FetchBlocks mocks base method.
   223  func (m *MockDatabase) FetchBlocks(ctx context.Context, namespace ident.ID, shard uint32, id ident.ID, starts []time0.UnixNano) ([]block.FetchBlockResult, error) {
   224  	m.ctrl.T.Helper()
   225  	ret := m.ctrl.Call(m, "FetchBlocks", ctx, namespace, shard, id, starts)
   226  	ret0, _ := ret[0].([]block.FetchBlockResult)
   227  	ret1, _ := ret[1].(error)
   228  	return ret0, ret1
   229  }
   230  
   231  // FetchBlocks indicates an expected call of FetchBlocks.
   232  func (mr *MockDatabaseMockRecorder) FetchBlocks(ctx, namespace, shard, id, starts interface{}) *gomock.Call {
   233  	mr.mock.ctrl.T.Helper()
   234  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchBlocks", reflect.TypeOf((*MockDatabase)(nil).FetchBlocks), ctx, namespace, shard, id, starts)
   235  }
   236  
   237  // FetchBlocksMetadataV2 mocks base method.
   238  func (m *MockDatabase) FetchBlocksMetadataV2(ctx context.Context, namespace ident.ID, shard uint32, start, end time0.UnixNano, limit int64, pageToken PageToken, opts block.FetchBlocksMetadataOptions) (block.FetchBlocksMetadataResults, PageToken, error) {
   239  	m.ctrl.T.Helper()
   240  	ret := m.ctrl.Call(m, "FetchBlocksMetadataV2", ctx, namespace, shard, start, end, limit, pageToken, opts)
   241  	ret0, _ := ret[0].(block.FetchBlocksMetadataResults)
   242  	ret1, _ := ret[1].(PageToken)
   243  	ret2, _ := ret[2].(error)
   244  	return ret0, ret1, ret2
   245  }
   246  
   247  // FetchBlocksMetadataV2 indicates an expected call of FetchBlocksMetadataV2.
   248  func (mr *MockDatabaseMockRecorder) FetchBlocksMetadataV2(ctx, namespace, shard, start, end, limit, pageToken, opts interface{}) *gomock.Call {
   249  	mr.mock.ctrl.T.Helper()
   250  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchBlocksMetadataV2", reflect.TypeOf((*MockDatabase)(nil).FetchBlocksMetadataV2), ctx, namespace, shard, start, end, limit, pageToken, opts)
   251  }
   252  
   253  // FlushState mocks base method.
   254  func (m *MockDatabase) FlushState(namespace ident.ID, shardID uint32, blockStart time0.UnixNano) (fileOpState, error) {
   255  	m.ctrl.T.Helper()
   256  	ret := m.ctrl.Call(m, "FlushState", namespace, shardID, blockStart)
   257  	ret0, _ := ret[0].(fileOpState)
   258  	ret1, _ := ret[1].(error)
   259  	return ret0, ret1
   260  }
   261  
   262  // FlushState indicates an expected call of FlushState.
   263  func (mr *MockDatabaseMockRecorder) FlushState(namespace, shardID, blockStart interface{}) *gomock.Call {
   264  	mr.mock.ctrl.T.Helper()
   265  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FlushState", reflect.TypeOf((*MockDatabase)(nil).FlushState), namespace, shardID, blockStart)
   266  }
   267  
   268  // IsBootstrapped mocks base method.
   269  func (m *MockDatabase) IsBootstrapped() bool {
   270  	m.ctrl.T.Helper()
   271  	ret := m.ctrl.Call(m, "IsBootstrapped")
   272  	ret0, _ := ret[0].(bool)
   273  	return ret0
   274  }
   275  
   276  // IsBootstrapped indicates an expected call of IsBootstrapped.
   277  func (mr *MockDatabaseMockRecorder) IsBootstrapped() *gomock.Call {
   278  	mr.mock.ctrl.T.Helper()
   279  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsBootstrapped", reflect.TypeOf((*MockDatabase)(nil).IsBootstrapped))
   280  }
   281  
   282  // IsBootstrappedAndDurable mocks base method.
   283  func (m *MockDatabase) IsBootstrappedAndDurable() bool {
   284  	m.ctrl.T.Helper()
   285  	ret := m.ctrl.Call(m, "IsBootstrappedAndDurable")
   286  	ret0, _ := ret[0].(bool)
   287  	return ret0
   288  }
   289  
   290  // IsBootstrappedAndDurable indicates an expected call of IsBootstrappedAndDurable.
   291  func (mr *MockDatabaseMockRecorder) IsBootstrappedAndDurable() *gomock.Call {
   292  	mr.mock.ctrl.T.Helper()
   293  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsBootstrappedAndDurable", reflect.TypeOf((*MockDatabase)(nil).IsBootstrappedAndDurable))
   294  }
   295  
   296  // IsOverloaded mocks base method.
   297  func (m *MockDatabase) IsOverloaded() bool {
   298  	m.ctrl.T.Helper()
   299  	ret := m.ctrl.Call(m, "IsOverloaded")
   300  	ret0, _ := ret[0].(bool)
   301  	return ret0
   302  }
   303  
   304  // IsOverloaded indicates an expected call of IsOverloaded.
   305  func (mr *MockDatabaseMockRecorder) IsOverloaded() *gomock.Call {
   306  	mr.mock.ctrl.T.Helper()
   307  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsOverloaded", reflect.TypeOf((*MockDatabase)(nil).IsOverloaded))
   308  }
   309  
   310  // Namespace mocks base method.
   311  func (m *MockDatabase) Namespace(ns ident.ID) (Namespace, bool) {
   312  	m.ctrl.T.Helper()
   313  	ret := m.ctrl.Call(m, "Namespace", ns)
   314  	ret0, _ := ret[0].(Namespace)
   315  	ret1, _ := ret[1].(bool)
   316  	return ret0, ret1
   317  }
   318  
   319  // Namespace indicates an expected call of Namespace.
   320  func (mr *MockDatabaseMockRecorder) Namespace(ns interface{}) *gomock.Call {
   321  	mr.mock.ctrl.T.Helper()
   322  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Namespace", reflect.TypeOf((*MockDatabase)(nil).Namespace), ns)
   323  }
   324  
   325  // Namespaces mocks base method.
   326  func (m *MockDatabase) Namespaces() []Namespace {
   327  	m.ctrl.T.Helper()
   328  	ret := m.ctrl.Call(m, "Namespaces")
   329  	ret0, _ := ret[0].([]Namespace)
   330  	return ret0
   331  }
   332  
   333  // Namespaces indicates an expected call of Namespaces.
   334  func (mr *MockDatabaseMockRecorder) Namespaces() *gomock.Call {
   335  	mr.mock.ctrl.T.Helper()
   336  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Namespaces", reflect.TypeOf((*MockDatabase)(nil).Namespaces))
   337  }
   338  
   339  // Open mocks base method.
   340  func (m *MockDatabase) Open() error {
   341  	m.ctrl.T.Helper()
   342  	ret := m.ctrl.Call(m, "Open")
   343  	ret0, _ := ret[0].(error)
   344  	return ret0
   345  }
   346  
   347  // Open indicates an expected call of Open.
   348  func (mr *MockDatabaseMockRecorder) Open() *gomock.Call {
   349  	mr.mock.ctrl.T.Helper()
   350  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Open", reflect.TypeOf((*MockDatabase)(nil).Open))
   351  }
   352  
   353  // Options mocks base method.
   354  func (m *MockDatabase) Options() Options {
   355  	m.ctrl.T.Helper()
   356  	ret := m.ctrl.Call(m, "Options")
   357  	ret0, _ := ret[0].(Options)
   358  	return ret0
   359  }
   360  
   361  // Options indicates an expected call of Options.
   362  func (mr *MockDatabaseMockRecorder) Options() *gomock.Call {
   363  	mr.mock.ctrl.T.Helper()
   364  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Options", reflect.TypeOf((*MockDatabase)(nil).Options))
   365  }
   366  
   367  // QueryIDs mocks base method.
   368  func (m *MockDatabase) QueryIDs(ctx context.Context, namespace ident.ID, query index.Query, opts index.QueryOptions) (index.QueryResult, error) {
   369  	m.ctrl.T.Helper()
   370  	ret := m.ctrl.Call(m, "QueryIDs", ctx, namespace, query, opts)
   371  	ret0, _ := ret[0].(index.QueryResult)
   372  	ret1, _ := ret[1].(error)
   373  	return ret0, ret1
   374  }
   375  
   376  // QueryIDs indicates an expected call of QueryIDs.
   377  func (mr *MockDatabaseMockRecorder) QueryIDs(ctx, namespace, query, opts interface{}) *gomock.Call {
   378  	mr.mock.ctrl.T.Helper()
   379  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueryIDs", reflect.TypeOf((*MockDatabase)(nil).QueryIDs), ctx, namespace, query, opts)
   380  }
   381  
   382  // ReadEncoded mocks base method.
   383  func (m *MockDatabase) ReadEncoded(ctx context.Context, namespace, id ident.ID, start, end time0.UnixNano) (series.BlockReaderIter, error) {
   384  	m.ctrl.T.Helper()
   385  	ret := m.ctrl.Call(m, "ReadEncoded", ctx, namespace, id, start, end)
   386  	ret0, _ := ret[0].(series.BlockReaderIter)
   387  	ret1, _ := ret[1].(error)
   388  	return ret0, ret1
   389  }
   390  
   391  // ReadEncoded indicates an expected call of ReadEncoded.
   392  func (mr *MockDatabaseMockRecorder) ReadEncoded(ctx, namespace, id, start, end interface{}) *gomock.Call {
   393  	mr.mock.ctrl.T.Helper()
   394  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadEncoded", reflect.TypeOf((*MockDatabase)(nil).ReadEncoded), ctx, namespace, id, start, end)
   395  }
   396  
   397  // Repair mocks base method.
   398  func (m *MockDatabase) Repair() error {
   399  	m.ctrl.T.Helper()
   400  	ret := m.ctrl.Call(m, "Repair")
   401  	ret0, _ := ret[0].(error)
   402  	return ret0
   403  }
   404  
   405  // Repair indicates an expected call of Repair.
   406  func (mr *MockDatabaseMockRecorder) Repair() *gomock.Call {
   407  	mr.mock.ctrl.T.Helper()
   408  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Repair", reflect.TypeOf((*MockDatabase)(nil).Repair))
   409  }
   410  
   411  // ShardSet mocks base method.
   412  func (m *MockDatabase) ShardSet() sharding.ShardSet {
   413  	m.ctrl.T.Helper()
   414  	ret := m.ctrl.Call(m, "ShardSet")
   415  	ret0, _ := ret[0].(sharding.ShardSet)
   416  	return ret0
   417  }
   418  
   419  // ShardSet indicates an expected call of ShardSet.
   420  func (mr *MockDatabaseMockRecorder) ShardSet() *gomock.Call {
   421  	mr.mock.ctrl.T.Helper()
   422  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ShardSet", reflect.TypeOf((*MockDatabase)(nil).ShardSet))
   423  }
   424  
   425  // Terminate mocks base method.
   426  func (m *MockDatabase) Terminate() error {
   427  	m.ctrl.T.Helper()
   428  	ret := m.ctrl.Call(m, "Terminate")
   429  	ret0, _ := ret[0].(error)
   430  	return ret0
   431  }
   432  
   433  // Terminate indicates an expected call of Terminate.
   434  func (mr *MockDatabaseMockRecorder) Terminate() *gomock.Call {
   435  	mr.mock.ctrl.T.Helper()
   436  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Terminate", reflect.TypeOf((*MockDatabase)(nil).Terminate))
   437  }
   438  
   439  // Truncate mocks base method.
   440  func (m *MockDatabase) Truncate(namespace ident.ID) (int64, error) {
   441  	m.ctrl.T.Helper()
   442  	ret := m.ctrl.Call(m, "Truncate", namespace)
   443  	ret0, _ := ret[0].(int64)
   444  	ret1, _ := ret[1].(error)
   445  	return ret0, ret1
   446  }
   447  
   448  // Truncate indicates an expected call of Truncate.
   449  func (mr *MockDatabaseMockRecorder) Truncate(namespace interface{}) *gomock.Call {
   450  	mr.mock.ctrl.T.Helper()
   451  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Truncate", reflect.TypeOf((*MockDatabase)(nil).Truncate), namespace)
   452  }
   453  
   454  // Write mocks base method.
   455  func (m *MockDatabase) Write(ctx context.Context, namespace, id ident.ID, timestamp time0.UnixNano, value float64, unit time0.Unit, annotation []byte) error {
   456  	m.ctrl.T.Helper()
   457  	ret := m.ctrl.Call(m, "Write", ctx, namespace, id, timestamp, value, unit, annotation)
   458  	ret0, _ := ret[0].(error)
   459  	return ret0
   460  }
   461  
   462  // Write indicates an expected call of Write.
   463  func (mr *MockDatabaseMockRecorder) Write(ctx, namespace, id, timestamp, value, unit, annotation interface{}) *gomock.Call {
   464  	mr.mock.ctrl.T.Helper()
   465  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Write", reflect.TypeOf((*MockDatabase)(nil).Write), ctx, namespace, id, timestamp, value, unit, annotation)
   466  }
   467  
   468  // WriteBatch mocks base method.
   469  func (m *MockDatabase) WriteBatch(ctx context.Context, namespace ident.ID, writes writes.BatchWriter, errHandler IndexedErrorHandler) error {
   470  	m.ctrl.T.Helper()
   471  	ret := m.ctrl.Call(m, "WriteBatch", ctx, namespace, writes, errHandler)
   472  	ret0, _ := ret[0].(error)
   473  	return ret0
   474  }
   475  
   476  // WriteBatch indicates an expected call of WriteBatch.
   477  func (mr *MockDatabaseMockRecorder) WriteBatch(ctx, namespace, writes, errHandler interface{}) *gomock.Call {
   478  	mr.mock.ctrl.T.Helper()
   479  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteBatch", reflect.TypeOf((*MockDatabase)(nil).WriteBatch), ctx, namespace, writes, errHandler)
   480  }
   481  
   482  // WriteTagged mocks base method.
   483  func (m *MockDatabase) WriteTagged(ctx context.Context, namespace, id ident.ID, tagResolver convert.TagMetadataResolver, timestamp time0.UnixNano, value float64, unit time0.Unit, annotation []byte) error {
   484  	m.ctrl.T.Helper()
   485  	ret := m.ctrl.Call(m, "WriteTagged", ctx, namespace, id, tagResolver, timestamp, value, unit, annotation)
   486  	ret0, _ := ret[0].(error)
   487  	return ret0
   488  }
   489  
   490  // WriteTagged indicates an expected call of WriteTagged.
   491  func (mr *MockDatabaseMockRecorder) WriteTagged(ctx, namespace, id, tagResolver, timestamp, value, unit, annotation interface{}) *gomock.Call {
   492  	mr.mock.ctrl.T.Helper()
   493  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteTagged", reflect.TypeOf((*MockDatabase)(nil).WriteTagged), ctx, namespace, id, tagResolver, timestamp, value, unit, annotation)
   494  }
   495  
   496  // WriteTaggedBatch mocks base method.
   497  func (m *MockDatabase) WriteTaggedBatch(ctx context.Context, namespace ident.ID, writes writes.BatchWriter, errHandler IndexedErrorHandler) error {
   498  	m.ctrl.T.Helper()
   499  	ret := m.ctrl.Call(m, "WriteTaggedBatch", ctx, namespace, writes, errHandler)
   500  	ret0, _ := ret[0].(error)
   501  	return ret0
   502  }
   503  
   504  // WriteTaggedBatch indicates an expected call of WriteTaggedBatch.
   505  func (mr *MockDatabaseMockRecorder) WriteTaggedBatch(ctx, namespace, writes, errHandler interface{}) *gomock.Call {
   506  	mr.mock.ctrl.T.Helper()
   507  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteTaggedBatch", reflect.TypeOf((*MockDatabase)(nil).WriteTaggedBatch), ctx, namespace, writes, errHandler)
   508  }
   509  
   510  // Mockdatabase is a mock of database interface.
   511  type Mockdatabase struct {
   512  	ctrl     *gomock.Controller
   513  	recorder *MockdatabaseMockRecorder
   514  }
   515  
   516  // MockdatabaseMockRecorder is the mock recorder for Mockdatabase.
   517  type MockdatabaseMockRecorder struct {
   518  	mock *Mockdatabase
   519  }
   520  
   521  // NewMockdatabase creates a new mock instance.
   522  func NewMockdatabase(ctrl *gomock.Controller) *Mockdatabase {
   523  	mock := &Mockdatabase{ctrl: ctrl}
   524  	mock.recorder = &MockdatabaseMockRecorder{mock}
   525  	return mock
   526  }
   527  
   528  // EXPECT returns an object that allows the caller to indicate expected use.
   529  func (m *Mockdatabase) EXPECT() *MockdatabaseMockRecorder {
   530  	return m.recorder
   531  }
   532  
   533  // AggregateQuery mocks base method.
   534  func (m *Mockdatabase) AggregateQuery(ctx context.Context, namespace ident.ID, query index.Query, opts index.AggregationOptions) (index.AggregateQueryResult, error) {
   535  	m.ctrl.T.Helper()
   536  	ret := m.ctrl.Call(m, "AggregateQuery", ctx, namespace, query, opts)
   537  	ret0, _ := ret[0].(index.AggregateQueryResult)
   538  	ret1, _ := ret[1].(error)
   539  	return ret0, ret1
   540  }
   541  
   542  // AggregateQuery indicates an expected call of AggregateQuery.
   543  func (mr *MockdatabaseMockRecorder) AggregateQuery(ctx, namespace, query, opts interface{}) *gomock.Call {
   544  	mr.mock.ctrl.T.Helper()
   545  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AggregateQuery", reflect.TypeOf((*Mockdatabase)(nil).AggregateQuery), ctx, namespace, query, opts)
   546  }
   547  
   548  // AggregateTiles mocks base method.
   549  func (m *Mockdatabase) AggregateTiles(ctx context.Context, sourceNsID, targetNsID ident.ID, opts AggregateTilesOptions) (int64, error) {
   550  	m.ctrl.T.Helper()
   551  	ret := m.ctrl.Call(m, "AggregateTiles", ctx, sourceNsID, targetNsID, opts)
   552  	ret0, _ := ret[0].(int64)
   553  	ret1, _ := ret[1].(error)
   554  	return ret0, ret1
   555  }
   556  
   557  // AggregateTiles indicates an expected call of AggregateTiles.
   558  func (mr *MockdatabaseMockRecorder) AggregateTiles(ctx, sourceNsID, targetNsID, opts interface{}) *gomock.Call {
   559  	mr.mock.ctrl.T.Helper()
   560  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AggregateTiles", reflect.TypeOf((*Mockdatabase)(nil).AggregateTiles), ctx, sourceNsID, targetNsID, opts)
   561  }
   562  
   563  // AssignShardSet mocks base method.
   564  func (m *Mockdatabase) AssignShardSet(shardSet sharding.ShardSet) {
   565  	m.ctrl.T.Helper()
   566  	m.ctrl.Call(m, "AssignShardSet", shardSet)
   567  }
   568  
   569  // AssignShardSet indicates an expected call of AssignShardSet.
   570  func (mr *MockdatabaseMockRecorder) AssignShardSet(shardSet interface{}) *gomock.Call {
   571  	mr.mock.ctrl.T.Helper()
   572  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AssignShardSet", reflect.TypeOf((*Mockdatabase)(nil).AssignShardSet), shardSet)
   573  }
   574  
   575  // BatchWriter mocks base method.
   576  func (m *Mockdatabase) BatchWriter(namespace ident.ID, batchSize int) (writes.BatchWriter, error) {
   577  	m.ctrl.T.Helper()
   578  	ret := m.ctrl.Call(m, "BatchWriter", namespace, batchSize)
   579  	ret0, _ := ret[0].(writes.BatchWriter)
   580  	ret1, _ := ret[1].(error)
   581  	return ret0, ret1
   582  }
   583  
   584  // BatchWriter indicates an expected call of BatchWriter.
   585  func (mr *MockdatabaseMockRecorder) BatchWriter(namespace, batchSize interface{}) *gomock.Call {
   586  	mr.mock.ctrl.T.Helper()
   587  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BatchWriter", reflect.TypeOf((*Mockdatabase)(nil).BatchWriter), namespace, batchSize)
   588  }
   589  
   590  // Bootstrap mocks base method.
   591  func (m *Mockdatabase) Bootstrap() error {
   592  	m.ctrl.T.Helper()
   593  	ret := m.ctrl.Call(m, "Bootstrap")
   594  	ret0, _ := ret[0].(error)
   595  	return ret0
   596  }
   597  
   598  // Bootstrap indicates an expected call of Bootstrap.
   599  func (mr *MockdatabaseMockRecorder) Bootstrap() *gomock.Call {
   600  	mr.mock.ctrl.T.Helper()
   601  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Bootstrap", reflect.TypeOf((*Mockdatabase)(nil).Bootstrap))
   602  }
   603  
   604  // BootstrapState mocks base method.
   605  func (m *Mockdatabase) BootstrapState() DatabaseBootstrapState {
   606  	m.ctrl.T.Helper()
   607  	ret := m.ctrl.Call(m, "BootstrapState")
   608  	ret0, _ := ret[0].(DatabaseBootstrapState)
   609  	return ret0
   610  }
   611  
   612  // BootstrapState indicates an expected call of BootstrapState.
   613  func (mr *MockdatabaseMockRecorder) BootstrapState() *gomock.Call {
   614  	mr.mock.ctrl.T.Helper()
   615  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BootstrapState", reflect.TypeOf((*Mockdatabase)(nil).BootstrapState))
   616  }
   617  
   618  // Close mocks base method.
   619  func (m *Mockdatabase) Close() error {
   620  	m.ctrl.T.Helper()
   621  	ret := m.ctrl.Call(m, "Close")
   622  	ret0, _ := ret[0].(error)
   623  	return ret0
   624  }
   625  
   626  // Close indicates an expected call of Close.
   627  func (mr *MockdatabaseMockRecorder) Close() *gomock.Call {
   628  	mr.mock.ctrl.T.Helper()
   629  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*Mockdatabase)(nil).Close))
   630  }
   631  
   632  // FetchBlocks mocks base method.
   633  func (m *Mockdatabase) FetchBlocks(ctx context.Context, namespace ident.ID, shard uint32, id ident.ID, starts []time0.UnixNano) ([]block.FetchBlockResult, error) {
   634  	m.ctrl.T.Helper()
   635  	ret := m.ctrl.Call(m, "FetchBlocks", ctx, namespace, shard, id, starts)
   636  	ret0, _ := ret[0].([]block.FetchBlockResult)
   637  	ret1, _ := ret[1].(error)
   638  	return ret0, ret1
   639  }
   640  
   641  // FetchBlocks indicates an expected call of FetchBlocks.
   642  func (mr *MockdatabaseMockRecorder) FetchBlocks(ctx, namespace, shard, id, starts interface{}) *gomock.Call {
   643  	mr.mock.ctrl.T.Helper()
   644  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchBlocks", reflect.TypeOf((*Mockdatabase)(nil).FetchBlocks), ctx, namespace, shard, id, starts)
   645  }
   646  
   647  // FetchBlocksMetadataV2 mocks base method.
   648  func (m *Mockdatabase) FetchBlocksMetadataV2(ctx context.Context, namespace ident.ID, shard uint32, start, end time0.UnixNano, limit int64, pageToken PageToken, opts block.FetchBlocksMetadataOptions) (block.FetchBlocksMetadataResults, PageToken, error) {
   649  	m.ctrl.T.Helper()
   650  	ret := m.ctrl.Call(m, "FetchBlocksMetadataV2", ctx, namespace, shard, start, end, limit, pageToken, opts)
   651  	ret0, _ := ret[0].(block.FetchBlocksMetadataResults)
   652  	ret1, _ := ret[1].(PageToken)
   653  	ret2, _ := ret[2].(error)
   654  	return ret0, ret1, ret2
   655  }
   656  
   657  // FetchBlocksMetadataV2 indicates an expected call of FetchBlocksMetadataV2.
   658  func (mr *MockdatabaseMockRecorder) FetchBlocksMetadataV2(ctx, namespace, shard, start, end, limit, pageToken, opts interface{}) *gomock.Call {
   659  	mr.mock.ctrl.T.Helper()
   660  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchBlocksMetadataV2", reflect.TypeOf((*Mockdatabase)(nil).FetchBlocksMetadataV2), ctx, namespace, shard, start, end, limit, pageToken, opts)
   661  }
   662  
   663  // FlushState mocks base method.
   664  func (m *Mockdatabase) FlushState(namespace ident.ID, shardID uint32, blockStart time0.UnixNano) (fileOpState, error) {
   665  	m.ctrl.T.Helper()
   666  	ret := m.ctrl.Call(m, "FlushState", namespace, shardID, blockStart)
   667  	ret0, _ := ret[0].(fileOpState)
   668  	ret1, _ := ret[1].(error)
   669  	return ret0, ret1
   670  }
   671  
   672  // FlushState indicates an expected call of FlushState.
   673  func (mr *MockdatabaseMockRecorder) FlushState(namespace, shardID, blockStart interface{}) *gomock.Call {
   674  	mr.mock.ctrl.T.Helper()
   675  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FlushState", reflect.TypeOf((*Mockdatabase)(nil).FlushState), namespace, shardID, blockStart)
   676  }
   677  
   678  // IsBootstrapped mocks base method.
   679  func (m *Mockdatabase) IsBootstrapped() bool {
   680  	m.ctrl.T.Helper()
   681  	ret := m.ctrl.Call(m, "IsBootstrapped")
   682  	ret0, _ := ret[0].(bool)
   683  	return ret0
   684  }
   685  
   686  // IsBootstrapped indicates an expected call of IsBootstrapped.
   687  func (mr *MockdatabaseMockRecorder) IsBootstrapped() *gomock.Call {
   688  	mr.mock.ctrl.T.Helper()
   689  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsBootstrapped", reflect.TypeOf((*Mockdatabase)(nil).IsBootstrapped))
   690  }
   691  
   692  // IsBootstrappedAndDurable mocks base method.
   693  func (m *Mockdatabase) IsBootstrappedAndDurable() bool {
   694  	m.ctrl.T.Helper()
   695  	ret := m.ctrl.Call(m, "IsBootstrappedAndDurable")
   696  	ret0, _ := ret[0].(bool)
   697  	return ret0
   698  }
   699  
   700  // IsBootstrappedAndDurable indicates an expected call of IsBootstrappedAndDurable.
   701  func (mr *MockdatabaseMockRecorder) IsBootstrappedAndDurable() *gomock.Call {
   702  	mr.mock.ctrl.T.Helper()
   703  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsBootstrappedAndDurable", reflect.TypeOf((*Mockdatabase)(nil).IsBootstrappedAndDurable))
   704  }
   705  
   706  // IsOverloaded mocks base method.
   707  func (m *Mockdatabase) IsOverloaded() bool {
   708  	m.ctrl.T.Helper()
   709  	ret := m.ctrl.Call(m, "IsOverloaded")
   710  	ret0, _ := ret[0].(bool)
   711  	return ret0
   712  }
   713  
   714  // IsOverloaded indicates an expected call of IsOverloaded.
   715  func (mr *MockdatabaseMockRecorder) IsOverloaded() *gomock.Call {
   716  	mr.mock.ctrl.T.Helper()
   717  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsOverloaded", reflect.TypeOf((*Mockdatabase)(nil).IsOverloaded))
   718  }
   719  
   720  // Namespace mocks base method.
   721  func (m *Mockdatabase) Namespace(ns ident.ID) (Namespace, bool) {
   722  	m.ctrl.T.Helper()
   723  	ret := m.ctrl.Call(m, "Namespace", ns)
   724  	ret0, _ := ret[0].(Namespace)
   725  	ret1, _ := ret[1].(bool)
   726  	return ret0, ret1
   727  }
   728  
   729  // Namespace indicates an expected call of Namespace.
   730  func (mr *MockdatabaseMockRecorder) Namespace(ns interface{}) *gomock.Call {
   731  	mr.mock.ctrl.T.Helper()
   732  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Namespace", reflect.TypeOf((*Mockdatabase)(nil).Namespace), ns)
   733  }
   734  
   735  // Namespaces mocks base method.
   736  func (m *Mockdatabase) Namespaces() []Namespace {
   737  	m.ctrl.T.Helper()
   738  	ret := m.ctrl.Call(m, "Namespaces")
   739  	ret0, _ := ret[0].([]Namespace)
   740  	return ret0
   741  }
   742  
   743  // Namespaces indicates an expected call of Namespaces.
   744  func (mr *MockdatabaseMockRecorder) Namespaces() *gomock.Call {
   745  	mr.mock.ctrl.T.Helper()
   746  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Namespaces", reflect.TypeOf((*Mockdatabase)(nil).Namespaces))
   747  }
   748  
   749  // Open mocks base method.
   750  func (m *Mockdatabase) Open() error {
   751  	m.ctrl.T.Helper()
   752  	ret := m.ctrl.Call(m, "Open")
   753  	ret0, _ := ret[0].(error)
   754  	return ret0
   755  }
   756  
   757  // Open indicates an expected call of Open.
   758  func (mr *MockdatabaseMockRecorder) Open() *gomock.Call {
   759  	mr.mock.ctrl.T.Helper()
   760  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Open", reflect.TypeOf((*Mockdatabase)(nil).Open))
   761  }
   762  
   763  // Options mocks base method.
   764  func (m *Mockdatabase) Options() Options {
   765  	m.ctrl.T.Helper()
   766  	ret := m.ctrl.Call(m, "Options")
   767  	ret0, _ := ret[0].(Options)
   768  	return ret0
   769  }
   770  
   771  // Options indicates an expected call of Options.
   772  func (mr *MockdatabaseMockRecorder) Options() *gomock.Call {
   773  	mr.mock.ctrl.T.Helper()
   774  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Options", reflect.TypeOf((*Mockdatabase)(nil).Options))
   775  }
   776  
   777  // OwnedNamespaces mocks base method.
   778  func (m *Mockdatabase) OwnedNamespaces() ([]databaseNamespace, error) {
   779  	m.ctrl.T.Helper()
   780  	ret := m.ctrl.Call(m, "OwnedNamespaces")
   781  	ret0, _ := ret[0].([]databaseNamespace)
   782  	ret1, _ := ret[1].(error)
   783  	return ret0, ret1
   784  }
   785  
   786  // OwnedNamespaces indicates an expected call of OwnedNamespaces.
   787  func (mr *MockdatabaseMockRecorder) OwnedNamespaces() *gomock.Call {
   788  	mr.mock.ctrl.T.Helper()
   789  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OwnedNamespaces", reflect.TypeOf((*Mockdatabase)(nil).OwnedNamespaces))
   790  }
   791  
   792  // QueryIDs mocks base method.
   793  func (m *Mockdatabase) QueryIDs(ctx context.Context, namespace ident.ID, query index.Query, opts index.QueryOptions) (index.QueryResult, error) {
   794  	m.ctrl.T.Helper()
   795  	ret := m.ctrl.Call(m, "QueryIDs", ctx, namespace, query, opts)
   796  	ret0, _ := ret[0].(index.QueryResult)
   797  	ret1, _ := ret[1].(error)
   798  	return ret0, ret1
   799  }
   800  
   801  // QueryIDs indicates an expected call of QueryIDs.
   802  func (mr *MockdatabaseMockRecorder) QueryIDs(ctx, namespace, query, opts interface{}) *gomock.Call {
   803  	mr.mock.ctrl.T.Helper()
   804  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueryIDs", reflect.TypeOf((*Mockdatabase)(nil).QueryIDs), ctx, namespace, query, opts)
   805  }
   806  
   807  // ReadEncoded mocks base method.
   808  func (m *Mockdatabase) ReadEncoded(ctx context.Context, namespace, id ident.ID, start, end time0.UnixNano) (series.BlockReaderIter, error) {
   809  	m.ctrl.T.Helper()
   810  	ret := m.ctrl.Call(m, "ReadEncoded", ctx, namespace, id, start, end)
   811  	ret0, _ := ret[0].(series.BlockReaderIter)
   812  	ret1, _ := ret[1].(error)
   813  	return ret0, ret1
   814  }
   815  
   816  // ReadEncoded indicates an expected call of ReadEncoded.
   817  func (mr *MockdatabaseMockRecorder) ReadEncoded(ctx, namespace, id, start, end interface{}) *gomock.Call {
   818  	mr.mock.ctrl.T.Helper()
   819  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadEncoded", reflect.TypeOf((*Mockdatabase)(nil).ReadEncoded), ctx, namespace, id, start, end)
   820  }
   821  
   822  // Repair mocks base method.
   823  func (m *Mockdatabase) Repair() error {
   824  	m.ctrl.T.Helper()
   825  	ret := m.ctrl.Call(m, "Repair")
   826  	ret0, _ := ret[0].(error)
   827  	return ret0
   828  }
   829  
   830  // Repair indicates an expected call of Repair.
   831  func (mr *MockdatabaseMockRecorder) Repair() *gomock.Call {
   832  	mr.mock.ctrl.T.Helper()
   833  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Repair", reflect.TypeOf((*Mockdatabase)(nil).Repair))
   834  }
   835  
   836  // ShardSet mocks base method.
   837  func (m *Mockdatabase) ShardSet() sharding.ShardSet {
   838  	m.ctrl.T.Helper()
   839  	ret := m.ctrl.Call(m, "ShardSet")
   840  	ret0, _ := ret[0].(sharding.ShardSet)
   841  	return ret0
   842  }
   843  
   844  // ShardSet indicates an expected call of ShardSet.
   845  func (mr *MockdatabaseMockRecorder) ShardSet() *gomock.Call {
   846  	mr.mock.ctrl.T.Helper()
   847  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ShardSet", reflect.TypeOf((*Mockdatabase)(nil).ShardSet))
   848  }
   849  
   850  // Terminate mocks base method.
   851  func (m *Mockdatabase) Terminate() error {
   852  	m.ctrl.T.Helper()
   853  	ret := m.ctrl.Call(m, "Terminate")
   854  	ret0, _ := ret[0].(error)
   855  	return ret0
   856  }
   857  
   858  // Terminate indicates an expected call of Terminate.
   859  func (mr *MockdatabaseMockRecorder) Terminate() *gomock.Call {
   860  	mr.mock.ctrl.T.Helper()
   861  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Terminate", reflect.TypeOf((*Mockdatabase)(nil).Terminate))
   862  }
   863  
   864  // Truncate mocks base method.
   865  func (m *Mockdatabase) Truncate(namespace ident.ID) (int64, error) {
   866  	m.ctrl.T.Helper()
   867  	ret := m.ctrl.Call(m, "Truncate", namespace)
   868  	ret0, _ := ret[0].(int64)
   869  	ret1, _ := ret[1].(error)
   870  	return ret0, ret1
   871  }
   872  
   873  // Truncate indicates an expected call of Truncate.
   874  func (mr *MockdatabaseMockRecorder) Truncate(namespace interface{}) *gomock.Call {
   875  	mr.mock.ctrl.T.Helper()
   876  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Truncate", reflect.TypeOf((*Mockdatabase)(nil).Truncate), namespace)
   877  }
   878  
   879  // UpdateOwnedNamespaces mocks base method.
   880  func (m *Mockdatabase) UpdateOwnedNamespaces(namespaces namespace.Map) error {
   881  	m.ctrl.T.Helper()
   882  	ret := m.ctrl.Call(m, "UpdateOwnedNamespaces", namespaces)
   883  	ret0, _ := ret[0].(error)
   884  	return ret0
   885  }
   886  
   887  // UpdateOwnedNamespaces indicates an expected call of UpdateOwnedNamespaces.
   888  func (mr *MockdatabaseMockRecorder) UpdateOwnedNamespaces(namespaces interface{}) *gomock.Call {
   889  	mr.mock.ctrl.T.Helper()
   890  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateOwnedNamespaces", reflect.TypeOf((*Mockdatabase)(nil).UpdateOwnedNamespaces), namespaces)
   891  }
   892  
   893  // Write mocks base method.
   894  func (m *Mockdatabase) Write(ctx context.Context, namespace, id ident.ID, timestamp time0.UnixNano, value float64, unit time0.Unit, annotation []byte) error {
   895  	m.ctrl.T.Helper()
   896  	ret := m.ctrl.Call(m, "Write", ctx, namespace, id, timestamp, value, unit, annotation)
   897  	ret0, _ := ret[0].(error)
   898  	return ret0
   899  }
   900  
   901  // Write indicates an expected call of Write.
   902  func (mr *MockdatabaseMockRecorder) Write(ctx, namespace, id, timestamp, value, unit, annotation interface{}) *gomock.Call {
   903  	mr.mock.ctrl.T.Helper()
   904  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Write", reflect.TypeOf((*Mockdatabase)(nil).Write), ctx, namespace, id, timestamp, value, unit, annotation)
   905  }
   906  
   907  // WriteBatch mocks base method.
   908  func (m *Mockdatabase) WriteBatch(ctx context.Context, namespace ident.ID, writes writes.BatchWriter, errHandler IndexedErrorHandler) error {
   909  	m.ctrl.T.Helper()
   910  	ret := m.ctrl.Call(m, "WriteBatch", ctx, namespace, writes, errHandler)
   911  	ret0, _ := ret[0].(error)
   912  	return ret0
   913  }
   914  
   915  // WriteBatch indicates an expected call of WriteBatch.
   916  func (mr *MockdatabaseMockRecorder) WriteBatch(ctx, namespace, writes, errHandler interface{}) *gomock.Call {
   917  	mr.mock.ctrl.T.Helper()
   918  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteBatch", reflect.TypeOf((*Mockdatabase)(nil).WriteBatch), ctx, namespace, writes, errHandler)
   919  }
   920  
   921  // WriteTagged mocks base method.
   922  func (m *Mockdatabase) WriteTagged(ctx context.Context, namespace, id ident.ID, tagResolver convert.TagMetadataResolver, timestamp time0.UnixNano, value float64, unit time0.Unit, annotation []byte) error {
   923  	m.ctrl.T.Helper()
   924  	ret := m.ctrl.Call(m, "WriteTagged", ctx, namespace, id, tagResolver, timestamp, value, unit, annotation)
   925  	ret0, _ := ret[0].(error)
   926  	return ret0
   927  }
   928  
   929  // WriteTagged indicates an expected call of WriteTagged.
   930  func (mr *MockdatabaseMockRecorder) WriteTagged(ctx, namespace, id, tagResolver, timestamp, value, unit, annotation interface{}) *gomock.Call {
   931  	mr.mock.ctrl.T.Helper()
   932  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteTagged", reflect.TypeOf((*Mockdatabase)(nil).WriteTagged), ctx, namespace, id, tagResolver, timestamp, value, unit, annotation)
   933  }
   934  
   935  // WriteTaggedBatch mocks base method.
   936  func (m *Mockdatabase) WriteTaggedBatch(ctx context.Context, namespace ident.ID, writes writes.BatchWriter, errHandler IndexedErrorHandler) error {
   937  	m.ctrl.T.Helper()
   938  	ret := m.ctrl.Call(m, "WriteTaggedBatch", ctx, namespace, writes, errHandler)
   939  	ret0, _ := ret[0].(error)
   940  	return ret0
   941  }
   942  
   943  // WriteTaggedBatch indicates an expected call of WriteTaggedBatch.
   944  func (mr *MockdatabaseMockRecorder) WriteTaggedBatch(ctx, namespace, writes, errHandler interface{}) *gomock.Call {
   945  	mr.mock.ctrl.T.Helper()
   946  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteTaggedBatch", reflect.TypeOf((*Mockdatabase)(nil).WriteTaggedBatch), ctx, namespace, writes, errHandler)
   947  }
   948  
   949  // MockNamespace is a mock of Namespace interface.
   950  type MockNamespace struct {
   951  	ctrl     *gomock.Controller
   952  	recorder *MockNamespaceMockRecorder
   953  }
   954  
   955  // MockNamespaceMockRecorder is the mock recorder for MockNamespace.
   956  type MockNamespaceMockRecorder struct {
   957  	mock *MockNamespace
   958  }
   959  
   960  // NewMockNamespace creates a new mock instance.
   961  func NewMockNamespace(ctrl *gomock.Controller) *MockNamespace {
   962  	mock := &MockNamespace{ctrl: ctrl}
   963  	mock.recorder = &MockNamespaceMockRecorder{mock}
   964  	return mock
   965  }
   966  
   967  // EXPECT returns an object that allows the caller to indicate expected use.
   968  func (m *MockNamespace) EXPECT() *MockNamespaceMockRecorder {
   969  	return m.recorder
   970  }
   971  
   972  // DocRef mocks base method.
   973  func (m *MockNamespace) DocRef(id ident.ID) (doc.Metadata, bool, error) {
   974  	m.ctrl.T.Helper()
   975  	ret := m.ctrl.Call(m, "DocRef", id)
   976  	ret0, _ := ret[0].(doc.Metadata)
   977  	ret1, _ := ret[1].(bool)
   978  	ret2, _ := ret[2].(error)
   979  	return ret0, ret1, ret2
   980  }
   981  
   982  // DocRef indicates an expected call of DocRef.
   983  func (mr *MockNamespaceMockRecorder) DocRef(id interface{}) *gomock.Call {
   984  	mr.mock.ctrl.T.Helper()
   985  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DocRef", reflect.TypeOf((*MockNamespace)(nil).DocRef), id)
   986  }
   987  
   988  // ID mocks base method.
   989  func (m *MockNamespace) ID() ident.ID {
   990  	m.ctrl.T.Helper()
   991  	ret := m.ctrl.Call(m, "ID")
   992  	ret0, _ := ret[0].(ident.ID)
   993  	return ret0
   994  }
   995  
   996  // ID indicates an expected call of ID.
   997  func (mr *MockNamespaceMockRecorder) ID() *gomock.Call {
   998  	mr.mock.ctrl.T.Helper()
   999  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ID", reflect.TypeOf((*MockNamespace)(nil).ID))
  1000  }
  1001  
  1002  // Index mocks base method.
  1003  func (m *MockNamespace) Index() (NamespaceIndex, error) {
  1004  	m.ctrl.T.Helper()
  1005  	ret := m.ctrl.Call(m, "Index")
  1006  	ret0, _ := ret[0].(NamespaceIndex)
  1007  	ret1, _ := ret[1].(error)
  1008  	return ret0, ret1
  1009  }
  1010  
  1011  // Index indicates an expected call of Index.
  1012  func (mr *MockNamespaceMockRecorder) Index() *gomock.Call {
  1013  	mr.mock.ctrl.T.Helper()
  1014  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Index", reflect.TypeOf((*MockNamespace)(nil).Index))
  1015  }
  1016  
  1017  // Metadata mocks base method.
  1018  func (m *MockNamespace) Metadata() namespace.Metadata {
  1019  	m.ctrl.T.Helper()
  1020  	ret := m.ctrl.Call(m, "Metadata")
  1021  	ret0, _ := ret[0].(namespace.Metadata)
  1022  	return ret0
  1023  }
  1024  
  1025  // Metadata indicates an expected call of Metadata.
  1026  func (mr *MockNamespaceMockRecorder) Metadata() *gomock.Call {
  1027  	mr.mock.ctrl.T.Helper()
  1028  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Metadata", reflect.TypeOf((*MockNamespace)(nil).Metadata))
  1029  }
  1030  
  1031  // NumSeries mocks base method.
  1032  func (m *MockNamespace) NumSeries() int64 {
  1033  	m.ctrl.T.Helper()
  1034  	ret := m.ctrl.Call(m, "NumSeries")
  1035  	ret0, _ := ret[0].(int64)
  1036  	return ret0
  1037  }
  1038  
  1039  // NumSeries indicates an expected call of NumSeries.
  1040  func (mr *MockNamespaceMockRecorder) NumSeries() *gomock.Call {
  1041  	mr.mock.ctrl.T.Helper()
  1042  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NumSeries", reflect.TypeOf((*MockNamespace)(nil).NumSeries))
  1043  }
  1044  
  1045  // Options mocks base method.
  1046  func (m *MockNamespace) Options() namespace.Options {
  1047  	m.ctrl.T.Helper()
  1048  	ret := m.ctrl.Call(m, "Options")
  1049  	ret0, _ := ret[0].(namespace.Options)
  1050  	return ret0
  1051  }
  1052  
  1053  // Options indicates an expected call of Options.
  1054  func (mr *MockNamespaceMockRecorder) Options() *gomock.Call {
  1055  	mr.mock.ctrl.T.Helper()
  1056  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Options", reflect.TypeOf((*MockNamespace)(nil).Options))
  1057  }
  1058  
  1059  // ReadOnly mocks base method.
  1060  func (m *MockNamespace) ReadOnly() bool {
  1061  	m.ctrl.T.Helper()
  1062  	ret := m.ctrl.Call(m, "ReadOnly")
  1063  	ret0, _ := ret[0].(bool)
  1064  	return ret0
  1065  }
  1066  
  1067  // ReadOnly indicates an expected call of ReadOnly.
  1068  func (mr *MockNamespaceMockRecorder) ReadOnly() *gomock.Call {
  1069  	mr.mock.ctrl.T.Helper()
  1070  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadOnly", reflect.TypeOf((*MockNamespace)(nil).ReadOnly))
  1071  }
  1072  
  1073  // ReadableShardAt mocks base method.
  1074  func (m *MockNamespace) ReadableShardAt(shardID uint32) (databaseShard, namespace.Context, error) {
  1075  	m.ctrl.T.Helper()
  1076  	ret := m.ctrl.Call(m, "ReadableShardAt", shardID)
  1077  	ret0, _ := ret[0].(databaseShard)
  1078  	ret1, _ := ret[1].(namespace.Context)
  1079  	ret2, _ := ret[2].(error)
  1080  	return ret0, ret1, ret2
  1081  }
  1082  
  1083  // ReadableShardAt indicates an expected call of ReadableShardAt.
  1084  func (mr *MockNamespaceMockRecorder) ReadableShardAt(shardID interface{}) *gomock.Call {
  1085  	mr.mock.ctrl.T.Helper()
  1086  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadableShardAt", reflect.TypeOf((*MockNamespace)(nil).ReadableShardAt), shardID)
  1087  }
  1088  
  1089  // Schema mocks base method.
  1090  func (m *MockNamespace) Schema() namespace.SchemaDescr {
  1091  	m.ctrl.T.Helper()
  1092  	ret := m.ctrl.Call(m, "Schema")
  1093  	ret0, _ := ret[0].(namespace.SchemaDescr)
  1094  	return ret0
  1095  }
  1096  
  1097  // Schema indicates an expected call of Schema.
  1098  func (mr *MockNamespaceMockRecorder) Schema() *gomock.Call {
  1099  	mr.mock.ctrl.T.Helper()
  1100  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Schema", reflect.TypeOf((*MockNamespace)(nil).Schema))
  1101  }
  1102  
  1103  // SetIndex mocks base method.
  1104  func (m *MockNamespace) SetIndex(reverseIndex NamespaceIndex) error {
  1105  	m.ctrl.T.Helper()
  1106  	ret := m.ctrl.Call(m, "SetIndex", reverseIndex)
  1107  	ret0, _ := ret[0].(error)
  1108  	return ret0
  1109  }
  1110  
  1111  // SetIndex indicates an expected call of SetIndex.
  1112  func (mr *MockNamespaceMockRecorder) SetIndex(reverseIndex interface{}) *gomock.Call {
  1113  	mr.mock.ctrl.T.Helper()
  1114  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetIndex", reflect.TypeOf((*MockNamespace)(nil).SetIndex), reverseIndex)
  1115  }
  1116  
  1117  // SetReadOnly mocks base method.
  1118  func (m *MockNamespace) SetReadOnly(value bool) {
  1119  	m.ctrl.T.Helper()
  1120  	m.ctrl.Call(m, "SetReadOnly", value)
  1121  }
  1122  
  1123  // SetReadOnly indicates an expected call of SetReadOnly.
  1124  func (mr *MockNamespaceMockRecorder) SetReadOnly(value interface{}) *gomock.Call {
  1125  	mr.mock.ctrl.T.Helper()
  1126  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetReadOnly", reflect.TypeOf((*MockNamespace)(nil).SetReadOnly), value)
  1127  }
  1128  
  1129  // Shards mocks base method.
  1130  func (m *MockNamespace) Shards() []Shard {
  1131  	m.ctrl.T.Helper()
  1132  	ret := m.ctrl.Call(m, "Shards")
  1133  	ret0, _ := ret[0].([]Shard)
  1134  	return ret0
  1135  }
  1136  
  1137  // Shards indicates an expected call of Shards.
  1138  func (mr *MockNamespaceMockRecorder) Shards() *gomock.Call {
  1139  	mr.mock.ctrl.T.Helper()
  1140  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Shards", reflect.TypeOf((*MockNamespace)(nil).Shards))
  1141  }
  1142  
  1143  // StorageOptions mocks base method.
  1144  func (m *MockNamespace) StorageOptions() Options {
  1145  	m.ctrl.T.Helper()
  1146  	ret := m.ctrl.Call(m, "StorageOptions")
  1147  	ret0, _ := ret[0].(Options)
  1148  	return ret0
  1149  }
  1150  
  1151  // StorageOptions indicates an expected call of StorageOptions.
  1152  func (mr *MockNamespaceMockRecorder) StorageOptions() *gomock.Call {
  1153  	mr.mock.ctrl.T.Helper()
  1154  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StorageOptions", reflect.TypeOf((*MockNamespace)(nil).StorageOptions))
  1155  }
  1156  
  1157  // MockdatabaseNamespace is a mock of databaseNamespace interface.
  1158  type MockdatabaseNamespace struct {
  1159  	ctrl     *gomock.Controller
  1160  	recorder *MockdatabaseNamespaceMockRecorder
  1161  }
  1162  
  1163  // MockdatabaseNamespaceMockRecorder is the mock recorder for MockdatabaseNamespace.
  1164  type MockdatabaseNamespaceMockRecorder struct {
  1165  	mock *MockdatabaseNamespace
  1166  }
  1167  
  1168  // NewMockdatabaseNamespace creates a new mock instance.
  1169  func NewMockdatabaseNamespace(ctrl *gomock.Controller) *MockdatabaseNamespace {
  1170  	mock := &MockdatabaseNamespace{ctrl: ctrl}
  1171  	mock.recorder = &MockdatabaseNamespaceMockRecorder{mock}
  1172  	return mock
  1173  }
  1174  
  1175  // EXPECT returns an object that allows the caller to indicate expected use.
  1176  func (m *MockdatabaseNamespace) EXPECT() *MockdatabaseNamespaceMockRecorder {
  1177  	return m.recorder
  1178  }
  1179  
  1180  // AggregateQuery mocks base method.
  1181  func (m *MockdatabaseNamespace) AggregateQuery(ctx context.Context, query index.Query, opts index.AggregationOptions) (index.AggregateQueryResult, error) {
  1182  	m.ctrl.T.Helper()
  1183  	ret := m.ctrl.Call(m, "AggregateQuery", ctx, query, opts)
  1184  	ret0, _ := ret[0].(index.AggregateQueryResult)
  1185  	ret1, _ := ret[1].(error)
  1186  	return ret0, ret1
  1187  }
  1188  
  1189  // AggregateQuery indicates an expected call of AggregateQuery.
  1190  func (mr *MockdatabaseNamespaceMockRecorder) AggregateQuery(ctx, query, opts interface{}) *gomock.Call {
  1191  	mr.mock.ctrl.T.Helper()
  1192  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AggregateQuery", reflect.TypeOf((*MockdatabaseNamespace)(nil).AggregateQuery), ctx, query, opts)
  1193  }
  1194  
  1195  // AggregateTiles mocks base method.
  1196  func (m *MockdatabaseNamespace) AggregateTiles(ctx context.Context, sourceNs databaseNamespace, opts AggregateTilesOptions) (int64, error) {
  1197  	m.ctrl.T.Helper()
  1198  	ret := m.ctrl.Call(m, "AggregateTiles", ctx, sourceNs, opts)
  1199  	ret0, _ := ret[0].(int64)
  1200  	ret1, _ := ret[1].(error)
  1201  	return ret0, ret1
  1202  }
  1203  
  1204  // AggregateTiles indicates an expected call of AggregateTiles.
  1205  func (mr *MockdatabaseNamespaceMockRecorder) AggregateTiles(ctx, sourceNs, opts interface{}) *gomock.Call {
  1206  	mr.mock.ctrl.T.Helper()
  1207  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AggregateTiles", reflect.TypeOf((*MockdatabaseNamespace)(nil).AggregateTiles), ctx, sourceNs, opts)
  1208  }
  1209  
  1210  // AssignShardSet mocks base method.
  1211  func (m *MockdatabaseNamespace) AssignShardSet(shardSet sharding.ShardSet) {
  1212  	m.ctrl.T.Helper()
  1213  	m.ctrl.Call(m, "AssignShardSet", shardSet)
  1214  }
  1215  
  1216  // AssignShardSet indicates an expected call of AssignShardSet.
  1217  func (mr *MockdatabaseNamespaceMockRecorder) AssignShardSet(shardSet interface{}) *gomock.Call {
  1218  	mr.mock.ctrl.T.Helper()
  1219  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AssignShardSet", reflect.TypeOf((*MockdatabaseNamespace)(nil).AssignShardSet), shardSet)
  1220  }
  1221  
  1222  // Bootstrap mocks base method.
  1223  func (m *MockdatabaseNamespace) Bootstrap(ctx context.Context, bootstrapResult bootstrap.NamespaceResult) error {
  1224  	m.ctrl.T.Helper()
  1225  	ret := m.ctrl.Call(m, "Bootstrap", ctx, bootstrapResult)
  1226  	ret0, _ := ret[0].(error)
  1227  	return ret0
  1228  }
  1229  
  1230  // Bootstrap indicates an expected call of Bootstrap.
  1231  func (mr *MockdatabaseNamespaceMockRecorder) Bootstrap(ctx, bootstrapResult interface{}) *gomock.Call {
  1232  	mr.mock.ctrl.T.Helper()
  1233  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Bootstrap", reflect.TypeOf((*MockdatabaseNamespace)(nil).Bootstrap), ctx, bootstrapResult)
  1234  }
  1235  
  1236  // BootstrapState mocks base method.
  1237  func (m *MockdatabaseNamespace) BootstrapState() BootstrapState {
  1238  	m.ctrl.T.Helper()
  1239  	ret := m.ctrl.Call(m, "BootstrapState")
  1240  	ret0, _ := ret[0].(BootstrapState)
  1241  	return ret0
  1242  }
  1243  
  1244  // BootstrapState indicates an expected call of BootstrapState.
  1245  func (mr *MockdatabaseNamespaceMockRecorder) BootstrapState() *gomock.Call {
  1246  	mr.mock.ctrl.T.Helper()
  1247  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BootstrapState", reflect.TypeOf((*MockdatabaseNamespace)(nil).BootstrapState))
  1248  }
  1249  
  1250  // Close mocks base method.
  1251  func (m *MockdatabaseNamespace) Close() error {
  1252  	m.ctrl.T.Helper()
  1253  	ret := m.ctrl.Call(m, "Close")
  1254  	ret0, _ := ret[0].(error)
  1255  	return ret0
  1256  }
  1257  
  1258  // Close indicates an expected call of Close.
  1259  func (mr *MockdatabaseNamespaceMockRecorder) Close() *gomock.Call {
  1260  	mr.mock.ctrl.T.Helper()
  1261  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockdatabaseNamespace)(nil).Close))
  1262  }
  1263  
  1264  // ColdFlush mocks base method.
  1265  func (m *MockdatabaseNamespace) ColdFlush(flush persist.FlushPreparer) error {
  1266  	m.ctrl.T.Helper()
  1267  	ret := m.ctrl.Call(m, "ColdFlush", flush)
  1268  	ret0, _ := ret[0].(error)
  1269  	return ret0
  1270  }
  1271  
  1272  // ColdFlush indicates an expected call of ColdFlush.
  1273  func (mr *MockdatabaseNamespaceMockRecorder) ColdFlush(flush interface{}) *gomock.Call {
  1274  	mr.mock.ctrl.T.Helper()
  1275  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ColdFlush", reflect.TypeOf((*MockdatabaseNamespace)(nil).ColdFlush), flush)
  1276  }
  1277  
  1278  // DocRef mocks base method.
  1279  func (m *MockdatabaseNamespace) DocRef(id ident.ID) (doc.Metadata, bool, error) {
  1280  	m.ctrl.T.Helper()
  1281  	ret := m.ctrl.Call(m, "DocRef", id)
  1282  	ret0, _ := ret[0].(doc.Metadata)
  1283  	ret1, _ := ret[1].(bool)
  1284  	ret2, _ := ret[2].(error)
  1285  	return ret0, ret1, ret2
  1286  }
  1287  
  1288  // DocRef indicates an expected call of DocRef.
  1289  func (mr *MockdatabaseNamespaceMockRecorder) DocRef(id interface{}) *gomock.Call {
  1290  	mr.mock.ctrl.T.Helper()
  1291  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DocRef", reflect.TypeOf((*MockdatabaseNamespace)(nil).DocRef), id)
  1292  }
  1293  
  1294  // FetchBlocks mocks base method.
  1295  func (m *MockdatabaseNamespace) FetchBlocks(ctx context.Context, shardID uint32, id ident.ID, starts []time0.UnixNano) ([]block.FetchBlockResult, error) {
  1296  	m.ctrl.T.Helper()
  1297  	ret := m.ctrl.Call(m, "FetchBlocks", ctx, shardID, id, starts)
  1298  	ret0, _ := ret[0].([]block.FetchBlockResult)
  1299  	ret1, _ := ret[1].(error)
  1300  	return ret0, ret1
  1301  }
  1302  
  1303  // FetchBlocks indicates an expected call of FetchBlocks.
  1304  func (mr *MockdatabaseNamespaceMockRecorder) FetchBlocks(ctx, shardID, id, starts interface{}) *gomock.Call {
  1305  	mr.mock.ctrl.T.Helper()
  1306  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchBlocks", reflect.TypeOf((*MockdatabaseNamespace)(nil).FetchBlocks), ctx, shardID, id, starts)
  1307  }
  1308  
  1309  // FetchBlocksMetadataV2 mocks base method.
  1310  func (m *MockdatabaseNamespace) FetchBlocksMetadataV2(ctx context.Context, shardID uint32, start, end time0.UnixNano, limit int64, pageToken PageToken, opts block.FetchBlocksMetadataOptions) (block.FetchBlocksMetadataResults, PageToken, error) {
  1311  	m.ctrl.T.Helper()
  1312  	ret := m.ctrl.Call(m, "FetchBlocksMetadataV2", ctx, shardID, start, end, limit, pageToken, opts)
  1313  	ret0, _ := ret[0].(block.FetchBlocksMetadataResults)
  1314  	ret1, _ := ret[1].(PageToken)
  1315  	ret2, _ := ret[2].(error)
  1316  	return ret0, ret1, ret2
  1317  }
  1318  
  1319  // FetchBlocksMetadataV2 indicates an expected call of FetchBlocksMetadataV2.
  1320  func (mr *MockdatabaseNamespaceMockRecorder) FetchBlocksMetadataV2(ctx, shardID, start, end, limit, pageToken, opts interface{}) *gomock.Call {
  1321  	mr.mock.ctrl.T.Helper()
  1322  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchBlocksMetadataV2", reflect.TypeOf((*MockdatabaseNamespace)(nil).FetchBlocksMetadataV2), ctx, shardID, start, end, limit, pageToken, opts)
  1323  }
  1324  
  1325  // FlushIndex mocks base method.
  1326  func (m *MockdatabaseNamespace) FlushIndex(flush persist.IndexFlush) error {
  1327  	m.ctrl.T.Helper()
  1328  	ret := m.ctrl.Call(m, "FlushIndex", flush)
  1329  	ret0, _ := ret[0].(error)
  1330  	return ret0
  1331  }
  1332  
  1333  // FlushIndex indicates an expected call of FlushIndex.
  1334  func (mr *MockdatabaseNamespaceMockRecorder) FlushIndex(flush interface{}) *gomock.Call {
  1335  	mr.mock.ctrl.T.Helper()
  1336  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FlushIndex", reflect.TypeOf((*MockdatabaseNamespace)(nil).FlushIndex), flush)
  1337  }
  1338  
  1339  // FlushState mocks base method.
  1340  func (m *MockdatabaseNamespace) FlushState(shardID uint32, blockStart time0.UnixNano) (fileOpState, error) {
  1341  	m.ctrl.T.Helper()
  1342  	ret := m.ctrl.Call(m, "FlushState", shardID, blockStart)
  1343  	ret0, _ := ret[0].(fileOpState)
  1344  	ret1, _ := ret[1].(error)
  1345  	return ret0, ret1
  1346  }
  1347  
  1348  // FlushState indicates an expected call of FlushState.
  1349  func (mr *MockdatabaseNamespaceMockRecorder) FlushState(shardID, blockStart interface{}) *gomock.Call {
  1350  	mr.mock.ctrl.T.Helper()
  1351  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FlushState", reflect.TypeOf((*MockdatabaseNamespace)(nil).FlushState), shardID, blockStart)
  1352  }
  1353  
  1354  // ID mocks base method.
  1355  func (m *MockdatabaseNamespace) ID() ident.ID {
  1356  	m.ctrl.T.Helper()
  1357  	ret := m.ctrl.Call(m, "ID")
  1358  	ret0, _ := ret[0].(ident.ID)
  1359  	return ret0
  1360  }
  1361  
  1362  // ID indicates an expected call of ID.
  1363  func (mr *MockdatabaseNamespaceMockRecorder) ID() *gomock.Call {
  1364  	mr.mock.ctrl.T.Helper()
  1365  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ID", reflect.TypeOf((*MockdatabaseNamespace)(nil).ID))
  1366  }
  1367  
  1368  // Index mocks base method.
  1369  func (m *MockdatabaseNamespace) Index() (NamespaceIndex, error) {
  1370  	m.ctrl.T.Helper()
  1371  	ret := m.ctrl.Call(m, "Index")
  1372  	ret0, _ := ret[0].(NamespaceIndex)
  1373  	ret1, _ := ret[1].(error)
  1374  	return ret0, ret1
  1375  }
  1376  
  1377  // Index indicates an expected call of Index.
  1378  func (mr *MockdatabaseNamespaceMockRecorder) Index() *gomock.Call {
  1379  	mr.mock.ctrl.T.Helper()
  1380  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Index", reflect.TypeOf((*MockdatabaseNamespace)(nil).Index))
  1381  }
  1382  
  1383  // Metadata mocks base method.
  1384  func (m *MockdatabaseNamespace) Metadata() namespace.Metadata {
  1385  	m.ctrl.T.Helper()
  1386  	ret := m.ctrl.Call(m, "Metadata")
  1387  	ret0, _ := ret[0].(namespace.Metadata)
  1388  	return ret0
  1389  }
  1390  
  1391  // Metadata indicates an expected call of Metadata.
  1392  func (mr *MockdatabaseNamespaceMockRecorder) Metadata() *gomock.Call {
  1393  	mr.mock.ctrl.T.Helper()
  1394  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Metadata", reflect.TypeOf((*MockdatabaseNamespace)(nil).Metadata))
  1395  }
  1396  
  1397  // NeedsFlush mocks base method.
  1398  func (m *MockdatabaseNamespace) NeedsFlush(alignedInclusiveStart, alignedInclusiveEnd time0.UnixNano) (bool, error) {
  1399  	m.ctrl.T.Helper()
  1400  	ret := m.ctrl.Call(m, "NeedsFlush", alignedInclusiveStart, alignedInclusiveEnd)
  1401  	ret0, _ := ret[0].(bool)
  1402  	ret1, _ := ret[1].(error)
  1403  	return ret0, ret1
  1404  }
  1405  
  1406  // NeedsFlush indicates an expected call of NeedsFlush.
  1407  func (mr *MockdatabaseNamespaceMockRecorder) NeedsFlush(alignedInclusiveStart, alignedInclusiveEnd interface{}) *gomock.Call {
  1408  	mr.mock.ctrl.T.Helper()
  1409  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NeedsFlush", reflect.TypeOf((*MockdatabaseNamespace)(nil).NeedsFlush), alignedInclusiveStart, alignedInclusiveEnd)
  1410  }
  1411  
  1412  // NumSeries mocks base method.
  1413  func (m *MockdatabaseNamespace) NumSeries() int64 {
  1414  	m.ctrl.T.Helper()
  1415  	ret := m.ctrl.Call(m, "NumSeries")
  1416  	ret0, _ := ret[0].(int64)
  1417  	return ret0
  1418  }
  1419  
  1420  // NumSeries indicates an expected call of NumSeries.
  1421  func (mr *MockdatabaseNamespaceMockRecorder) NumSeries() *gomock.Call {
  1422  	mr.mock.ctrl.T.Helper()
  1423  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NumSeries", reflect.TypeOf((*MockdatabaseNamespace)(nil).NumSeries))
  1424  }
  1425  
  1426  // Options mocks base method.
  1427  func (m *MockdatabaseNamespace) Options() namespace.Options {
  1428  	m.ctrl.T.Helper()
  1429  	ret := m.ctrl.Call(m, "Options")
  1430  	ret0, _ := ret[0].(namespace.Options)
  1431  	return ret0
  1432  }
  1433  
  1434  // Options indicates an expected call of Options.
  1435  func (mr *MockdatabaseNamespaceMockRecorder) Options() *gomock.Call {
  1436  	mr.mock.ctrl.T.Helper()
  1437  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Options", reflect.TypeOf((*MockdatabaseNamespace)(nil).Options))
  1438  }
  1439  
  1440  // OwnedShards mocks base method.
  1441  func (m *MockdatabaseNamespace) OwnedShards() []databaseShard {
  1442  	m.ctrl.T.Helper()
  1443  	ret := m.ctrl.Call(m, "OwnedShards")
  1444  	ret0, _ := ret[0].([]databaseShard)
  1445  	return ret0
  1446  }
  1447  
  1448  // OwnedShards indicates an expected call of OwnedShards.
  1449  func (mr *MockdatabaseNamespaceMockRecorder) OwnedShards() *gomock.Call {
  1450  	mr.mock.ctrl.T.Helper()
  1451  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OwnedShards", reflect.TypeOf((*MockdatabaseNamespace)(nil).OwnedShards))
  1452  }
  1453  
  1454  // PrepareBootstrap mocks base method.
  1455  func (m *MockdatabaseNamespace) PrepareBootstrap(ctx context.Context) ([]databaseShard, error) {
  1456  	m.ctrl.T.Helper()
  1457  	ret := m.ctrl.Call(m, "PrepareBootstrap", ctx)
  1458  	ret0, _ := ret[0].([]databaseShard)
  1459  	ret1, _ := ret[1].(error)
  1460  	return ret0, ret1
  1461  }
  1462  
  1463  // PrepareBootstrap indicates an expected call of PrepareBootstrap.
  1464  func (mr *MockdatabaseNamespaceMockRecorder) PrepareBootstrap(ctx interface{}) *gomock.Call {
  1465  	mr.mock.ctrl.T.Helper()
  1466  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PrepareBootstrap", reflect.TypeOf((*MockdatabaseNamespace)(nil).PrepareBootstrap), ctx)
  1467  }
  1468  
  1469  // QueryIDs mocks base method.
  1470  func (m *MockdatabaseNamespace) QueryIDs(ctx context.Context, query index.Query, opts index.QueryOptions) (index.QueryResult, error) {
  1471  	m.ctrl.T.Helper()
  1472  	ret := m.ctrl.Call(m, "QueryIDs", ctx, query, opts)
  1473  	ret0, _ := ret[0].(index.QueryResult)
  1474  	ret1, _ := ret[1].(error)
  1475  	return ret0, ret1
  1476  }
  1477  
  1478  // QueryIDs indicates an expected call of QueryIDs.
  1479  func (mr *MockdatabaseNamespaceMockRecorder) QueryIDs(ctx, query, opts interface{}) *gomock.Call {
  1480  	mr.mock.ctrl.T.Helper()
  1481  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueryIDs", reflect.TypeOf((*MockdatabaseNamespace)(nil).QueryIDs), ctx, query, opts)
  1482  }
  1483  
  1484  // ReadEncoded mocks base method.
  1485  func (m *MockdatabaseNamespace) ReadEncoded(ctx context.Context, id ident.ID, start, end time0.UnixNano) (series.BlockReaderIter, error) {
  1486  	m.ctrl.T.Helper()
  1487  	ret := m.ctrl.Call(m, "ReadEncoded", ctx, id, start, end)
  1488  	ret0, _ := ret[0].(series.BlockReaderIter)
  1489  	ret1, _ := ret[1].(error)
  1490  	return ret0, ret1
  1491  }
  1492  
  1493  // ReadEncoded indicates an expected call of ReadEncoded.
  1494  func (mr *MockdatabaseNamespaceMockRecorder) ReadEncoded(ctx, id, start, end interface{}) *gomock.Call {
  1495  	mr.mock.ctrl.T.Helper()
  1496  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadEncoded", reflect.TypeOf((*MockdatabaseNamespace)(nil).ReadEncoded), ctx, id, start, end)
  1497  }
  1498  
  1499  // ReadOnly mocks base method.
  1500  func (m *MockdatabaseNamespace) ReadOnly() bool {
  1501  	m.ctrl.T.Helper()
  1502  	ret := m.ctrl.Call(m, "ReadOnly")
  1503  	ret0, _ := ret[0].(bool)
  1504  	return ret0
  1505  }
  1506  
  1507  // ReadOnly indicates an expected call of ReadOnly.
  1508  func (mr *MockdatabaseNamespaceMockRecorder) ReadOnly() *gomock.Call {
  1509  	mr.mock.ctrl.T.Helper()
  1510  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadOnly", reflect.TypeOf((*MockdatabaseNamespace)(nil).ReadOnly))
  1511  }
  1512  
  1513  // ReadableShardAt mocks base method.
  1514  func (m *MockdatabaseNamespace) ReadableShardAt(shardID uint32) (databaseShard, namespace.Context, error) {
  1515  	m.ctrl.T.Helper()
  1516  	ret := m.ctrl.Call(m, "ReadableShardAt", shardID)
  1517  	ret0, _ := ret[0].(databaseShard)
  1518  	ret1, _ := ret[1].(namespace.Context)
  1519  	ret2, _ := ret[2].(error)
  1520  	return ret0, ret1, ret2
  1521  }
  1522  
  1523  // ReadableShardAt indicates an expected call of ReadableShardAt.
  1524  func (mr *MockdatabaseNamespaceMockRecorder) ReadableShardAt(shardID interface{}) *gomock.Call {
  1525  	mr.mock.ctrl.T.Helper()
  1526  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadableShardAt", reflect.TypeOf((*MockdatabaseNamespace)(nil).ReadableShardAt), shardID)
  1527  }
  1528  
  1529  // Repair mocks base method.
  1530  func (m *MockdatabaseNamespace) Repair(repairer databaseShardRepairer, tr time0.Range, opts NamespaceRepairOptions) error {
  1531  	m.ctrl.T.Helper()
  1532  	ret := m.ctrl.Call(m, "Repair", repairer, tr, opts)
  1533  	ret0, _ := ret[0].(error)
  1534  	return ret0
  1535  }
  1536  
  1537  // Repair indicates an expected call of Repair.
  1538  func (mr *MockdatabaseNamespaceMockRecorder) Repair(repairer, tr, opts interface{}) *gomock.Call {
  1539  	mr.mock.ctrl.T.Helper()
  1540  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Repair", reflect.TypeOf((*MockdatabaseNamespace)(nil).Repair), repairer, tr, opts)
  1541  }
  1542  
  1543  // Schema mocks base method.
  1544  func (m *MockdatabaseNamespace) Schema() namespace.SchemaDescr {
  1545  	m.ctrl.T.Helper()
  1546  	ret := m.ctrl.Call(m, "Schema")
  1547  	ret0, _ := ret[0].(namespace.SchemaDescr)
  1548  	return ret0
  1549  }
  1550  
  1551  // Schema indicates an expected call of Schema.
  1552  func (mr *MockdatabaseNamespaceMockRecorder) Schema() *gomock.Call {
  1553  	mr.mock.ctrl.T.Helper()
  1554  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Schema", reflect.TypeOf((*MockdatabaseNamespace)(nil).Schema))
  1555  }
  1556  
  1557  // SeriesRefResolver mocks base method.
  1558  func (m *MockdatabaseNamespace) SeriesRefResolver(shardID uint32, id ident.ID, tags ident.TagIterator) (bootstrap.SeriesRefResolver, bool, error) {
  1559  	m.ctrl.T.Helper()
  1560  	ret := m.ctrl.Call(m, "SeriesRefResolver", shardID, id, tags)
  1561  	ret0, _ := ret[0].(bootstrap.SeriesRefResolver)
  1562  	ret1, _ := ret[1].(bool)
  1563  	ret2, _ := ret[2].(error)
  1564  	return ret0, ret1, ret2
  1565  }
  1566  
  1567  // SeriesRefResolver indicates an expected call of SeriesRefResolver.
  1568  func (mr *MockdatabaseNamespaceMockRecorder) SeriesRefResolver(shardID, id, tags interface{}) *gomock.Call {
  1569  	mr.mock.ctrl.T.Helper()
  1570  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SeriesRefResolver", reflect.TypeOf((*MockdatabaseNamespace)(nil).SeriesRefResolver), shardID, id, tags)
  1571  }
  1572  
  1573  // SetIndex mocks base method.
  1574  func (m *MockdatabaseNamespace) SetIndex(reverseIndex NamespaceIndex) error {
  1575  	m.ctrl.T.Helper()
  1576  	ret := m.ctrl.Call(m, "SetIndex", reverseIndex)
  1577  	ret0, _ := ret[0].(error)
  1578  	return ret0
  1579  }
  1580  
  1581  // SetIndex indicates an expected call of SetIndex.
  1582  func (mr *MockdatabaseNamespaceMockRecorder) SetIndex(reverseIndex interface{}) *gomock.Call {
  1583  	mr.mock.ctrl.T.Helper()
  1584  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetIndex", reflect.TypeOf((*MockdatabaseNamespace)(nil).SetIndex), reverseIndex)
  1585  }
  1586  
  1587  // SetReadOnly mocks base method.
  1588  func (m *MockdatabaseNamespace) SetReadOnly(value bool) {
  1589  	m.ctrl.T.Helper()
  1590  	m.ctrl.Call(m, "SetReadOnly", value)
  1591  }
  1592  
  1593  // SetReadOnly indicates an expected call of SetReadOnly.
  1594  func (mr *MockdatabaseNamespaceMockRecorder) SetReadOnly(value interface{}) *gomock.Call {
  1595  	mr.mock.ctrl.T.Helper()
  1596  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetReadOnly", reflect.TypeOf((*MockdatabaseNamespace)(nil).SetReadOnly), value)
  1597  }
  1598  
  1599  // ShardBootstrapState mocks base method.
  1600  func (m *MockdatabaseNamespace) ShardBootstrapState() ShardBootstrapStates {
  1601  	m.ctrl.T.Helper()
  1602  	ret := m.ctrl.Call(m, "ShardBootstrapState")
  1603  	ret0, _ := ret[0].(ShardBootstrapStates)
  1604  	return ret0
  1605  }
  1606  
  1607  // ShardBootstrapState indicates an expected call of ShardBootstrapState.
  1608  func (mr *MockdatabaseNamespaceMockRecorder) ShardBootstrapState() *gomock.Call {
  1609  	mr.mock.ctrl.T.Helper()
  1610  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ShardBootstrapState", reflect.TypeOf((*MockdatabaseNamespace)(nil).ShardBootstrapState))
  1611  }
  1612  
  1613  // Shards mocks base method.
  1614  func (m *MockdatabaseNamespace) Shards() []Shard {
  1615  	m.ctrl.T.Helper()
  1616  	ret := m.ctrl.Call(m, "Shards")
  1617  	ret0, _ := ret[0].([]Shard)
  1618  	return ret0
  1619  }
  1620  
  1621  // Shards indicates an expected call of Shards.
  1622  func (mr *MockdatabaseNamespaceMockRecorder) Shards() *gomock.Call {
  1623  	mr.mock.ctrl.T.Helper()
  1624  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Shards", reflect.TypeOf((*MockdatabaseNamespace)(nil).Shards))
  1625  }
  1626  
  1627  // Snapshot mocks base method.
  1628  func (m *MockdatabaseNamespace) Snapshot(blockStarts []time0.UnixNano, snapshotTime time0.UnixNano, flush persist.SnapshotPreparer) error {
  1629  	m.ctrl.T.Helper()
  1630  	ret := m.ctrl.Call(m, "Snapshot", blockStarts, snapshotTime, flush)
  1631  	ret0, _ := ret[0].(error)
  1632  	return ret0
  1633  }
  1634  
  1635  // Snapshot indicates an expected call of Snapshot.
  1636  func (mr *MockdatabaseNamespaceMockRecorder) Snapshot(blockStarts, snapshotTime, flush interface{}) *gomock.Call {
  1637  	mr.mock.ctrl.T.Helper()
  1638  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Snapshot", reflect.TypeOf((*MockdatabaseNamespace)(nil).Snapshot), blockStarts, snapshotTime, flush)
  1639  }
  1640  
  1641  // StorageOptions mocks base method.
  1642  func (m *MockdatabaseNamespace) StorageOptions() Options {
  1643  	m.ctrl.T.Helper()
  1644  	ret := m.ctrl.Call(m, "StorageOptions")
  1645  	ret0, _ := ret[0].(Options)
  1646  	return ret0
  1647  }
  1648  
  1649  // StorageOptions indicates an expected call of StorageOptions.
  1650  func (mr *MockdatabaseNamespaceMockRecorder) StorageOptions() *gomock.Call {
  1651  	mr.mock.ctrl.T.Helper()
  1652  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StorageOptions", reflect.TypeOf((*MockdatabaseNamespace)(nil).StorageOptions))
  1653  }
  1654  
  1655  // Tick mocks base method.
  1656  func (m *MockdatabaseNamespace) Tick(c context.Cancellable, startTime time0.UnixNano) error {
  1657  	m.ctrl.T.Helper()
  1658  	ret := m.ctrl.Call(m, "Tick", c, startTime)
  1659  	ret0, _ := ret[0].(error)
  1660  	return ret0
  1661  }
  1662  
  1663  // Tick indicates an expected call of Tick.
  1664  func (mr *MockdatabaseNamespaceMockRecorder) Tick(c, startTime interface{}) *gomock.Call {
  1665  	mr.mock.ctrl.T.Helper()
  1666  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Tick", reflect.TypeOf((*MockdatabaseNamespace)(nil).Tick), c, startTime)
  1667  }
  1668  
  1669  // Truncate mocks base method.
  1670  func (m *MockdatabaseNamespace) Truncate() (int64, error) {
  1671  	m.ctrl.T.Helper()
  1672  	ret := m.ctrl.Call(m, "Truncate")
  1673  	ret0, _ := ret[0].(int64)
  1674  	ret1, _ := ret[1].(error)
  1675  	return ret0, ret1
  1676  }
  1677  
  1678  // Truncate indicates an expected call of Truncate.
  1679  func (mr *MockdatabaseNamespaceMockRecorder) Truncate() *gomock.Call {
  1680  	mr.mock.ctrl.T.Helper()
  1681  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Truncate", reflect.TypeOf((*MockdatabaseNamespace)(nil).Truncate))
  1682  }
  1683  
  1684  // WarmFlush mocks base method.
  1685  func (m *MockdatabaseNamespace) WarmFlush(blockStart time0.UnixNano, flush persist.FlushPreparer) error {
  1686  	m.ctrl.T.Helper()
  1687  	ret := m.ctrl.Call(m, "WarmFlush", blockStart, flush)
  1688  	ret0, _ := ret[0].(error)
  1689  	return ret0
  1690  }
  1691  
  1692  // WarmFlush indicates an expected call of WarmFlush.
  1693  func (mr *MockdatabaseNamespaceMockRecorder) WarmFlush(blockStart, flush interface{}) *gomock.Call {
  1694  	mr.mock.ctrl.T.Helper()
  1695  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WarmFlush", reflect.TypeOf((*MockdatabaseNamespace)(nil).WarmFlush), blockStart, flush)
  1696  }
  1697  
  1698  // Write mocks base method.
  1699  func (m *MockdatabaseNamespace) Write(ctx context.Context, id ident.ID, timestamp time0.UnixNano, value float64, unit time0.Unit, annotation []byte) (SeriesWrite, error) {
  1700  	m.ctrl.T.Helper()
  1701  	ret := m.ctrl.Call(m, "Write", ctx, id, timestamp, value, unit, annotation)
  1702  	ret0, _ := ret[0].(SeriesWrite)
  1703  	ret1, _ := ret[1].(error)
  1704  	return ret0, ret1
  1705  }
  1706  
  1707  // Write indicates an expected call of Write.
  1708  func (mr *MockdatabaseNamespaceMockRecorder) Write(ctx, id, timestamp, value, unit, annotation interface{}) *gomock.Call {
  1709  	mr.mock.ctrl.T.Helper()
  1710  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Write", reflect.TypeOf((*MockdatabaseNamespace)(nil).Write), ctx, id, timestamp, value, unit, annotation)
  1711  }
  1712  
  1713  // WritePendingIndexInserts mocks base method.
  1714  func (m *MockdatabaseNamespace) WritePendingIndexInserts(pending []writes.PendingIndexInsert) error {
  1715  	m.ctrl.T.Helper()
  1716  	ret := m.ctrl.Call(m, "WritePendingIndexInserts", pending)
  1717  	ret0, _ := ret[0].(error)
  1718  	return ret0
  1719  }
  1720  
  1721  // WritePendingIndexInserts indicates an expected call of WritePendingIndexInserts.
  1722  func (mr *MockdatabaseNamespaceMockRecorder) WritePendingIndexInserts(pending interface{}) *gomock.Call {
  1723  	mr.mock.ctrl.T.Helper()
  1724  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WritePendingIndexInserts", reflect.TypeOf((*MockdatabaseNamespace)(nil).WritePendingIndexInserts), pending)
  1725  }
  1726  
  1727  // WriteTagged mocks base method.
  1728  func (m *MockdatabaseNamespace) WriteTagged(ctx context.Context, id ident.ID, tagResolver convert.TagMetadataResolver, timestamp time0.UnixNano, value float64, unit time0.Unit, annotation []byte) (SeriesWrite, error) {
  1729  	m.ctrl.T.Helper()
  1730  	ret := m.ctrl.Call(m, "WriteTagged", ctx, id, tagResolver, timestamp, value, unit, annotation)
  1731  	ret0, _ := ret[0].(SeriesWrite)
  1732  	ret1, _ := ret[1].(error)
  1733  	return ret0, ret1
  1734  }
  1735  
  1736  // WriteTagged indicates an expected call of WriteTagged.
  1737  func (mr *MockdatabaseNamespaceMockRecorder) WriteTagged(ctx, id, tagResolver, timestamp, value, unit, annotation interface{}) *gomock.Call {
  1738  	mr.mock.ctrl.T.Helper()
  1739  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteTagged", reflect.TypeOf((*MockdatabaseNamespace)(nil).WriteTagged), ctx, id, tagResolver, timestamp, value, unit, annotation)
  1740  }
  1741  
  1742  // MockShard is a mock of Shard interface.
  1743  type MockShard struct {
  1744  	ctrl     *gomock.Controller
  1745  	recorder *MockShardMockRecorder
  1746  }
  1747  
  1748  // MockShardMockRecorder is the mock recorder for MockShard.
  1749  type MockShardMockRecorder struct {
  1750  	mock *MockShard
  1751  }
  1752  
  1753  // NewMockShard creates a new mock instance.
  1754  func NewMockShard(ctrl *gomock.Controller) *MockShard {
  1755  	mock := &MockShard{ctrl: ctrl}
  1756  	mock.recorder = &MockShardMockRecorder{mock}
  1757  	return mock
  1758  }
  1759  
  1760  // EXPECT returns an object that allows the caller to indicate expected use.
  1761  func (m *MockShard) EXPECT() *MockShardMockRecorder {
  1762  	return m.recorder
  1763  }
  1764  
  1765  // BootstrapState mocks base method.
  1766  func (m *MockShard) BootstrapState() BootstrapState {
  1767  	m.ctrl.T.Helper()
  1768  	ret := m.ctrl.Call(m, "BootstrapState")
  1769  	ret0, _ := ret[0].(BootstrapState)
  1770  	return ret0
  1771  }
  1772  
  1773  // BootstrapState indicates an expected call of BootstrapState.
  1774  func (mr *MockShardMockRecorder) BootstrapState() *gomock.Call {
  1775  	mr.mock.ctrl.T.Helper()
  1776  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BootstrapState", reflect.TypeOf((*MockShard)(nil).BootstrapState))
  1777  }
  1778  
  1779  // Close mocks base method.
  1780  func (m *MockShard) Close() error {
  1781  	m.ctrl.T.Helper()
  1782  	ret := m.ctrl.Call(m, "Close")
  1783  	ret0, _ := ret[0].(error)
  1784  	return ret0
  1785  }
  1786  
  1787  // Close indicates an expected call of Close.
  1788  func (mr *MockShardMockRecorder) Close() *gomock.Call {
  1789  	mr.mock.ctrl.T.Helper()
  1790  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockShard)(nil).Close))
  1791  }
  1792  
  1793  // Closed mocks base method.
  1794  func (m *MockShard) Closed() bool {
  1795  	m.ctrl.T.Helper()
  1796  	ret := m.ctrl.Call(m, "Closed")
  1797  	ret0, _ := ret[0].(bool)
  1798  	return ret0
  1799  }
  1800  
  1801  // Closed indicates an expected call of Closed.
  1802  func (mr *MockShardMockRecorder) Closed() *gomock.Call {
  1803  	mr.mock.ctrl.T.Helper()
  1804  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Closed", reflect.TypeOf((*MockShard)(nil).Closed))
  1805  }
  1806  
  1807  // ID mocks base method.
  1808  func (m *MockShard) ID() uint32 {
  1809  	m.ctrl.T.Helper()
  1810  	ret := m.ctrl.Call(m, "ID")
  1811  	ret0, _ := ret[0].(uint32)
  1812  	return ret0
  1813  }
  1814  
  1815  // ID indicates an expected call of ID.
  1816  func (mr *MockShardMockRecorder) ID() *gomock.Call {
  1817  	mr.mock.ctrl.T.Helper()
  1818  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ID", reflect.TypeOf((*MockShard)(nil).ID))
  1819  }
  1820  
  1821  // IsBootstrapped mocks base method.
  1822  func (m *MockShard) IsBootstrapped() bool {
  1823  	m.ctrl.T.Helper()
  1824  	ret := m.ctrl.Call(m, "IsBootstrapped")
  1825  	ret0, _ := ret[0].(bool)
  1826  	return ret0
  1827  }
  1828  
  1829  // IsBootstrapped indicates an expected call of IsBootstrapped.
  1830  func (mr *MockShardMockRecorder) IsBootstrapped() *gomock.Call {
  1831  	mr.mock.ctrl.T.Helper()
  1832  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsBootstrapped", reflect.TypeOf((*MockShard)(nil).IsBootstrapped))
  1833  }
  1834  
  1835  // NumSeries mocks base method.
  1836  func (m *MockShard) NumSeries() int64 {
  1837  	m.ctrl.T.Helper()
  1838  	ret := m.ctrl.Call(m, "NumSeries")
  1839  	ret0, _ := ret[0].(int64)
  1840  	return ret0
  1841  }
  1842  
  1843  // NumSeries indicates an expected call of NumSeries.
  1844  func (mr *MockShardMockRecorder) NumSeries() *gomock.Call {
  1845  	mr.mock.ctrl.T.Helper()
  1846  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NumSeries", reflect.TypeOf((*MockShard)(nil).NumSeries))
  1847  }
  1848  
  1849  // OpenStreamingReader mocks base method.
  1850  func (m *MockShard) OpenStreamingReader(blockStart time0.UnixNano) (fs.DataFileSetReader, error) {
  1851  	m.ctrl.T.Helper()
  1852  	ret := m.ctrl.Call(m, "OpenStreamingReader", blockStart)
  1853  	ret0, _ := ret[0].(fs.DataFileSetReader)
  1854  	ret1, _ := ret[1].(error)
  1855  	return ret0, ret1
  1856  }
  1857  
  1858  // OpenStreamingReader indicates an expected call of OpenStreamingReader.
  1859  func (mr *MockShardMockRecorder) OpenStreamingReader(blockStart interface{}) *gomock.Call {
  1860  	mr.mock.ctrl.T.Helper()
  1861  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OpenStreamingReader", reflect.TypeOf((*MockShard)(nil).OpenStreamingReader), blockStart)
  1862  }
  1863  
  1864  // TryRetrieveSeriesAndIncrementReaderWriterCount mocks base method.
  1865  func (m *MockShard) TryRetrieveSeriesAndIncrementReaderWriterCount(id ident.ID) (*Entry, WritableSeriesOptions, error) {
  1866  	m.ctrl.T.Helper()
  1867  	ret := m.ctrl.Call(m, "TryRetrieveSeriesAndIncrementReaderWriterCount", id)
  1868  	ret0, _ := ret[0].(*Entry)
  1869  	ret1, _ := ret[1].(WritableSeriesOptions)
  1870  	ret2, _ := ret[2].(error)
  1871  	return ret0, ret1, ret2
  1872  }
  1873  
  1874  // TryRetrieveSeriesAndIncrementReaderWriterCount indicates an expected call of TryRetrieveSeriesAndIncrementReaderWriterCount.
  1875  func (mr *MockShardMockRecorder) TryRetrieveSeriesAndIncrementReaderWriterCount(id interface{}) *gomock.Call {
  1876  	mr.mock.ctrl.T.Helper()
  1877  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TryRetrieveSeriesAndIncrementReaderWriterCount", reflect.TypeOf((*MockShard)(nil).TryRetrieveSeriesAndIncrementReaderWriterCount), id)
  1878  }
  1879  
  1880  // MockdatabaseShard is a mock of databaseShard interface.
  1881  type MockdatabaseShard struct {
  1882  	ctrl     *gomock.Controller
  1883  	recorder *MockdatabaseShardMockRecorder
  1884  }
  1885  
  1886  // MockdatabaseShardMockRecorder is the mock recorder for MockdatabaseShard.
  1887  type MockdatabaseShardMockRecorder struct {
  1888  	mock *MockdatabaseShard
  1889  }
  1890  
  1891  // NewMockdatabaseShard creates a new mock instance.
  1892  func NewMockdatabaseShard(ctrl *gomock.Controller) *MockdatabaseShard {
  1893  	mock := &MockdatabaseShard{ctrl: ctrl}
  1894  	mock.recorder = &MockdatabaseShardMockRecorder{mock}
  1895  	return mock
  1896  }
  1897  
  1898  // EXPECT returns an object that allows the caller to indicate expected use.
  1899  func (m *MockdatabaseShard) EXPECT() *MockdatabaseShardMockRecorder {
  1900  	return m.recorder
  1901  }
  1902  
  1903  // AggregateTiles mocks base method.
  1904  func (m *MockdatabaseShard) AggregateTiles(ctx context.Context, sourceNs, targetNs Namespace, shardID uint32, onFlushSeries persist.OnFlushSeries, opts AggregateTilesOptions) (int64, error) {
  1905  	m.ctrl.T.Helper()
  1906  	ret := m.ctrl.Call(m, "AggregateTiles", ctx, sourceNs, targetNs, shardID, onFlushSeries, opts)
  1907  	ret0, _ := ret[0].(int64)
  1908  	ret1, _ := ret[1].(error)
  1909  	return ret0, ret1
  1910  }
  1911  
  1912  // AggregateTiles indicates an expected call of AggregateTiles.
  1913  func (mr *MockdatabaseShardMockRecorder) AggregateTiles(ctx, sourceNs, targetNs, shardID, onFlushSeries, opts interface{}) *gomock.Call {
  1914  	mr.mock.ctrl.T.Helper()
  1915  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AggregateTiles", reflect.TypeOf((*MockdatabaseShard)(nil).AggregateTiles), ctx, sourceNs, targetNs, shardID, onFlushSeries, opts)
  1916  }
  1917  
  1918  // Bootstrap mocks base method.
  1919  func (m *MockdatabaseShard) Bootstrap(ctx context.Context, nsCtx namespace.Context) error {
  1920  	m.ctrl.T.Helper()
  1921  	ret := m.ctrl.Call(m, "Bootstrap", ctx, nsCtx)
  1922  	ret0, _ := ret[0].(error)
  1923  	return ret0
  1924  }
  1925  
  1926  // Bootstrap indicates an expected call of Bootstrap.
  1927  func (mr *MockdatabaseShardMockRecorder) Bootstrap(ctx, nsCtx interface{}) *gomock.Call {
  1928  	mr.mock.ctrl.T.Helper()
  1929  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Bootstrap", reflect.TypeOf((*MockdatabaseShard)(nil).Bootstrap), ctx, nsCtx)
  1930  }
  1931  
  1932  // BootstrapState mocks base method.
  1933  func (m *MockdatabaseShard) BootstrapState() BootstrapState {
  1934  	m.ctrl.T.Helper()
  1935  	ret := m.ctrl.Call(m, "BootstrapState")
  1936  	ret0, _ := ret[0].(BootstrapState)
  1937  	return ret0
  1938  }
  1939  
  1940  // BootstrapState indicates an expected call of BootstrapState.
  1941  func (mr *MockdatabaseShardMockRecorder) BootstrapState() *gomock.Call {
  1942  	mr.mock.ctrl.T.Helper()
  1943  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BootstrapState", reflect.TypeOf((*MockdatabaseShard)(nil).BootstrapState))
  1944  }
  1945  
  1946  // CleanupCompactedFileSets mocks base method.
  1947  func (m *MockdatabaseShard) CleanupCompactedFileSets() error {
  1948  	m.ctrl.T.Helper()
  1949  	ret := m.ctrl.Call(m, "CleanupCompactedFileSets")
  1950  	ret0, _ := ret[0].(error)
  1951  	return ret0
  1952  }
  1953  
  1954  // CleanupCompactedFileSets indicates an expected call of CleanupCompactedFileSets.
  1955  func (mr *MockdatabaseShardMockRecorder) CleanupCompactedFileSets() *gomock.Call {
  1956  	mr.mock.ctrl.T.Helper()
  1957  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CleanupCompactedFileSets", reflect.TypeOf((*MockdatabaseShard)(nil).CleanupCompactedFileSets))
  1958  }
  1959  
  1960  // CleanupExpiredFileSets mocks base method.
  1961  func (m *MockdatabaseShard) CleanupExpiredFileSets(earliestToRetain time0.UnixNano) error {
  1962  	m.ctrl.T.Helper()
  1963  	ret := m.ctrl.Call(m, "CleanupExpiredFileSets", earliestToRetain)
  1964  	ret0, _ := ret[0].(error)
  1965  	return ret0
  1966  }
  1967  
  1968  // CleanupExpiredFileSets indicates an expected call of CleanupExpiredFileSets.
  1969  func (mr *MockdatabaseShardMockRecorder) CleanupExpiredFileSets(earliestToRetain interface{}) *gomock.Call {
  1970  	mr.mock.ctrl.T.Helper()
  1971  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CleanupExpiredFileSets", reflect.TypeOf((*MockdatabaseShard)(nil).CleanupExpiredFileSets), earliestToRetain)
  1972  }
  1973  
  1974  // Close mocks base method.
  1975  func (m *MockdatabaseShard) Close() error {
  1976  	m.ctrl.T.Helper()
  1977  	ret := m.ctrl.Call(m, "Close")
  1978  	ret0, _ := ret[0].(error)
  1979  	return ret0
  1980  }
  1981  
  1982  // Close indicates an expected call of Close.
  1983  func (mr *MockdatabaseShardMockRecorder) Close() *gomock.Call {
  1984  	mr.mock.ctrl.T.Helper()
  1985  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockdatabaseShard)(nil).Close))
  1986  }
  1987  
  1988  // Closed mocks base method.
  1989  func (m *MockdatabaseShard) Closed() bool {
  1990  	m.ctrl.T.Helper()
  1991  	ret := m.ctrl.Call(m, "Closed")
  1992  	ret0, _ := ret[0].(bool)
  1993  	return ret0
  1994  }
  1995  
  1996  // Closed indicates an expected call of Closed.
  1997  func (mr *MockdatabaseShardMockRecorder) Closed() *gomock.Call {
  1998  	mr.mock.ctrl.T.Helper()
  1999  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Closed", reflect.TypeOf((*MockdatabaseShard)(nil).Closed))
  2000  }
  2001  
  2002  // ColdFlush mocks base method.
  2003  func (m *MockdatabaseShard) ColdFlush(flush persist.FlushPreparer, resources coldFlushReusableResources, nsCtx namespace.Context, onFlush persist.OnFlushSeries) (ShardColdFlush, error) {
  2004  	m.ctrl.T.Helper()
  2005  	ret := m.ctrl.Call(m, "ColdFlush", flush, resources, nsCtx, onFlush)
  2006  	ret0, _ := ret[0].(ShardColdFlush)
  2007  	ret1, _ := ret[1].(error)
  2008  	return ret0, ret1
  2009  }
  2010  
  2011  // ColdFlush indicates an expected call of ColdFlush.
  2012  func (mr *MockdatabaseShardMockRecorder) ColdFlush(flush, resources, nsCtx, onFlush interface{}) *gomock.Call {
  2013  	mr.mock.ctrl.T.Helper()
  2014  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ColdFlush", reflect.TypeOf((*MockdatabaseShard)(nil).ColdFlush), flush, resources, nsCtx, onFlush)
  2015  }
  2016  
  2017  // DocRef mocks base method.
  2018  func (m *MockdatabaseShard) DocRef(id ident.ID) (doc.Metadata, bool, error) {
  2019  	m.ctrl.T.Helper()
  2020  	ret := m.ctrl.Call(m, "DocRef", id)
  2021  	ret0, _ := ret[0].(doc.Metadata)
  2022  	ret1, _ := ret[1].(bool)
  2023  	ret2, _ := ret[2].(error)
  2024  	return ret0, ret1, ret2
  2025  }
  2026  
  2027  // DocRef indicates an expected call of DocRef.
  2028  func (mr *MockdatabaseShardMockRecorder) DocRef(id interface{}) *gomock.Call {
  2029  	mr.mock.ctrl.T.Helper()
  2030  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DocRef", reflect.TypeOf((*MockdatabaseShard)(nil).DocRef), id)
  2031  }
  2032  
  2033  // FetchBlocks mocks base method.
  2034  func (m *MockdatabaseShard) FetchBlocks(ctx context.Context, id ident.ID, starts []time0.UnixNano, nsCtx namespace.Context) ([]block.FetchBlockResult, error) {
  2035  	m.ctrl.T.Helper()
  2036  	ret := m.ctrl.Call(m, "FetchBlocks", ctx, id, starts, nsCtx)
  2037  	ret0, _ := ret[0].([]block.FetchBlockResult)
  2038  	ret1, _ := ret[1].(error)
  2039  	return ret0, ret1
  2040  }
  2041  
  2042  // FetchBlocks indicates an expected call of FetchBlocks.
  2043  func (mr *MockdatabaseShardMockRecorder) FetchBlocks(ctx, id, starts, nsCtx interface{}) *gomock.Call {
  2044  	mr.mock.ctrl.T.Helper()
  2045  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchBlocks", reflect.TypeOf((*MockdatabaseShard)(nil).FetchBlocks), ctx, id, starts, nsCtx)
  2046  }
  2047  
  2048  // FetchBlocksForColdFlush mocks base method.
  2049  func (m *MockdatabaseShard) FetchBlocksForColdFlush(ctx context.Context, seriesID ident.ID, start time0.UnixNano, version int, nsCtx namespace.Context) (block.FetchBlockResult, error) {
  2050  	m.ctrl.T.Helper()
  2051  	ret := m.ctrl.Call(m, "FetchBlocksForColdFlush", ctx, seriesID, start, version, nsCtx)
  2052  	ret0, _ := ret[0].(block.FetchBlockResult)
  2053  	ret1, _ := ret[1].(error)
  2054  	return ret0, ret1
  2055  }
  2056  
  2057  // FetchBlocksForColdFlush indicates an expected call of FetchBlocksForColdFlush.
  2058  func (mr *MockdatabaseShardMockRecorder) FetchBlocksForColdFlush(ctx, seriesID, start, version, nsCtx interface{}) *gomock.Call {
  2059  	mr.mock.ctrl.T.Helper()
  2060  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchBlocksForColdFlush", reflect.TypeOf((*MockdatabaseShard)(nil).FetchBlocksForColdFlush), ctx, seriesID, start, version, nsCtx)
  2061  }
  2062  
  2063  // FetchBlocksMetadataV2 mocks base method.
  2064  func (m *MockdatabaseShard) FetchBlocksMetadataV2(ctx context.Context, start, end time0.UnixNano, limit int64, pageToken PageToken, opts block.FetchBlocksMetadataOptions) (block.FetchBlocksMetadataResults, PageToken, error) {
  2065  	m.ctrl.T.Helper()
  2066  	ret := m.ctrl.Call(m, "FetchBlocksMetadataV2", ctx, start, end, limit, pageToken, opts)
  2067  	ret0, _ := ret[0].(block.FetchBlocksMetadataResults)
  2068  	ret1, _ := ret[1].(PageToken)
  2069  	ret2, _ := ret[2].(error)
  2070  	return ret0, ret1, ret2
  2071  }
  2072  
  2073  // FetchBlocksMetadataV2 indicates an expected call of FetchBlocksMetadataV2.
  2074  func (mr *MockdatabaseShardMockRecorder) FetchBlocksMetadataV2(ctx, start, end, limit, pageToken, opts interface{}) *gomock.Call {
  2075  	mr.mock.ctrl.T.Helper()
  2076  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchBlocksMetadataV2", reflect.TypeOf((*MockdatabaseShard)(nil).FetchBlocksMetadataV2), ctx, start, end, limit, pageToken, opts)
  2077  }
  2078  
  2079  // FilterBlocksNeedSnapshot mocks base method.
  2080  func (m *MockdatabaseShard) FilterBlocksNeedSnapshot(blockStarts []time0.UnixNano) []time0.UnixNano {
  2081  	m.ctrl.T.Helper()
  2082  	ret := m.ctrl.Call(m, "FilterBlocksNeedSnapshot", blockStarts)
  2083  	ret0, _ := ret[0].([]time0.UnixNano)
  2084  	return ret0
  2085  }
  2086  
  2087  // FilterBlocksNeedSnapshot indicates an expected call of FilterBlocksNeedSnapshot.
  2088  func (mr *MockdatabaseShardMockRecorder) FilterBlocksNeedSnapshot(blockStarts interface{}) *gomock.Call {
  2089  	mr.mock.ctrl.T.Helper()
  2090  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FilterBlocksNeedSnapshot", reflect.TypeOf((*MockdatabaseShard)(nil).FilterBlocksNeedSnapshot), blockStarts)
  2091  }
  2092  
  2093  // FlushState mocks base method.
  2094  func (m *MockdatabaseShard) FlushState(blockStart time0.UnixNano) (fileOpState, error) {
  2095  	m.ctrl.T.Helper()
  2096  	ret := m.ctrl.Call(m, "FlushState", blockStart)
  2097  	ret0, _ := ret[0].(fileOpState)
  2098  	ret1, _ := ret[1].(error)
  2099  	return ret0, ret1
  2100  }
  2101  
  2102  // FlushState indicates an expected call of FlushState.
  2103  func (mr *MockdatabaseShardMockRecorder) FlushState(blockStart interface{}) *gomock.Call {
  2104  	mr.mock.ctrl.T.Helper()
  2105  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FlushState", reflect.TypeOf((*MockdatabaseShard)(nil).FlushState), blockStart)
  2106  }
  2107  
  2108  // ID mocks base method.
  2109  func (m *MockdatabaseShard) ID() uint32 {
  2110  	m.ctrl.T.Helper()
  2111  	ret := m.ctrl.Call(m, "ID")
  2112  	ret0, _ := ret[0].(uint32)
  2113  	return ret0
  2114  }
  2115  
  2116  // ID indicates an expected call of ID.
  2117  func (mr *MockdatabaseShardMockRecorder) ID() *gomock.Call {
  2118  	mr.mock.ctrl.T.Helper()
  2119  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ID", reflect.TypeOf((*MockdatabaseShard)(nil).ID))
  2120  }
  2121  
  2122  // IsBootstrapped mocks base method.
  2123  func (m *MockdatabaseShard) IsBootstrapped() bool {
  2124  	m.ctrl.T.Helper()
  2125  	ret := m.ctrl.Call(m, "IsBootstrapped")
  2126  	ret0, _ := ret[0].(bool)
  2127  	return ret0
  2128  }
  2129  
  2130  // IsBootstrapped indicates an expected call of IsBootstrapped.
  2131  func (mr *MockdatabaseShardMockRecorder) IsBootstrapped() *gomock.Call {
  2132  	mr.mock.ctrl.T.Helper()
  2133  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsBootstrapped", reflect.TypeOf((*MockdatabaseShard)(nil).IsBootstrapped))
  2134  }
  2135  
  2136  // LatestVolume mocks base method.
  2137  func (m *MockdatabaseShard) LatestVolume(blockStart time0.UnixNano) (int, error) {
  2138  	m.ctrl.T.Helper()
  2139  	ret := m.ctrl.Call(m, "LatestVolume", blockStart)
  2140  	ret0, _ := ret[0].(int)
  2141  	ret1, _ := ret[1].(error)
  2142  	return ret0, ret1
  2143  }
  2144  
  2145  // LatestVolume indicates an expected call of LatestVolume.
  2146  func (mr *MockdatabaseShardMockRecorder) LatestVolume(blockStart interface{}) *gomock.Call {
  2147  	mr.mock.ctrl.T.Helper()
  2148  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LatestVolume", reflect.TypeOf((*MockdatabaseShard)(nil).LatestVolume), blockStart)
  2149  }
  2150  
  2151  // LoadBlocks mocks base method.
  2152  func (m *MockdatabaseShard) LoadBlocks(series *result.Map) error {
  2153  	m.ctrl.T.Helper()
  2154  	ret := m.ctrl.Call(m, "LoadBlocks", series)
  2155  	ret0, _ := ret[0].(error)
  2156  	return ret0
  2157  }
  2158  
  2159  // LoadBlocks indicates an expected call of LoadBlocks.
  2160  func (mr *MockdatabaseShardMockRecorder) LoadBlocks(series interface{}) *gomock.Call {
  2161  	mr.mock.ctrl.T.Helper()
  2162  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LoadBlocks", reflect.TypeOf((*MockdatabaseShard)(nil).LoadBlocks), series)
  2163  }
  2164  
  2165  // MarkWarmIndexFlushStateSuccessOrError mocks base method.
  2166  func (m *MockdatabaseShard) MarkWarmIndexFlushStateSuccessOrError(blockStart time0.UnixNano, err error) {
  2167  	m.ctrl.T.Helper()
  2168  	m.ctrl.Call(m, "MarkWarmIndexFlushStateSuccessOrError", blockStart, err)
  2169  }
  2170  
  2171  // MarkWarmIndexFlushStateSuccessOrError indicates an expected call of MarkWarmIndexFlushStateSuccessOrError.
  2172  func (mr *MockdatabaseShardMockRecorder) MarkWarmIndexFlushStateSuccessOrError(blockStart, err interface{}) *gomock.Call {
  2173  	mr.mock.ctrl.T.Helper()
  2174  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MarkWarmIndexFlushStateSuccessOrError", reflect.TypeOf((*MockdatabaseShard)(nil).MarkWarmIndexFlushStateSuccessOrError), blockStart, err)
  2175  }
  2176  
  2177  // NumSeries mocks base method.
  2178  func (m *MockdatabaseShard) NumSeries() int64 {
  2179  	m.ctrl.T.Helper()
  2180  	ret := m.ctrl.Call(m, "NumSeries")
  2181  	ret0, _ := ret[0].(int64)
  2182  	return ret0
  2183  }
  2184  
  2185  // NumSeries indicates an expected call of NumSeries.
  2186  func (mr *MockdatabaseShardMockRecorder) NumSeries() *gomock.Call {
  2187  	mr.mock.ctrl.T.Helper()
  2188  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NumSeries", reflect.TypeOf((*MockdatabaseShard)(nil).NumSeries))
  2189  }
  2190  
  2191  // OnEvictedFromWiredList mocks base method.
  2192  func (m *MockdatabaseShard) OnEvictedFromWiredList(id ident.ID, blockStart time0.UnixNano) {
  2193  	m.ctrl.T.Helper()
  2194  	m.ctrl.Call(m, "OnEvictedFromWiredList", id, blockStart)
  2195  }
  2196  
  2197  // OnEvictedFromWiredList indicates an expected call of OnEvictedFromWiredList.
  2198  func (mr *MockdatabaseShardMockRecorder) OnEvictedFromWiredList(id, blockStart interface{}) *gomock.Call {
  2199  	mr.mock.ctrl.T.Helper()
  2200  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OnEvictedFromWiredList", reflect.TypeOf((*MockdatabaseShard)(nil).OnEvictedFromWiredList), id, blockStart)
  2201  }
  2202  
  2203  // OpenStreamingReader mocks base method.
  2204  func (m *MockdatabaseShard) OpenStreamingReader(blockStart time0.UnixNano) (fs.DataFileSetReader, error) {
  2205  	m.ctrl.T.Helper()
  2206  	ret := m.ctrl.Call(m, "OpenStreamingReader", blockStart)
  2207  	ret0, _ := ret[0].(fs.DataFileSetReader)
  2208  	ret1, _ := ret[1].(error)
  2209  	return ret0, ret1
  2210  }
  2211  
  2212  // OpenStreamingReader indicates an expected call of OpenStreamingReader.
  2213  func (mr *MockdatabaseShardMockRecorder) OpenStreamingReader(blockStart interface{}) *gomock.Call {
  2214  	mr.mock.ctrl.T.Helper()
  2215  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OpenStreamingReader", reflect.TypeOf((*MockdatabaseShard)(nil).OpenStreamingReader), blockStart)
  2216  }
  2217  
  2218  // PrepareBootstrap mocks base method.
  2219  func (m *MockdatabaseShard) PrepareBootstrap(ctx context.Context) error {
  2220  	m.ctrl.T.Helper()
  2221  	ret := m.ctrl.Call(m, "PrepareBootstrap", ctx)
  2222  	ret0, _ := ret[0].(error)
  2223  	return ret0
  2224  }
  2225  
  2226  // PrepareBootstrap indicates an expected call of PrepareBootstrap.
  2227  func (mr *MockdatabaseShardMockRecorder) PrepareBootstrap(ctx interface{}) *gomock.Call {
  2228  	mr.mock.ctrl.T.Helper()
  2229  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PrepareBootstrap", reflect.TypeOf((*MockdatabaseShard)(nil).PrepareBootstrap), ctx)
  2230  }
  2231  
  2232  // ReadEncoded mocks base method.
  2233  func (m *MockdatabaseShard) ReadEncoded(ctx context.Context, id ident.ID, start, end time0.UnixNano, nsCtx namespace.Context) (series.BlockReaderIter, error) {
  2234  	m.ctrl.T.Helper()
  2235  	ret := m.ctrl.Call(m, "ReadEncoded", ctx, id, start, end, nsCtx)
  2236  	ret0, _ := ret[0].(series.BlockReaderIter)
  2237  	ret1, _ := ret[1].(error)
  2238  	return ret0, ret1
  2239  }
  2240  
  2241  // ReadEncoded indicates an expected call of ReadEncoded.
  2242  func (mr *MockdatabaseShardMockRecorder) ReadEncoded(ctx, id, start, end, nsCtx interface{}) *gomock.Call {
  2243  	mr.mock.ctrl.T.Helper()
  2244  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadEncoded", reflect.TypeOf((*MockdatabaseShard)(nil).ReadEncoded), ctx, id, start, end, nsCtx)
  2245  }
  2246  
  2247  // Repair mocks base method.
  2248  func (m *MockdatabaseShard) Repair(ctx context.Context, nsCtx namespace.Context, nsMeta namespace.Metadata, tr time0.Range, repairer databaseShardRepairer) (repair.MetadataComparisonResult, error) {
  2249  	m.ctrl.T.Helper()
  2250  	ret := m.ctrl.Call(m, "Repair", ctx, nsCtx, nsMeta, tr, repairer)
  2251  	ret0, _ := ret[0].(repair.MetadataComparisonResult)
  2252  	ret1, _ := ret[1].(error)
  2253  	return ret0, ret1
  2254  }
  2255  
  2256  // Repair indicates an expected call of Repair.
  2257  func (mr *MockdatabaseShardMockRecorder) Repair(ctx, nsCtx, nsMeta, tr, repairer interface{}) *gomock.Call {
  2258  	mr.mock.ctrl.T.Helper()
  2259  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Repair", reflect.TypeOf((*MockdatabaseShard)(nil).Repair), ctx, nsCtx, nsMeta, tr, repairer)
  2260  }
  2261  
  2262  // SeriesRefResolver mocks base method.
  2263  func (m *MockdatabaseShard) SeriesRefResolver(id ident.ID, tags ident.TagIterator) (bootstrap.SeriesRefResolver, error) {
  2264  	m.ctrl.T.Helper()
  2265  	ret := m.ctrl.Call(m, "SeriesRefResolver", id, tags)
  2266  	ret0, _ := ret[0].(bootstrap.SeriesRefResolver)
  2267  	ret1, _ := ret[1].(error)
  2268  	return ret0, ret1
  2269  }
  2270  
  2271  // SeriesRefResolver indicates an expected call of SeriesRefResolver.
  2272  func (mr *MockdatabaseShardMockRecorder) SeriesRefResolver(id, tags interface{}) *gomock.Call {
  2273  	mr.mock.ctrl.T.Helper()
  2274  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SeriesRefResolver", reflect.TypeOf((*MockdatabaseShard)(nil).SeriesRefResolver), id, tags)
  2275  }
  2276  
  2277  // Snapshot mocks base method.
  2278  func (m *MockdatabaseShard) Snapshot(blockStart, snapshotStart time0.UnixNano, flush persist.SnapshotPreparer, nsCtx namespace.Context) (ShardSnapshotResult, error) {
  2279  	m.ctrl.T.Helper()
  2280  	ret := m.ctrl.Call(m, "Snapshot", blockStart, snapshotStart, flush, nsCtx)
  2281  	ret0, _ := ret[0].(ShardSnapshotResult)
  2282  	ret1, _ := ret[1].(error)
  2283  	return ret0, ret1
  2284  }
  2285  
  2286  // Snapshot indicates an expected call of Snapshot.
  2287  func (mr *MockdatabaseShardMockRecorder) Snapshot(blockStart, snapshotStart, flush, nsCtx interface{}) *gomock.Call {
  2288  	mr.mock.ctrl.T.Helper()
  2289  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Snapshot", reflect.TypeOf((*MockdatabaseShard)(nil).Snapshot), blockStart, snapshotStart, flush, nsCtx)
  2290  }
  2291  
  2292  // Tick mocks base method.
  2293  func (m *MockdatabaseShard) Tick(c context.Cancellable, startTime time0.UnixNano, nsCtx namespace.Context) (tickResult, error) {
  2294  	m.ctrl.T.Helper()
  2295  	ret := m.ctrl.Call(m, "Tick", c, startTime, nsCtx)
  2296  	ret0, _ := ret[0].(tickResult)
  2297  	ret1, _ := ret[1].(error)
  2298  	return ret0, ret1
  2299  }
  2300  
  2301  // Tick indicates an expected call of Tick.
  2302  func (mr *MockdatabaseShardMockRecorder) Tick(c, startTime, nsCtx interface{}) *gomock.Call {
  2303  	mr.mock.ctrl.T.Helper()
  2304  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Tick", reflect.TypeOf((*MockdatabaseShard)(nil).Tick), c, startTime, nsCtx)
  2305  }
  2306  
  2307  // TryRetrieveSeriesAndIncrementReaderWriterCount mocks base method.
  2308  func (m *MockdatabaseShard) TryRetrieveSeriesAndIncrementReaderWriterCount(id ident.ID) (*Entry, WritableSeriesOptions, error) {
  2309  	m.ctrl.T.Helper()
  2310  	ret := m.ctrl.Call(m, "TryRetrieveSeriesAndIncrementReaderWriterCount", id)
  2311  	ret0, _ := ret[0].(*Entry)
  2312  	ret1, _ := ret[1].(WritableSeriesOptions)
  2313  	ret2, _ := ret[2].(error)
  2314  	return ret0, ret1, ret2
  2315  }
  2316  
  2317  // TryRetrieveSeriesAndIncrementReaderWriterCount indicates an expected call of TryRetrieveSeriesAndIncrementReaderWriterCount.
  2318  func (mr *MockdatabaseShardMockRecorder) TryRetrieveSeriesAndIncrementReaderWriterCount(id interface{}) *gomock.Call {
  2319  	mr.mock.ctrl.T.Helper()
  2320  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TryRetrieveSeriesAndIncrementReaderWriterCount", reflect.TypeOf((*MockdatabaseShard)(nil).TryRetrieveSeriesAndIncrementReaderWriterCount), id)
  2321  }
  2322  
  2323  // UpdateFlushStates mocks base method.
  2324  func (m *MockdatabaseShard) UpdateFlushStates() {
  2325  	m.ctrl.T.Helper()
  2326  	m.ctrl.Call(m, "UpdateFlushStates")
  2327  }
  2328  
  2329  // UpdateFlushStates indicates an expected call of UpdateFlushStates.
  2330  func (mr *MockdatabaseShardMockRecorder) UpdateFlushStates() *gomock.Call {
  2331  	mr.mock.ctrl.T.Helper()
  2332  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateFlushStates", reflect.TypeOf((*MockdatabaseShard)(nil).UpdateFlushStates))
  2333  }
  2334  
  2335  // WarmFlush mocks base method.
  2336  func (m *MockdatabaseShard) WarmFlush(blockStart time0.UnixNano, flush persist.FlushPreparer, nsCtx namespace.Context) error {
  2337  	m.ctrl.T.Helper()
  2338  	ret := m.ctrl.Call(m, "WarmFlush", blockStart, flush, nsCtx)
  2339  	ret0, _ := ret[0].(error)
  2340  	return ret0
  2341  }
  2342  
  2343  // WarmFlush indicates an expected call of WarmFlush.
  2344  func (mr *MockdatabaseShardMockRecorder) WarmFlush(blockStart, flush, nsCtx interface{}) *gomock.Call {
  2345  	mr.mock.ctrl.T.Helper()
  2346  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WarmFlush", reflect.TypeOf((*MockdatabaseShard)(nil).WarmFlush), blockStart, flush, nsCtx)
  2347  }
  2348  
  2349  // Write mocks base method.
  2350  func (m *MockdatabaseShard) Write(ctx context.Context, id ident.ID, timestamp time0.UnixNano, value float64, unit time0.Unit, annotation []byte, wOpts series.WriteOptions) (SeriesWrite, error) {
  2351  	m.ctrl.T.Helper()
  2352  	ret := m.ctrl.Call(m, "Write", ctx, id, timestamp, value, unit, annotation, wOpts)
  2353  	ret0, _ := ret[0].(SeriesWrite)
  2354  	ret1, _ := ret[1].(error)
  2355  	return ret0, ret1
  2356  }
  2357  
  2358  // Write indicates an expected call of Write.
  2359  func (mr *MockdatabaseShardMockRecorder) Write(ctx, id, timestamp, value, unit, annotation, wOpts interface{}) *gomock.Call {
  2360  	mr.mock.ctrl.T.Helper()
  2361  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Write", reflect.TypeOf((*MockdatabaseShard)(nil).Write), ctx, id, timestamp, value, unit, annotation, wOpts)
  2362  }
  2363  
  2364  // WriteTagged mocks base method.
  2365  func (m *MockdatabaseShard) WriteTagged(ctx context.Context, id ident.ID, tagResolver convert.TagMetadataResolver, timestamp time0.UnixNano, value float64, unit time0.Unit, annotation []byte, wOpts series.WriteOptions) (SeriesWrite, error) {
  2366  	m.ctrl.T.Helper()
  2367  	ret := m.ctrl.Call(m, "WriteTagged", ctx, id, tagResolver, timestamp, value, unit, annotation, wOpts)
  2368  	ret0, _ := ret[0].(SeriesWrite)
  2369  	ret1, _ := ret[1].(error)
  2370  	return ret0, ret1
  2371  }
  2372  
  2373  // WriteTagged indicates an expected call of WriteTagged.
  2374  func (mr *MockdatabaseShardMockRecorder) WriteTagged(ctx, id, tagResolver, timestamp, value, unit, annotation, wOpts interface{}) *gomock.Call {
  2375  	mr.mock.ctrl.T.Helper()
  2376  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteTagged", reflect.TypeOf((*MockdatabaseShard)(nil).WriteTagged), ctx, id, tagResolver, timestamp, value, unit, annotation, wOpts)
  2377  }
  2378  
  2379  // MockShardColdFlush is a mock of ShardColdFlush interface.
  2380  type MockShardColdFlush struct {
  2381  	ctrl     *gomock.Controller
  2382  	recorder *MockShardColdFlushMockRecorder
  2383  }
  2384  
  2385  // MockShardColdFlushMockRecorder is the mock recorder for MockShardColdFlush.
  2386  type MockShardColdFlushMockRecorder struct {
  2387  	mock *MockShardColdFlush
  2388  }
  2389  
  2390  // NewMockShardColdFlush creates a new mock instance.
  2391  func NewMockShardColdFlush(ctrl *gomock.Controller) *MockShardColdFlush {
  2392  	mock := &MockShardColdFlush{ctrl: ctrl}
  2393  	mock.recorder = &MockShardColdFlushMockRecorder{mock}
  2394  	return mock
  2395  }
  2396  
  2397  // EXPECT returns an object that allows the caller to indicate expected use.
  2398  func (m *MockShardColdFlush) EXPECT() *MockShardColdFlushMockRecorder {
  2399  	return m.recorder
  2400  }
  2401  
  2402  // Done mocks base method.
  2403  func (m *MockShardColdFlush) Done() error {
  2404  	m.ctrl.T.Helper()
  2405  	ret := m.ctrl.Call(m, "Done")
  2406  	ret0, _ := ret[0].(error)
  2407  	return ret0
  2408  }
  2409  
  2410  // Done indicates an expected call of Done.
  2411  func (mr *MockShardColdFlushMockRecorder) Done() *gomock.Call {
  2412  	mr.mock.ctrl.T.Helper()
  2413  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Done", reflect.TypeOf((*MockShardColdFlush)(nil).Done))
  2414  }
  2415  
  2416  // MockNamespaceIndex is a mock of NamespaceIndex interface.
  2417  type MockNamespaceIndex struct {
  2418  	ctrl     *gomock.Controller
  2419  	recorder *MockNamespaceIndexMockRecorder
  2420  }
  2421  
  2422  // MockNamespaceIndexMockRecorder is the mock recorder for MockNamespaceIndex.
  2423  type MockNamespaceIndexMockRecorder struct {
  2424  	mock *MockNamespaceIndex
  2425  }
  2426  
  2427  // NewMockNamespaceIndex creates a new mock instance.
  2428  func NewMockNamespaceIndex(ctrl *gomock.Controller) *MockNamespaceIndex {
  2429  	mock := &MockNamespaceIndex{ctrl: ctrl}
  2430  	mock.recorder = &MockNamespaceIndexMockRecorder{mock}
  2431  	return mock
  2432  }
  2433  
  2434  // EXPECT returns an object that allows the caller to indicate expected use.
  2435  func (m *MockNamespaceIndex) EXPECT() *MockNamespaceIndexMockRecorder {
  2436  	return m.recorder
  2437  }
  2438  
  2439  // AggregateQuery mocks base method.
  2440  func (m *MockNamespaceIndex) AggregateQuery(ctx context.Context, query index.Query, opts index.AggregationOptions) (index.AggregateQueryResult, error) {
  2441  	m.ctrl.T.Helper()
  2442  	ret := m.ctrl.Call(m, "AggregateQuery", ctx, query, opts)
  2443  	ret0, _ := ret[0].(index.AggregateQueryResult)
  2444  	ret1, _ := ret[1].(error)
  2445  	return ret0, ret1
  2446  }
  2447  
  2448  // AggregateQuery indicates an expected call of AggregateQuery.
  2449  func (mr *MockNamespaceIndexMockRecorder) AggregateQuery(ctx, query, opts interface{}) *gomock.Call {
  2450  	mr.mock.ctrl.T.Helper()
  2451  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AggregateQuery", reflect.TypeOf((*MockNamespaceIndex)(nil).AggregateQuery), ctx, query, opts)
  2452  }
  2453  
  2454  // AssignShardSet mocks base method.
  2455  func (m *MockNamespaceIndex) AssignShardSet(shardSet sharding.ShardSet) {
  2456  	m.ctrl.T.Helper()
  2457  	m.ctrl.Call(m, "AssignShardSet", shardSet)
  2458  }
  2459  
  2460  // AssignShardSet indicates an expected call of AssignShardSet.
  2461  func (mr *MockNamespaceIndexMockRecorder) AssignShardSet(shardSet interface{}) *gomock.Call {
  2462  	mr.mock.ctrl.T.Helper()
  2463  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AssignShardSet", reflect.TypeOf((*MockNamespaceIndex)(nil).AssignShardSet), shardSet)
  2464  }
  2465  
  2466  // BackgroundCompact mocks base method.
  2467  func (m *MockNamespaceIndex) BackgroundCompact() {
  2468  	m.ctrl.T.Helper()
  2469  	m.ctrl.Call(m, "BackgroundCompact")
  2470  }
  2471  
  2472  // BackgroundCompact indicates an expected call of BackgroundCompact.
  2473  func (mr *MockNamespaceIndexMockRecorder) BackgroundCompact() *gomock.Call {
  2474  	mr.mock.ctrl.T.Helper()
  2475  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BackgroundCompact", reflect.TypeOf((*MockNamespaceIndex)(nil).BackgroundCompact))
  2476  }
  2477  
  2478  // BlockForBlockStart mocks base method.
  2479  func (m *MockNamespaceIndex) BlockForBlockStart(blockStart time0.UnixNano) (index.Block, error) {
  2480  	m.ctrl.T.Helper()
  2481  	ret := m.ctrl.Call(m, "BlockForBlockStart", blockStart)
  2482  	ret0, _ := ret[0].(index.Block)
  2483  	ret1, _ := ret[1].(error)
  2484  	return ret0, ret1
  2485  }
  2486  
  2487  // BlockForBlockStart indicates an expected call of BlockForBlockStart.
  2488  func (mr *MockNamespaceIndexMockRecorder) BlockForBlockStart(blockStart interface{}) *gomock.Call {
  2489  	mr.mock.ctrl.T.Helper()
  2490  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BlockForBlockStart", reflect.TypeOf((*MockNamespaceIndex)(nil).BlockForBlockStart), blockStart)
  2491  }
  2492  
  2493  // BlockStartForWriteTime mocks base method.
  2494  func (m *MockNamespaceIndex) BlockStartForWriteTime(writeTime time0.UnixNano) time0.UnixNano {
  2495  	m.ctrl.T.Helper()
  2496  	ret := m.ctrl.Call(m, "BlockStartForWriteTime", writeTime)
  2497  	ret0, _ := ret[0].(time0.UnixNano)
  2498  	return ret0
  2499  }
  2500  
  2501  // BlockStartForWriteTime indicates an expected call of BlockStartForWriteTime.
  2502  func (mr *MockNamespaceIndexMockRecorder) BlockStartForWriteTime(writeTime interface{}) *gomock.Call {
  2503  	mr.mock.ctrl.T.Helper()
  2504  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BlockStartForWriteTime", reflect.TypeOf((*MockNamespaceIndex)(nil).BlockStartForWriteTime), writeTime)
  2505  }
  2506  
  2507  // Bootstrap mocks base method.
  2508  func (m *MockNamespaceIndex) Bootstrap(bootstrapResults result.IndexResults) error {
  2509  	m.ctrl.T.Helper()
  2510  	ret := m.ctrl.Call(m, "Bootstrap", bootstrapResults)
  2511  	ret0, _ := ret[0].(error)
  2512  	return ret0
  2513  }
  2514  
  2515  // Bootstrap indicates an expected call of Bootstrap.
  2516  func (mr *MockNamespaceIndexMockRecorder) Bootstrap(bootstrapResults interface{}) *gomock.Call {
  2517  	mr.mock.ctrl.T.Helper()
  2518  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Bootstrap", reflect.TypeOf((*MockNamespaceIndex)(nil).Bootstrap), bootstrapResults)
  2519  }
  2520  
  2521  // Bootstrapped mocks base method.
  2522  func (m *MockNamespaceIndex) Bootstrapped() bool {
  2523  	m.ctrl.T.Helper()
  2524  	ret := m.ctrl.Call(m, "Bootstrapped")
  2525  	ret0, _ := ret[0].(bool)
  2526  	return ret0
  2527  }
  2528  
  2529  // Bootstrapped indicates an expected call of Bootstrapped.
  2530  func (mr *MockNamespaceIndexMockRecorder) Bootstrapped() *gomock.Call {
  2531  	mr.mock.ctrl.T.Helper()
  2532  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Bootstrapped", reflect.TypeOf((*MockNamespaceIndex)(nil).Bootstrapped))
  2533  }
  2534  
  2535  // CleanupCorruptedFileSets mocks base method.
  2536  func (m *MockNamespaceIndex) CleanupCorruptedFileSets() error {
  2537  	m.ctrl.T.Helper()
  2538  	ret := m.ctrl.Call(m, "CleanupCorruptedFileSets")
  2539  	ret0, _ := ret[0].(error)
  2540  	return ret0
  2541  }
  2542  
  2543  // CleanupCorruptedFileSets indicates an expected call of CleanupCorruptedFileSets.
  2544  func (mr *MockNamespaceIndexMockRecorder) CleanupCorruptedFileSets() *gomock.Call {
  2545  	mr.mock.ctrl.T.Helper()
  2546  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CleanupCorruptedFileSets", reflect.TypeOf((*MockNamespaceIndex)(nil).CleanupCorruptedFileSets))
  2547  }
  2548  
  2549  // CleanupDuplicateFileSets mocks base method.
  2550  func (m *MockNamespaceIndex) CleanupDuplicateFileSets(activeShards []uint32) error {
  2551  	m.ctrl.T.Helper()
  2552  	ret := m.ctrl.Call(m, "CleanupDuplicateFileSets", activeShards)
  2553  	ret0, _ := ret[0].(error)
  2554  	return ret0
  2555  }
  2556  
  2557  // CleanupDuplicateFileSets indicates an expected call of CleanupDuplicateFileSets.
  2558  func (mr *MockNamespaceIndexMockRecorder) CleanupDuplicateFileSets(activeShards interface{}) *gomock.Call {
  2559  	mr.mock.ctrl.T.Helper()
  2560  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CleanupDuplicateFileSets", reflect.TypeOf((*MockNamespaceIndex)(nil).CleanupDuplicateFileSets), activeShards)
  2561  }
  2562  
  2563  // CleanupExpiredFileSets mocks base method.
  2564  func (m *MockNamespaceIndex) CleanupExpiredFileSets(t time0.UnixNano) error {
  2565  	m.ctrl.T.Helper()
  2566  	ret := m.ctrl.Call(m, "CleanupExpiredFileSets", t)
  2567  	ret0, _ := ret[0].(error)
  2568  	return ret0
  2569  }
  2570  
  2571  // CleanupExpiredFileSets indicates an expected call of CleanupExpiredFileSets.
  2572  func (mr *MockNamespaceIndexMockRecorder) CleanupExpiredFileSets(t interface{}) *gomock.Call {
  2573  	mr.mock.ctrl.T.Helper()
  2574  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CleanupExpiredFileSets", reflect.TypeOf((*MockNamespaceIndex)(nil).CleanupExpiredFileSets), t)
  2575  }
  2576  
  2577  // Close mocks base method.
  2578  func (m *MockNamespaceIndex) Close() error {
  2579  	m.ctrl.T.Helper()
  2580  	ret := m.ctrl.Call(m, "Close")
  2581  	ret0, _ := ret[0].(error)
  2582  	return ret0
  2583  }
  2584  
  2585  // Close indicates an expected call of Close.
  2586  func (mr *MockNamespaceIndexMockRecorder) Close() *gomock.Call {
  2587  	mr.mock.ctrl.T.Helper()
  2588  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockNamespaceIndex)(nil).Close))
  2589  }
  2590  
  2591  // ColdFlush mocks base method.
  2592  func (m *MockNamespaceIndex) ColdFlush(shards []databaseShard) (OnColdFlushDone, error) {
  2593  	m.ctrl.T.Helper()
  2594  	ret := m.ctrl.Call(m, "ColdFlush", shards)
  2595  	ret0, _ := ret[0].(OnColdFlushDone)
  2596  	ret1, _ := ret[1].(error)
  2597  	return ret0, ret1
  2598  }
  2599  
  2600  // ColdFlush indicates an expected call of ColdFlush.
  2601  func (mr *MockNamespaceIndexMockRecorder) ColdFlush(shards interface{}) *gomock.Call {
  2602  	mr.mock.ctrl.T.Helper()
  2603  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ColdFlush", reflect.TypeOf((*MockNamespaceIndex)(nil).ColdFlush), shards)
  2604  }
  2605  
  2606  // DebugMemorySegments mocks base method.
  2607  func (m *MockNamespaceIndex) DebugMemorySegments(opts DebugMemorySegmentsOptions) error {
  2608  	m.ctrl.T.Helper()
  2609  	ret := m.ctrl.Call(m, "DebugMemorySegments", opts)
  2610  	ret0, _ := ret[0].(error)
  2611  	return ret0
  2612  }
  2613  
  2614  // DebugMemorySegments indicates an expected call of DebugMemorySegments.
  2615  func (mr *MockNamespaceIndexMockRecorder) DebugMemorySegments(opts interface{}) *gomock.Call {
  2616  	mr.mock.ctrl.T.Helper()
  2617  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DebugMemorySegments", reflect.TypeOf((*MockNamespaceIndex)(nil).DebugMemorySegments), opts)
  2618  }
  2619  
  2620  // Query mocks base method.
  2621  func (m *MockNamespaceIndex) Query(ctx context.Context, query index.Query, opts index.QueryOptions) (index.QueryResult, error) {
  2622  	m.ctrl.T.Helper()
  2623  	ret := m.ctrl.Call(m, "Query", ctx, query, opts)
  2624  	ret0, _ := ret[0].(index.QueryResult)
  2625  	ret1, _ := ret[1].(error)
  2626  	return ret0, ret1
  2627  }
  2628  
  2629  // Query indicates an expected call of Query.
  2630  func (mr *MockNamespaceIndexMockRecorder) Query(ctx, query, opts interface{}) *gomock.Call {
  2631  	mr.mock.ctrl.T.Helper()
  2632  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Query", reflect.TypeOf((*MockNamespaceIndex)(nil).Query), ctx, query, opts)
  2633  }
  2634  
  2635  // Tick mocks base method.
  2636  func (m *MockNamespaceIndex) Tick(c context.Cancellable, startTime time0.UnixNano) (namespaceIndexTickResult, error) {
  2637  	m.ctrl.T.Helper()
  2638  	ret := m.ctrl.Call(m, "Tick", c, startTime)
  2639  	ret0, _ := ret[0].(namespaceIndexTickResult)
  2640  	ret1, _ := ret[1].(error)
  2641  	return ret0, ret1
  2642  }
  2643  
  2644  // Tick indicates an expected call of Tick.
  2645  func (mr *MockNamespaceIndexMockRecorder) Tick(c, startTime interface{}) *gomock.Call {
  2646  	mr.mock.ctrl.T.Helper()
  2647  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Tick", reflect.TypeOf((*MockNamespaceIndex)(nil).Tick), c, startTime)
  2648  }
  2649  
  2650  // WarmFlush mocks base method.
  2651  func (m *MockNamespaceIndex) WarmFlush(flush persist.IndexFlush, shards []databaseShard) error {
  2652  	m.ctrl.T.Helper()
  2653  	ret := m.ctrl.Call(m, "WarmFlush", flush, shards)
  2654  	ret0, _ := ret[0].(error)
  2655  	return ret0
  2656  }
  2657  
  2658  // WarmFlush indicates an expected call of WarmFlush.
  2659  func (mr *MockNamespaceIndexMockRecorder) WarmFlush(flush, shards interface{}) *gomock.Call {
  2660  	mr.mock.ctrl.T.Helper()
  2661  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WarmFlush", reflect.TypeOf((*MockNamespaceIndex)(nil).WarmFlush), flush, shards)
  2662  }
  2663  
  2664  // WarmFlushBlockStarts mocks base method.
  2665  func (m *MockNamespaceIndex) WarmFlushBlockStarts() []time0.UnixNano {
  2666  	m.ctrl.T.Helper()
  2667  	ret := m.ctrl.Call(m, "WarmFlushBlockStarts")
  2668  	ret0, _ := ret[0].([]time0.UnixNano)
  2669  	return ret0
  2670  }
  2671  
  2672  // WarmFlushBlockStarts indicates an expected call of WarmFlushBlockStarts.
  2673  func (mr *MockNamespaceIndexMockRecorder) WarmFlushBlockStarts() *gomock.Call {
  2674  	mr.mock.ctrl.T.Helper()
  2675  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WarmFlushBlockStarts", reflect.TypeOf((*MockNamespaceIndex)(nil).WarmFlushBlockStarts))
  2676  }
  2677  
  2678  // WriteBatch mocks base method.
  2679  func (m *MockNamespaceIndex) WriteBatch(batch *index.WriteBatch) error {
  2680  	m.ctrl.T.Helper()
  2681  	ret := m.ctrl.Call(m, "WriteBatch", batch)
  2682  	ret0, _ := ret[0].(error)
  2683  	return ret0
  2684  }
  2685  
  2686  // WriteBatch indicates an expected call of WriteBatch.
  2687  func (mr *MockNamespaceIndexMockRecorder) WriteBatch(batch interface{}) *gomock.Call {
  2688  	mr.mock.ctrl.T.Helper()
  2689  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteBatch", reflect.TypeOf((*MockNamespaceIndex)(nil).WriteBatch), batch)
  2690  }
  2691  
  2692  // WritePending mocks base method.
  2693  func (m *MockNamespaceIndex) WritePending(pending []writes.PendingIndexInsert) error {
  2694  	m.ctrl.T.Helper()
  2695  	ret := m.ctrl.Call(m, "WritePending", pending)
  2696  	ret0, _ := ret[0].(error)
  2697  	return ret0
  2698  }
  2699  
  2700  // WritePending indicates an expected call of WritePending.
  2701  func (mr *MockNamespaceIndexMockRecorder) WritePending(pending interface{}) *gomock.Call {
  2702  	mr.mock.ctrl.T.Helper()
  2703  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WritePending", reflect.TypeOf((*MockNamespaceIndex)(nil).WritePending), pending)
  2704  }
  2705  
  2706  // MocknamespaceIndexInsertQueue is a mock of namespaceIndexInsertQueue interface.
  2707  type MocknamespaceIndexInsertQueue struct {
  2708  	ctrl     *gomock.Controller
  2709  	recorder *MocknamespaceIndexInsertQueueMockRecorder
  2710  }
  2711  
  2712  // MocknamespaceIndexInsertQueueMockRecorder is the mock recorder for MocknamespaceIndexInsertQueue.
  2713  type MocknamespaceIndexInsertQueueMockRecorder struct {
  2714  	mock *MocknamespaceIndexInsertQueue
  2715  }
  2716  
  2717  // NewMocknamespaceIndexInsertQueue creates a new mock instance.
  2718  func NewMocknamespaceIndexInsertQueue(ctrl *gomock.Controller) *MocknamespaceIndexInsertQueue {
  2719  	mock := &MocknamespaceIndexInsertQueue{ctrl: ctrl}
  2720  	mock.recorder = &MocknamespaceIndexInsertQueueMockRecorder{mock}
  2721  	return mock
  2722  }
  2723  
  2724  // EXPECT returns an object that allows the caller to indicate expected use.
  2725  func (m *MocknamespaceIndexInsertQueue) EXPECT() *MocknamespaceIndexInsertQueueMockRecorder {
  2726  	return m.recorder
  2727  }
  2728  
  2729  // InsertBatch mocks base method.
  2730  func (m *MocknamespaceIndexInsertQueue) InsertBatch(batch *index.WriteBatch) (*sync.WaitGroup, error) {
  2731  	m.ctrl.T.Helper()
  2732  	ret := m.ctrl.Call(m, "InsertBatch", batch)
  2733  	ret0, _ := ret[0].(*sync.WaitGroup)
  2734  	ret1, _ := ret[1].(error)
  2735  	return ret0, ret1
  2736  }
  2737  
  2738  // InsertBatch indicates an expected call of InsertBatch.
  2739  func (mr *MocknamespaceIndexInsertQueueMockRecorder) InsertBatch(batch interface{}) *gomock.Call {
  2740  	mr.mock.ctrl.T.Helper()
  2741  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsertBatch", reflect.TypeOf((*MocknamespaceIndexInsertQueue)(nil).InsertBatch), batch)
  2742  }
  2743  
  2744  // InsertPending mocks base method.
  2745  func (m *MocknamespaceIndexInsertQueue) InsertPending(pending []writes.PendingIndexInsert) (*sync.WaitGroup, error) {
  2746  	m.ctrl.T.Helper()
  2747  	ret := m.ctrl.Call(m, "InsertPending", pending)
  2748  	ret0, _ := ret[0].(*sync.WaitGroup)
  2749  	ret1, _ := ret[1].(error)
  2750  	return ret0, ret1
  2751  }
  2752  
  2753  // InsertPending indicates an expected call of InsertPending.
  2754  func (mr *MocknamespaceIndexInsertQueueMockRecorder) InsertPending(pending interface{}) *gomock.Call {
  2755  	mr.mock.ctrl.T.Helper()
  2756  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsertPending", reflect.TypeOf((*MocknamespaceIndexInsertQueue)(nil).InsertPending), pending)
  2757  }
  2758  
  2759  // Start mocks base method.
  2760  func (m *MocknamespaceIndexInsertQueue) Start() error {
  2761  	m.ctrl.T.Helper()
  2762  	ret := m.ctrl.Call(m, "Start")
  2763  	ret0, _ := ret[0].(error)
  2764  	return ret0
  2765  }
  2766  
  2767  // Start indicates an expected call of Start.
  2768  func (mr *MocknamespaceIndexInsertQueueMockRecorder) Start() *gomock.Call {
  2769  	mr.mock.ctrl.T.Helper()
  2770  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Start", reflect.TypeOf((*MocknamespaceIndexInsertQueue)(nil).Start))
  2771  }
  2772  
  2773  // Stop mocks base method.
  2774  func (m *MocknamespaceIndexInsertQueue) Stop() error {
  2775  	m.ctrl.T.Helper()
  2776  	ret := m.ctrl.Call(m, "Stop")
  2777  	ret0, _ := ret[0].(error)
  2778  	return ret0
  2779  }
  2780  
  2781  // Stop indicates an expected call of Stop.
  2782  func (mr *MocknamespaceIndexInsertQueueMockRecorder) Stop() *gomock.Call {
  2783  	mr.mock.ctrl.T.Helper()
  2784  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Stop", reflect.TypeOf((*MocknamespaceIndexInsertQueue)(nil).Stop))
  2785  }
  2786  
  2787  // MockdatabaseBootstrapManager is a mock of databaseBootstrapManager interface.
  2788  type MockdatabaseBootstrapManager struct {
  2789  	ctrl     *gomock.Controller
  2790  	recorder *MockdatabaseBootstrapManagerMockRecorder
  2791  }
  2792  
  2793  // MockdatabaseBootstrapManagerMockRecorder is the mock recorder for MockdatabaseBootstrapManager.
  2794  type MockdatabaseBootstrapManagerMockRecorder struct {
  2795  	mock *MockdatabaseBootstrapManager
  2796  }
  2797  
  2798  // NewMockdatabaseBootstrapManager creates a new mock instance.
  2799  func NewMockdatabaseBootstrapManager(ctrl *gomock.Controller) *MockdatabaseBootstrapManager {
  2800  	mock := &MockdatabaseBootstrapManager{ctrl: ctrl}
  2801  	mock.recorder = &MockdatabaseBootstrapManagerMockRecorder{mock}
  2802  	return mock
  2803  }
  2804  
  2805  // EXPECT returns an object that allows the caller to indicate expected use.
  2806  func (m *MockdatabaseBootstrapManager) EXPECT() *MockdatabaseBootstrapManagerMockRecorder {
  2807  	return m.recorder
  2808  }
  2809  
  2810  // Bootstrap mocks base method.
  2811  func (m *MockdatabaseBootstrapManager) Bootstrap() (BootstrapResult, error) {
  2812  	m.ctrl.T.Helper()
  2813  	ret := m.ctrl.Call(m, "Bootstrap")
  2814  	ret0, _ := ret[0].(BootstrapResult)
  2815  	ret1, _ := ret[1].(error)
  2816  	return ret0, ret1
  2817  }
  2818  
  2819  // Bootstrap indicates an expected call of Bootstrap.
  2820  func (mr *MockdatabaseBootstrapManagerMockRecorder) Bootstrap() *gomock.Call {
  2821  	mr.mock.ctrl.T.Helper()
  2822  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Bootstrap", reflect.TypeOf((*MockdatabaseBootstrapManager)(nil).Bootstrap))
  2823  }
  2824  
  2825  // BootstrapEnqueue mocks base method.
  2826  func (m *MockdatabaseBootstrapManager) BootstrapEnqueue(opts BootstrapEnqueueOptions) {
  2827  	m.ctrl.T.Helper()
  2828  	m.ctrl.Call(m, "BootstrapEnqueue", opts)
  2829  }
  2830  
  2831  // BootstrapEnqueue indicates an expected call of BootstrapEnqueue.
  2832  func (mr *MockdatabaseBootstrapManagerMockRecorder) BootstrapEnqueue(opts interface{}) *gomock.Call {
  2833  	mr.mock.ctrl.T.Helper()
  2834  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BootstrapEnqueue", reflect.TypeOf((*MockdatabaseBootstrapManager)(nil).BootstrapEnqueue), opts)
  2835  }
  2836  
  2837  // IsBootstrapped mocks base method.
  2838  func (m *MockdatabaseBootstrapManager) IsBootstrapped() bool {
  2839  	m.ctrl.T.Helper()
  2840  	ret := m.ctrl.Call(m, "IsBootstrapped")
  2841  	ret0, _ := ret[0].(bool)
  2842  	return ret0
  2843  }
  2844  
  2845  // IsBootstrapped indicates an expected call of IsBootstrapped.
  2846  func (mr *MockdatabaseBootstrapManagerMockRecorder) IsBootstrapped() *gomock.Call {
  2847  	mr.mock.ctrl.T.Helper()
  2848  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsBootstrapped", reflect.TypeOf((*MockdatabaseBootstrapManager)(nil).IsBootstrapped))
  2849  }
  2850  
  2851  // LastBootstrapCompletionTime mocks base method.
  2852  func (m *MockdatabaseBootstrapManager) LastBootstrapCompletionTime() (time0.UnixNano, bool) {
  2853  	m.ctrl.T.Helper()
  2854  	ret := m.ctrl.Call(m, "LastBootstrapCompletionTime")
  2855  	ret0, _ := ret[0].(time0.UnixNano)
  2856  	ret1, _ := ret[1].(bool)
  2857  	return ret0, ret1
  2858  }
  2859  
  2860  // LastBootstrapCompletionTime indicates an expected call of LastBootstrapCompletionTime.
  2861  func (mr *MockdatabaseBootstrapManagerMockRecorder) LastBootstrapCompletionTime() *gomock.Call {
  2862  	mr.mock.ctrl.T.Helper()
  2863  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LastBootstrapCompletionTime", reflect.TypeOf((*MockdatabaseBootstrapManager)(nil).LastBootstrapCompletionTime))
  2864  }
  2865  
  2866  // Report mocks base method.
  2867  func (m *MockdatabaseBootstrapManager) Report() {
  2868  	m.ctrl.T.Helper()
  2869  	m.ctrl.Call(m, "Report")
  2870  }
  2871  
  2872  // Report indicates an expected call of Report.
  2873  func (mr *MockdatabaseBootstrapManagerMockRecorder) Report() *gomock.Call {
  2874  	mr.mock.ctrl.T.Helper()
  2875  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Report", reflect.TypeOf((*MockdatabaseBootstrapManager)(nil).Report))
  2876  }
  2877  
  2878  // MockdatabaseFlushManager is a mock of databaseFlushManager interface.
  2879  type MockdatabaseFlushManager struct {
  2880  	ctrl     *gomock.Controller
  2881  	recorder *MockdatabaseFlushManagerMockRecorder
  2882  }
  2883  
  2884  // MockdatabaseFlushManagerMockRecorder is the mock recorder for MockdatabaseFlushManager.
  2885  type MockdatabaseFlushManagerMockRecorder struct {
  2886  	mock *MockdatabaseFlushManager
  2887  }
  2888  
  2889  // NewMockdatabaseFlushManager creates a new mock instance.
  2890  func NewMockdatabaseFlushManager(ctrl *gomock.Controller) *MockdatabaseFlushManager {
  2891  	mock := &MockdatabaseFlushManager{ctrl: ctrl}
  2892  	mock.recorder = &MockdatabaseFlushManagerMockRecorder{mock}
  2893  	return mock
  2894  }
  2895  
  2896  // EXPECT returns an object that allows the caller to indicate expected use.
  2897  func (m *MockdatabaseFlushManager) EXPECT() *MockdatabaseFlushManagerMockRecorder {
  2898  	return m.recorder
  2899  }
  2900  
  2901  // Flush mocks base method.
  2902  func (m *MockdatabaseFlushManager) Flush(startTime time0.UnixNano) error {
  2903  	m.ctrl.T.Helper()
  2904  	ret := m.ctrl.Call(m, "Flush", startTime)
  2905  	ret0, _ := ret[0].(error)
  2906  	return ret0
  2907  }
  2908  
  2909  // Flush indicates an expected call of Flush.
  2910  func (mr *MockdatabaseFlushManagerMockRecorder) Flush(startTime interface{}) *gomock.Call {
  2911  	mr.mock.ctrl.T.Helper()
  2912  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Flush", reflect.TypeOf((*MockdatabaseFlushManager)(nil).Flush), startTime)
  2913  }
  2914  
  2915  // LastSuccessfulSnapshotStartTime mocks base method.
  2916  func (m *MockdatabaseFlushManager) LastSuccessfulSnapshotStartTime() (time0.UnixNano, bool) {
  2917  	m.ctrl.T.Helper()
  2918  	ret := m.ctrl.Call(m, "LastSuccessfulSnapshotStartTime")
  2919  	ret0, _ := ret[0].(time0.UnixNano)
  2920  	ret1, _ := ret[1].(bool)
  2921  	return ret0, ret1
  2922  }
  2923  
  2924  // LastSuccessfulSnapshotStartTime indicates an expected call of LastSuccessfulSnapshotStartTime.
  2925  func (mr *MockdatabaseFlushManagerMockRecorder) LastSuccessfulSnapshotStartTime() *gomock.Call {
  2926  	mr.mock.ctrl.T.Helper()
  2927  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LastSuccessfulSnapshotStartTime", reflect.TypeOf((*MockdatabaseFlushManager)(nil).LastSuccessfulSnapshotStartTime))
  2928  }
  2929  
  2930  // Report mocks base method.
  2931  func (m *MockdatabaseFlushManager) Report() {
  2932  	m.ctrl.T.Helper()
  2933  	m.ctrl.Call(m, "Report")
  2934  }
  2935  
  2936  // Report indicates an expected call of Report.
  2937  func (mr *MockdatabaseFlushManagerMockRecorder) Report() *gomock.Call {
  2938  	mr.mock.ctrl.T.Helper()
  2939  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Report", reflect.TypeOf((*MockdatabaseFlushManager)(nil).Report))
  2940  }
  2941  
  2942  // MockdatabaseCleanupManager is a mock of databaseCleanupManager interface.
  2943  type MockdatabaseCleanupManager struct {
  2944  	ctrl     *gomock.Controller
  2945  	recorder *MockdatabaseCleanupManagerMockRecorder
  2946  }
  2947  
  2948  // MockdatabaseCleanupManagerMockRecorder is the mock recorder for MockdatabaseCleanupManager.
  2949  type MockdatabaseCleanupManagerMockRecorder struct {
  2950  	mock *MockdatabaseCleanupManager
  2951  }
  2952  
  2953  // NewMockdatabaseCleanupManager creates a new mock instance.
  2954  func NewMockdatabaseCleanupManager(ctrl *gomock.Controller) *MockdatabaseCleanupManager {
  2955  	mock := &MockdatabaseCleanupManager{ctrl: ctrl}
  2956  	mock.recorder = &MockdatabaseCleanupManagerMockRecorder{mock}
  2957  	return mock
  2958  }
  2959  
  2960  // EXPECT returns an object that allows the caller to indicate expected use.
  2961  func (m *MockdatabaseCleanupManager) EXPECT() *MockdatabaseCleanupManagerMockRecorder {
  2962  	return m.recorder
  2963  }
  2964  
  2965  // ColdFlushCleanup mocks base method.
  2966  func (m *MockdatabaseCleanupManager) ColdFlushCleanup(t time0.UnixNano) error {
  2967  	m.ctrl.T.Helper()
  2968  	ret := m.ctrl.Call(m, "ColdFlushCleanup", t)
  2969  	ret0, _ := ret[0].(error)
  2970  	return ret0
  2971  }
  2972  
  2973  // ColdFlushCleanup indicates an expected call of ColdFlushCleanup.
  2974  func (mr *MockdatabaseCleanupManagerMockRecorder) ColdFlushCleanup(t interface{}) *gomock.Call {
  2975  	mr.mock.ctrl.T.Helper()
  2976  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ColdFlushCleanup", reflect.TypeOf((*MockdatabaseCleanupManager)(nil).ColdFlushCleanup), t)
  2977  }
  2978  
  2979  // Report mocks base method.
  2980  func (m *MockdatabaseCleanupManager) Report() {
  2981  	m.ctrl.T.Helper()
  2982  	m.ctrl.Call(m, "Report")
  2983  }
  2984  
  2985  // Report indicates an expected call of Report.
  2986  func (mr *MockdatabaseCleanupManagerMockRecorder) Report() *gomock.Call {
  2987  	mr.mock.ctrl.T.Helper()
  2988  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Report", reflect.TypeOf((*MockdatabaseCleanupManager)(nil).Report))
  2989  }
  2990  
  2991  // WarmFlushCleanup mocks base method.
  2992  func (m *MockdatabaseCleanupManager) WarmFlushCleanup(t time0.UnixNano) error {
  2993  	m.ctrl.T.Helper()
  2994  	ret := m.ctrl.Call(m, "WarmFlushCleanup", t)
  2995  	ret0, _ := ret[0].(error)
  2996  	return ret0
  2997  }
  2998  
  2999  // WarmFlushCleanup indicates an expected call of WarmFlushCleanup.
  3000  func (mr *MockdatabaseCleanupManagerMockRecorder) WarmFlushCleanup(t interface{}) *gomock.Call {
  3001  	mr.mock.ctrl.T.Helper()
  3002  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WarmFlushCleanup", reflect.TypeOf((*MockdatabaseCleanupManager)(nil).WarmFlushCleanup), t)
  3003  }
  3004  
  3005  // MockdatabaseFileSystemManager is a mock of databaseFileSystemManager interface.
  3006  type MockdatabaseFileSystemManager struct {
  3007  	ctrl     *gomock.Controller
  3008  	recorder *MockdatabaseFileSystemManagerMockRecorder
  3009  }
  3010  
  3011  // MockdatabaseFileSystemManagerMockRecorder is the mock recorder for MockdatabaseFileSystemManager.
  3012  type MockdatabaseFileSystemManagerMockRecorder struct {
  3013  	mock *MockdatabaseFileSystemManager
  3014  }
  3015  
  3016  // NewMockdatabaseFileSystemManager creates a new mock instance.
  3017  func NewMockdatabaseFileSystemManager(ctrl *gomock.Controller) *MockdatabaseFileSystemManager {
  3018  	mock := &MockdatabaseFileSystemManager{ctrl: ctrl}
  3019  	mock.recorder = &MockdatabaseFileSystemManagerMockRecorder{mock}
  3020  	return mock
  3021  }
  3022  
  3023  // EXPECT returns an object that allows the caller to indicate expected use.
  3024  func (m *MockdatabaseFileSystemManager) EXPECT() *MockdatabaseFileSystemManagerMockRecorder {
  3025  	return m.recorder
  3026  }
  3027  
  3028  // Disable mocks base method.
  3029  func (m *MockdatabaseFileSystemManager) Disable() fileOpStatus {
  3030  	m.ctrl.T.Helper()
  3031  	ret := m.ctrl.Call(m, "Disable")
  3032  	ret0, _ := ret[0].(fileOpStatus)
  3033  	return ret0
  3034  }
  3035  
  3036  // Disable indicates an expected call of Disable.
  3037  func (mr *MockdatabaseFileSystemManagerMockRecorder) Disable() *gomock.Call {
  3038  	mr.mock.ctrl.T.Helper()
  3039  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Disable", reflect.TypeOf((*MockdatabaseFileSystemManager)(nil).Disable))
  3040  }
  3041  
  3042  // Enable mocks base method.
  3043  func (m *MockdatabaseFileSystemManager) Enable() fileOpStatus {
  3044  	m.ctrl.T.Helper()
  3045  	ret := m.ctrl.Call(m, "Enable")
  3046  	ret0, _ := ret[0].(fileOpStatus)
  3047  	return ret0
  3048  }
  3049  
  3050  // Enable indicates an expected call of Enable.
  3051  func (mr *MockdatabaseFileSystemManagerMockRecorder) Enable() *gomock.Call {
  3052  	mr.mock.ctrl.T.Helper()
  3053  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Enable", reflect.TypeOf((*MockdatabaseFileSystemManager)(nil).Enable))
  3054  }
  3055  
  3056  // Flush mocks base method.
  3057  func (m *MockdatabaseFileSystemManager) Flush(t time0.UnixNano) error {
  3058  	m.ctrl.T.Helper()
  3059  	ret := m.ctrl.Call(m, "Flush", t)
  3060  	ret0, _ := ret[0].(error)
  3061  	return ret0
  3062  }
  3063  
  3064  // Flush indicates an expected call of Flush.
  3065  func (mr *MockdatabaseFileSystemManagerMockRecorder) Flush(t interface{}) *gomock.Call {
  3066  	mr.mock.ctrl.T.Helper()
  3067  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Flush", reflect.TypeOf((*MockdatabaseFileSystemManager)(nil).Flush), t)
  3068  }
  3069  
  3070  // LastSuccessfulSnapshotStartTime mocks base method.
  3071  func (m *MockdatabaseFileSystemManager) LastSuccessfulSnapshotStartTime() (time0.UnixNano, bool) {
  3072  	m.ctrl.T.Helper()
  3073  	ret := m.ctrl.Call(m, "LastSuccessfulSnapshotStartTime")
  3074  	ret0, _ := ret[0].(time0.UnixNano)
  3075  	ret1, _ := ret[1].(bool)
  3076  	return ret0, ret1
  3077  }
  3078  
  3079  // LastSuccessfulSnapshotStartTime indicates an expected call of LastSuccessfulSnapshotStartTime.
  3080  func (mr *MockdatabaseFileSystemManagerMockRecorder) LastSuccessfulSnapshotStartTime() *gomock.Call {
  3081  	mr.mock.ctrl.T.Helper()
  3082  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LastSuccessfulSnapshotStartTime", reflect.TypeOf((*MockdatabaseFileSystemManager)(nil).LastSuccessfulSnapshotStartTime))
  3083  }
  3084  
  3085  // Report mocks base method.
  3086  func (m *MockdatabaseFileSystemManager) Report() {
  3087  	m.ctrl.T.Helper()
  3088  	m.ctrl.Call(m, "Report")
  3089  }
  3090  
  3091  // Report indicates an expected call of Report.
  3092  func (mr *MockdatabaseFileSystemManagerMockRecorder) Report() *gomock.Call {
  3093  	mr.mock.ctrl.T.Helper()
  3094  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Report", reflect.TypeOf((*MockdatabaseFileSystemManager)(nil).Report))
  3095  }
  3096  
  3097  // Run mocks base method.
  3098  func (m *MockdatabaseFileSystemManager) Run(t time0.UnixNano) bool {
  3099  	m.ctrl.T.Helper()
  3100  	ret := m.ctrl.Call(m, "Run", t)
  3101  	ret0, _ := ret[0].(bool)
  3102  	return ret0
  3103  }
  3104  
  3105  // Run indicates an expected call of Run.
  3106  func (mr *MockdatabaseFileSystemManagerMockRecorder) Run(t interface{}) *gomock.Call {
  3107  	mr.mock.ctrl.T.Helper()
  3108  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Run", reflect.TypeOf((*MockdatabaseFileSystemManager)(nil).Run), t)
  3109  }
  3110  
  3111  // Status mocks base method.
  3112  func (m *MockdatabaseFileSystemManager) Status() fileOpStatus {
  3113  	m.ctrl.T.Helper()
  3114  	ret := m.ctrl.Call(m, "Status")
  3115  	ret0, _ := ret[0].(fileOpStatus)
  3116  	return ret0
  3117  }
  3118  
  3119  // Status indicates an expected call of Status.
  3120  func (mr *MockdatabaseFileSystemManagerMockRecorder) Status() *gomock.Call {
  3121  	mr.mock.ctrl.T.Helper()
  3122  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Status", reflect.TypeOf((*MockdatabaseFileSystemManager)(nil).Status))
  3123  }
  3124  
  3125  // MockdatabaseColdFlushManager is a mock of databaseColdFlushManager interface.
  3126  type MockdatabaseColdFlushManager struct {
  3127  	ctrl     *gomock.Controller
  3128  	recorder *MockdatabaseColdFlushManagerMockRecorder
  3129  }
  3130  
  3131  // MockdatabaseColdFlushManagerMockRecorder is the mock recorder for MockdatabaseColdFlushManager.
  3132  type MockdatabaseColdFlushManagerMockRecorder struct {
  3133  	mock *MockdatabaseColdFlushManager
  3134  }
  3135  
  3136  // NewMockdatabaseColdFlushManager creates a new mock instance.
  3137  func NewMockdatabaseColdFlushManager(ctrl *gomock.Controller) *MockdatabaseColdFlushManager {
  3138  	mock := &MockdatabaseColdFlushManager{ctrl: ctrl}
  3139  	mock.recorder = &MockdatabaseColdFlushManagerMockRecorder{mock}
  3140  	return mock
  3141  }
  3142  
  3143  // EXPECT returns an object that allows the caller to indicate expected use.
  3144  func (m *MockdatabaseColdFlushManager) EXPECT() *MockdatabaseColdFlushManagerMockRecorder {
  3145  	return m.recorder
  3146  }
  3147  
  3148  // ColdFlushCleanup mocks base method.
  3149  func (m *MockdatabaseColdFlushManager) ColdFlushCleanup(t time0.UnixNano) error {
  3150  	m.ctrl.T.Helper()
  3151  	ret := m.ctrl.Call(m, "ColdFlushCleanup", t)
  3152  	ret0, _ := ret[0].(error)
  3153  	return ret0
  3154  }
  3155  
  3156  // ColdFlushCleanup indicates an expected call of ColdFlushCleanup.
  3157  func (mr *MockdatabaseColdFlushManagerMockRecorder) ColdFlushCleanup(t interface{}) *gomock.Call {
  3158  	mr.mock.ctrl.T.Helper()
  3159  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ColdFlushCleanup", reflect.TypeOf((*MockdatabaseColdFlushManager)(nil).ColdFlushCleanup), t)
  3160  }
  3161  
  3162  // Disable mocks base method.
  3163  func (m *MockdatabaseColdFlushManager) Disable() fileOpStatus {
  3164  	m.ctrl.T.Helper()
  3165  	ret := m.ctrl.Call(m, "Disable")
  3166  	ret0, _ := ret[0].(fileOpStatus)
  3167  	return ret0
  3168  }
  3169  
  3170  // Disable indicates an expected call of Disable.
  3171  func (mr *MockdatabaseColdFlushManagerMockRecorder) Disable() *gomock.Call {
  3172  	mr.mock.ctrl.T.Helper()
  3173  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Disable", reflect.TypeOf((*MockdatabaseColdFlushManager)(nil).Disable))
  3174  }
  3175  
  3176  // Enable mocks base method.
  3177  func (m *MockdatabaseColdFlushManager) Enable() fileOpStatus {
  3178  	m.ctrl.T.Helper()
  3179  	ret := m.ctrl.Call(m, "Enable")
  3180  	ret0, _ := ret[0].(fileOpStatus)
  3181  	return ret0
  3182  }
  3183  
  3184  // Enable indicates an expected call of Enable.
  3185  func (mr *MockdatabaseColdFlushManagerMockRecorder) Enable() *gomock.Call {
  3186  	mr.mock.ctrl.T.Helper()
  3187  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Enable", reflect.TypeOf((*MockdatabaseColdFlushManager)(nil).Enable))
  3188  }
  3189  
  3190  // Report mocks base method.
  3191  func (m *MockdatabaseColdFlushManager) Report() {
  3192  	m.ctrl.T.Helper()
  3193  	m.ctrl.Call(m, "Report")
  3194  }
  3195  
  3196  // Report indicates an expected call of Report.
  3197  func (mr *MockdatabaseColdFlushManagerMockRecorder) Report() *gomock.Call {
  3198  	mr.mock.ctrl.T.Helper()
  3199  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Report", reflect.TypeOf((*MockdatabaseColdFlushManager)(nil).Report))
  3200  }
  3201  
  3202  // Run mocks base method.
  3203  func (m *MockdatabaseColdFlushManager) Run(t time0.UnixNano) bool {
  3204  	m.ctrl.T.Helper()
  3205  	ret := m.ctrl.Call(m, "Run", t)
  3206  	ret0, _ := ret[0].(bool)
  3207  	return ret0
  3208  }
  3209  
  3210  // Run indicates an expected call of Run.
  3211  func (mr *MockdatabaseColdFlushManagerMockRecorder) Run(t interface{}) *gomock.Call {
  3212  	mr.mock.ctrl.T.Helper()
  3213  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Run", reflect.TypeOf((*MockdatabaseColdFlushManager)(nil).Run), t)
  3214  }
  3215  
  3216  // Status mocks base method.
  3217  func (m *MockdatabaseColdFlushManager) Status() fileOpStatus {
  3218  	m.ctrl.T.Helper()
  3219  	ret := m.ctrl.Call(m, "Status")
  3220  	ret0, _ := ret[0].(fileOpStatus)
  3221  	return ret0
  3222  }
  3223  
  3224  // Status indicates an expected call of Status.
  3225  func (mr *MockdatabaseColdFlushManagerMockRecorder) Status() *gomock.Call {
  3226  	mr.mock.ctrl.T.Helper()
  3227  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Status", reflect.TypeOf((*MockdatabaseColdFlushManager)(nil).Status))
  3228  }
  3229  
  3230  // WarmFlushCleanup mocks base method.
  3231  func (m *MockdatabaseColdFlushManager) WarmFlushCleanup(t time0.UnixNano) error {
  3232  	m.ctrl.T.Helper()
  3233  	ret := m.ctrl.Call(m, "WarmFlushCleanup", t)
  3234  	ret0, _ := ret[0].(error)
  3235  	return ret0
  3236  }
  3237  
  3238  // WarmFlushCleanup indicates an expected call of WarmFlushCleanup.
  3239  func (mr *MockdatabaseColdFlushManagerMockRecorder) WarmFlushCleanup(t interface{}) *gomock.Call {
  3240  	mr.mock.ctrl.T.Helper()
  3241  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WarmFlushCleanup", reflect.TypeOf((*MockdatabaseColdFlushManager)(nil).WarmFlushCleanup), t)
  3242  }
  3243  
  3244  // MockdatabaseShardRepairer is a mock of databaseShardRepairer interface.
  3245  type MockdatabaseShardRepairer struct {
  3246  	ctrl     *gomock.Controller
  3247  	recorder *MockdatabaseShardRepairerMockRecorder
  3248  }
  3249  
  3250  // MockdatabaseShardRepairerMockRecorder is the mock recorder for MockdatabaseShardRepairer.
  3251  type MockdatabaseShardRepairerMockRecorder struct {
  3252  	mock *MockdatabaseShardRepairer
  3253  }
  3254  
  3255  // NewMockdatabaseShardRepairer creates a new mock instance.
  3256  func NewMockdatabaseShardRepairer(ctrl *gomock.Controller) *MockdatabaseShardRepairer {
  3257  	mock := &MockdatabaseShardRepairer{ctrl: ctrl}
  3258  	mock.recorder = &MockdatabaseShardRepairerMockRecorder{mock}
  3259  	return mock
  3260  }
  3261  
  3262  // EXPECT returns an object that allows the caller to indicate expected use.
  3263  func (m *MockdatabaseShardRepairer) EXPECT() *MockdatabaseShardRepairerMockRecorder {
  3264  	return m.recorder
  3265  }
  3266  
  3267  // Options mocks base method.
  3268  func (m *MockdatabaseShardRepairer) Options() repair.Options {
  3269  	m.ctrl.T.Helper()
  3270  	ret := m.ctrl.Call(m, "Options")
  3271  	ret0, _ := ret[0].(repair.Options)
  3272  	return ret0
  3273  }
  3274  
  3275  // Options indicates an expected call of Options.
  3276  func (mr *MockdatabaseShardRepairerMockRecorder) Options() *gomock.Call {
  3277  	mr.mock.ctrl.T.Helper()
  3278  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Options", reflect.TypeOf((*MockdatabaseShardRepairer)(nil).Options))
  3279  }
  3280  
  3281  // Repair mocks base method.
  3282  func (m *MockdatabaseShardRepairer) Repair(ctx context.Context, nsCtx namespace.Context, nsMeta namespace.Metadata, tr time0.Range, shard databaseShard) (repair.MetadataComparisonResult, error) {
  3283  	m.ctrl.T.Helper()
  3284  	ret := m.ctrl.Call(m, "Repair", ctx, nsCtx, nsMeta, tr, shard)
  3285  	ret0, _ := ret[0].(repair.MetadataComparisonResult)
  3286  	ret1, _ := ret[1].(error)
  3287  	return ret0, ret1
  3288  }
  3289  
  3290  // Repair indicates an expected call of Repair.
  3291  func (mr *MockdatabaseShardRepairerMockRecorder) Repair(ctx, nsCtx, nsMeta, tr, shard interface{}) *gomock.Call {
  3292  	mr.mock.ctrl.T.Helper()
  3293  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Repair", reflect.TypeOf((*MockdatabaseShardRepairer)(nil).Repair), ctx, nsCtx, nsMeta, tr, shard)
  3294  }
  3295  
  3296  // MockBackgroundProcess is a mock of BackgroundProcess interface.
  3297  type MockBackgroundProcess struct {
  3298  	ctrl     *gomock.Controller
  3299  	recorder *MockBackgroundProcessMockRecorder
  3300  }
  3301  
  3302  // MockBackgroundProcessMockRecorder is the mock recorder for MockBackgroundProcess.
  3303  type MockBackgroundProcessMockRecorder struct {
  3304  	mock *MockBackgroundProcess
  3305  }
  3306  
  3307  // NewMockBackgroundProcess creates a new mock instance.
  3308  func NewMockBackgroundProcess(ctrl *gomock.Controller) *MockBackgroundProcess {
  3309  	mock := &MockBackgroundProcess{ctrl: ctrl}
  3310  	mock.recorder = &MockBackgroundProcessMockRecorder{mock}
  3311  	return mock
  3312  }
  3313  
  3314  // EXPECT returns an object that allows the caller to indicate expected use.
  3315  func (m *MockBackgroundProcess) EXPECT() *MockBackgroundProcessMockRecorder {
  3316  	return m.recorder
  3317  }
  3318  
  3319  // Report mocks base method.
  3320  func (m *MockBackgroundProcess) Report() {
  3321  	m.ctrl.T.Helper()
  3322  	m.ctrl.Call(m, "Report")
  3323  }
  3324  
  3325  // Report indicates an expected call of Report.
  3326  func (mr *MockBackgroundProcessMockRecorder) Report() *gomock.Call {
  3327  	mr.mock.ctrl.T.Helper()
  3328  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Report", reflect.TypeOf((*MockBackgroundProcess)(nil).Report))
  3329  }
  3330  
  3331  // Start mocks base method.
  3332  func (m *MockBackgroundProcess) Start() {
  3333  	m.ctrl.T.Helper()
  3334  	m.ctrl.Call(m, "Start")
  3335  }
  3336  
  3337  // Start indicates an expected call of Start.
  3338  func (mr *MockBackgroundProcessMockRecorder) Start() *gomock.Call {
  3339  	mr.mock.ctrl.T.Helper()
  3340  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Start", reflect.TypeOf((*MockBackgroundProcess)(nil).Start))
  3341  }
  3342  
  3343  // Stop mocks base method.
  3344  func (m *MockBackgroundProcess) Stop() {
  3345  	m.ctrl.T.Helper()
  3346  	m.ctrl.Call(m, "Stop")
  3347  }
  3348  
  3349  // Stop indicates an expected call of Stop.
  3350  func (mr *MockBackgroundProcessMockRecorder) Stop() *gomock.Call {
  3351  	mr.mock.ctrl.T.Helper()
  3352  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Stop", reflect.TypeOf((*MockBackgroundProcess)(nil).Stop))
  3353  }
  3354  
  3355  // MockFileOpsProcess is a mock of FileOpsProcess interface.
  3356  type MockFileOpsProcess struct {
  3357  	ctrl     *gomock.Controller
  3358  	recorder *MockFileOpsProcessMockRecorder
  3359  }
  3360  
  3361  // MockFileOpsProcessMockRecorder is the mock recorder for MockFileOpsProcess.
  3362  type MockFileOpsProcessMockRecorder struct {
  3363  	mock *MockFileOpsProcess
  3364  }
  3365  
  3366  // NewMockFileOpsProcess creates a new mock instance.
  3367  func NewMockFileOpsProcess(ctrl *gomock.Controller) *MockFileOpsProcess {
  3368  	mock := &MockFileOpsProcess{ctrl: ctrl}
  3369  	mock.recorder = &MockFileOpsProcessMockRecorder{mock}
  3370  	return mock
  3371  }
  3372  
  3373  // EXPECT returns an object that allows the caller to indicate expected use.
  3374  func (m *MockFileOpsProcess) EXPECT() *MockFileOpsProcessMockRecorder {
  3375  	return m.recorder
  3376  }
  3377  
  3378  // Start mocks base method.
  3379  func (m *MockFileOpsProcess) Start() {
  3380  	m.ctrl.T.Helper()
  3381  	m.ctrl.Call(m, "Start")
  3382  }
  3383  
  3384  // Start indicates an expected call of Start.
  3385  func (mr *MockFileOpsProcessMockRecorder) Start() *gomock.Call {
  3386  	mr.mock.ctrl.T.Helper()
  3387  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Start", reflect.TypeOf((*MockFileOpsProcess)(nil).Start))
  3388  }
  3389  
  3390  // MockdatabaseRepairer is a mock of databaseRepairer interface.
  3391  type MockdatabaseRepairer struct {
  3392  	ctrl     *gomock.Controller
  3393  	recorder *MockdatabaseRepairerMockRecorder
  3394  }
  3395  
  3396  // MockdatabaseRepairerMockRecorder is the mock recorder for MockdatabaseRepairer.
  3397  type MockdatabaseRepairerMockRecorder struct {
  3398  	mock *MockdatabaseRepairer
  3399  }
  3400  
  3401  // NewMockdatabaseRepairer creates a new mock instance.
  3402  func NewMockdatabaseRepairer(ctrl *gomock.Controller) *MockdatabaseRepairer {
  3403  	mock := &MockdatabaseRepairer{ctrl: ctrl}
  3404  	mock.recorder = &MockdatabaseRepairerMockRecorder{mock}
  3405  	return mock
  3406  }
  3407  
  3408  // EXPECT returns an object that allows the caller to indicate expected use.
  3409  func (m *MockdatabaseRepairer) EXPECT() *MockdatabaseRepairerMockRecorder {
  3410  	return m.recorder
  3411  }
  3412  
  3413  // Repair mocks base method.
  3414  func (m *MockdatabaseRepairer) Repair() error {
  3415  	m.ctrl.T.Helper()
  3416  	ret := m.ctrl.Call(m, "Repair")
  3417  	ret0, _ := ret[0].(error)
  3418  	return ret0
  3419  }
  3420  
  3421  // Repair indicates an expected call of Repair.
  3422  func (mr *MockdatabaseRepairerMockRecorder) Repair() *gomock.Call {
  3423  	mr.mock.ctrl.T.Helper()
  3424  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Repair", reflect.TypeOf((*MockdatabaseRepairer)(nil).Repair))
  3425  }
  3426  
  3427  // Report mocks base method.
  3428  func (m *MockdatabaseRepairer) Report() {
  3429  	m.ctrl.T.Helper()
  3430  	m.ctrl.Call(m, "Report")
  3431  }
  3432  
  3433  // Report indicates an expected call of Report.
  3434  func (mr *MockdatabaseRepairerMockRecorder) Report() *gomock.Call {
  3435  	mr.mock.ctrl.T.Helper()
  3436  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Report", reflect.TypeOf((*MockdatabaseRepairer)(nil).Report))
  3437  }
  3438  
  3439  // Start mocks base method.
  3440  func (m *MockdatabaseRepairer) Start() {
  3441  	m.ctrl.T.Helper()
  3442  	m.ctrl.Call(m, "Start")
  3443  }
  3444  
  3445  // Start indicates an expected call of Start.
  3446  func (mr *MockdatabaseRepairerMockRecorder) Start() *gomock.Call {
  3447  	mr.mock.ctrl.T.Helper()
  3448  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Start", reflect.TypeOf((*MockdatabaseRepairer)(nil).Start))
  3449  }
  3450  
  3451  // Stop mocks base method.
  3452  func (m *MockdatabaseRepairer) Stop() {
  3453  	m.ctrl.T.Helper()
  3454  	m.ctrl.Call(m, "Stop")
  3455  }
  3456  
  3457  // Stop indicates an expected call of Stop.
  3458  func (mr *MockdatabaseRepairerMockRecorder) Stop() *gomock.Call {
  3459  	mr.mock.ctrl.T.Helper()
  3460  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Stop", reflect.TypeOf((*MockdatabaseRepairer)(nil).Stop))
  3461  }
  3462  
  3463  // MockdatabaseTickManager is a mock of databaseTickManager interface.
  3464  type MockdatabaseTickManager struct {
  3465  	ctrl     *gomock.Controller
  3466  	recorder *MockdatabaseTickManagerMockRecorder
  3467  }
  3468  
  3469  // MockdatabaseTickManagerMockRecorder is the mock recorder for MockdatabaseTickManager.
  3470  type MockdatabaseTickManagerMockRecorder struct {
  3471  	mock *MockdatabaseTickManager
  3472  }
  3473  
  3474  // NewMockdatabaseTickManager creates a new mock instance.
  3475  func NewMockdatabaseTickManager(ctrl *gomock.Controller) *MockdatabaseTickManager {
  3476  	mock := &MockdatabaseTickManager{ctrl: ctrl}
  3477  	mock.recorder = &MockdatabaseTickManagerMockRecorder{mock}
  3478  	return mock
  3479  }
  3480  
  3481  // EXPECT returns an object that allows the caller to indicate expected use.
  3482  func (m *MockdatabaseTickManager) EXPECT() *MockdatabaseTickManagerMockRecorder {
  3483  	return m.recorder
  3484  }
  3485  
  3486  // Tick mocks base method.
  3487  func (m *MockdatabaseTickManager) Tick(forceType forceType, startTime time0.UnixNano) error {
  3488  	m.ctrl.T.Helper()
  3489  	ret := m.ctrl.Call(m, "Tick", forceType, startTime)
  3490  	ret0, _ := ret[0].(error)
  3491  	return ret0
  3492  }
  3493  
  3494  // Tick indicates an expected call of Tick.
  3495  func (mr *MockdatabaseTickManagerMockRecorder) Tick(forceType, startTime interface{}) *gomock.Call {
  3496  	mr.mock.ctrl.T.Helper()
  3497  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Tick", reflect.TypeOf((*MockdatabaseTickManager)(nil).Tick), forceType, startTime)
  3498  }
  3499  
  3500  // MockdatabaseMediator is a mock of databaseMediator interface.
  3501  type MockdatabaseMediator struct {
  3502  	ctrl     *gomock.Controller
  3503  	recorder *MockdatabaseMediatorMockRecorder
  3504  }
  3505  
  3506  // MockdatabaseMediatorMockRecorder is the mock recorder for MockdatabaseMediator.
  3507  type MockdatabaseMediatorMockRecorder struct {
  3508  	mock *MockdatabaseMediator
  3509  }
  3510  
  3511  // NewMockdatabaseMediator creates a new mock instance.
  3512  func NewMockdatabaseMediator(ctrl *gomock.Controller) *MockdatabaseMediator {
  3513  	mock := &MockdatabaseMediator{ctrl: ctrl}
  3514  	mock.recorder = &MockdatabaseMediatorMockRecorder{mock}
  3515  	return mock
  3516  }
  3517  
  3518  // EXPECT returns an object that allows the caller to indicate expected use.
  3519  func (m *MockdatabaseMediator) EXPECT() *MockdatabaseMediatorMockRecorder {
  3520  	return m.recorder
  3521  }
  3522  
  3523  // Bootstrap mocks base method.
  3524  func (m *MockdatabaseMediator) Bootstrap() (BootstrapResult, error) {
  3525  	m.ctrl.T.Helper()
  3526  	ret := m.ctrl.Call(m, "Bootstrap")
  3527  	ret0, _ := ret[0].(BootstrapResult)
  3528  	ret1, _ := ret[1].(error)
  3529  	return ret0, ret1
  3530  }
  3531  
  3532  // Bootstrap indicates an expected call of Bootstrap.
  3533  func (mr *MockdatabaseMediatorMockRecorder) Bootstrap() *gomock.Call {
  3534  	mr.mock.ctrl.T.Helper()
  3535  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Bootstrap", reflect.TypeOf((*MockdatabaseMediator)(nil).Bootstrap))
  3536  }
  3537  
  3538  // BootstrapEnqueue mocks base method.
  3539  func (m *MockdatabaseMediator) BootstrapEnqueue(opts BootstrapEnqueueOptions) {
  3540  	m.ctrl.T.Helper()
  3541  	m.ctrl.Call(m, "BootstrapEnqueue", opts)
  3542  }
  3543  
  3544  // BootstrapEnqueue indicates an expected call of BootstrapEnqueue.
  3545  func (mr *MockdatabaseMediatorMockRecorder) BootstrapEnqueue(opts interface{}) *gomock.Call {
  3546  	mr.mock.ctrl.T.Helper()
  3547  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BootstrapEnqueue", reflect.TypeOf((*MockdatabaseMediator)(nil).BootstrapEnqueue), opts)
  3548  }
  3549  
  3550  // Close mocks base method.
  3551  func (m *MockdatabaseMediator) Close() error {
  3552  	m.ctrl.T.Helper()
  3553  	ret := m.ctrl.Call(m, "Close")
  3554  	ret0, _ := ret[0].(error)
  3555  	return ret0
  3556  }
  3557  
  3558  // Close indicates an expected call of Close.
  3559  func (mr *MockdatabaseMediatorMockRecorder) Close() *gomock.Call {
  3560  	mr.mock.ctrl.T.Helper()
  3561  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockdatabaseMediator)(nil).Close))
  3562  }
  3563  
  3564  // DisableFileOpsAndWait mocks base method.
  3565  func (m *MockdatabaseMediator) DisableFileOpsAndWait() {
  3566  	m.ctrl.T.Helper()
  3567  	m.ctrl.Call(m, "DisableFileOpsAndWait")
  3568  }
  3569  
  3570  // DisableFileOpsAndWait indicates an expected call of DisableFileOpsAndWait.
  3571  func (mr *MockdatabaseMediatorMockRecorder) DisableFileOpsAndWait() *gomock.Call {
  3572  	mr.mock.ctrl.T.Helper()
  3573  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DisableFileOpsAndWait", reflect.TypeOf((*MockdatabaseMediator)(nil).DisableFileOpsAndWait))
  3574  }
  3575  
  3576  // EnableFileOps mocks base method.
  3577  func (m *MockdatabaseMediator) EnableFileOps() {
  3578  	m.ctrl.T.Helper()
  3579  	m.ctrl.Call(m, "EnableFileOps")
  3580  }
  3581  
  3582  // EnableFileOps indicates an expected call of EnableFileOps.
  3583  func (mr *MockdatabaseMediatorMockRecorder) EnableFileOps() *gomock.Call {
  3584  	mr.mock.ctrl.T.Helper()
  3585  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnableFileOps", reflect.TypeOf((*MockdatabaseMediator)(nil).EnableFileOps))
  3586  }
  3587  
  3588  // IsBootstrapped mocks base method.
  3589  func (m *MockdatabaseMediator) IsBootstrapped() bool {
  3590  	m.ctrl.T.Helper()
  3591  	ret := m.ctrl.Call(m, "IsBootstrapped")
  3592  	ret0, _ := ret[0].(bool)
  3593  	return ret0
  3594  }
  3595  
  3596  // IsBootstrapped indicates an expected call of IsBootstrapped.
  3597  func (mr *MockdatabaseMediatorMockRecorder) IsBootstrapped() *gomock.Call {
  3598  	mr.mock.ctrl.T.Helper()
  3599  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsBootstrapped", reflect.TypeOf((*MockdatabaseMediator)(nil).IsBootstrapped))
  3600  }
  3601  
  3602  // IsOpen mocks base method.
  3603  func (m *MockdatabaseMediator) IsOpen() bool {
  3604  	m.ctrl.T.Helper()
  3605  	ret := m.ctrl.Call(m, "IsOpen")
  3606  	ret0, _ := ret[0].(bool)
  3607  	return ret0
  3608  }
  3609  
  3610  // IsOpen indicates an expected call of IsOpen.
  3611  func (mr *MockdatabaseMediatorMockRecorder) IsOpen() *gomock.Call {
  3612  	mr.mock.ctrl.T.Helper()
  3613  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsOpen", reflect.TypeOf((*MockdatabaseMediator)(nil).IsOpen))
  3614  }
  3615  
  3616  // LastBootstrapCompletionTime mocks base method.
  3617  func (m *MockdatabaseMediator) LastBootstrapCompletionTime() (time0.UnixNano, bool) {
  3618  	m.ctrl.T.Helper()
  3619  	ret := m.ctrl.Call(m, "LastBootstrapCompletionTime")
  3620  	ret0, _ := ret[0].(time0.UnixNano)
  3621  	ret1, _ := ret[1].(bool)
  3622  	return ret0, ret1
  3623  }
  3624  
  3625  // LastBootstrapCompletionTime indicates an expected call of LastBootstrapCompletionTime.
  3626  func (mr *MockdatabaseMediatorMockRecorder) LastBootstrapCompletionTime() *gomock.Call {
  3627  	mr.mock.ctrl.T.Helper()
  3628  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LastBootstrapCompletionTime", reflect.TypeOf((*MockdatabaseMediator)(nil).LastBootstrapCompletionTime))
  3629  }
  3630  
  3631  // LastSuccessfulSnapshotStartTime mocks base method.
  3632  func (m *MockdatabaseMediator) LastSuccessfulSnapshotStartTime() (time0.UnixNano, bool) {
  3633  	m.ctrl.T.Helper()
  3634  	ret := m.ctrl.Call(m, "LastSuccessfulSnapshotStartTime")
  3635  	ret0, _ := ret[0].(time0.UnixNano)
  3636  	ret1, _ := ret[1].(bool)
  3637  	return ret0, ret1
  3638  }
  3639  
  3640  // LastSuccessfulSnapshotStartTime indicates an expected call of LastSuccessfulSnapshotStartTime.
  3641  func (mr *MockdatabaseMediatorMockRecorder) LastSuccessfulSnapshotStartTime() *gomock.Call {
  3642  	mr.mock.ctrl.T.Helper()
  3643  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LastSuccessfulSnapshotStartTime", reflect.TypeOf((*MockdatabaseMediator)(nil).LastSuccessfulSnapshotStartTime))
  3644  }
  3645  
  3646  // Open mocks base method.
  3647  func (m *MockdatabaseMediator) Open() error {
  3648  	m.ctrl.T.Helper()
  3649  	ret := m.ctrl.Call(m, "Open")
  3650  	ret0, _ := ret[0].(error)
  3651  	return ret0
  3652  }
  3653  
  3654  // Open indicates an expected call of Open.
  3655  func (mr *MockdatabaseMediatorMockRecorder) Open() *gomock.Call {
  3656  	mr.mock.ctrl.T.Helper()
  3657  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Open", reflect.TypeOf((*MockdatabaseMediator)(nil).Open))
  3658  }
  3659  
  3660  // RegisterBackgroundProcess mocks base method.
  3661  func (m *MockdatabaseMediator) RegisterBackgroundProcess(process BackgroundProcess) error {
  3662  	m.ctrl.T.Helper()
  3663  	ret := m.ctrl.Call(m, "RegisterBackgroundProcess", process)
  3664  	ret0, _ := ret[0].(error)
  3665  	return ret0
  3666  }
  3667  
  3668  // RegisterBackgroundProcess indicates an expected call of RegisterBackgroundProcess.
  3669  func (mr *MockdatabaseMediatorMockRecorder) RegisterBackgroundProcess(process interface{}) *gomock.Call {
  3670  	mr.mock.ctrl.T.Helper()
  3671  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegisterBackgroundProcess", reflect.TypeOf((*MockdatabaseMediator)(nil).RegisterBackgroundProcess), process)
  3672  }
  3673  
  3674  // Report mocks base method.
  3675  func (m *MockdatabaseMediator) Report() {
  3676  	m.ctrl.T.Helper()
  3677  	m.ctrl.Call(m, "Report")
  3678  }
  3679  
  3680  // Report indicates an expected call of Report.
  3681  func (mr *MockdatabaseMediatorMockRecorder) Report() *gomock.Call {
  3682  	mr.mock.ctrl.T.Helper()
  3683  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Report", reflect.TypeOf((*MockdatabaseMediator)(nil).Report))
  3684  }
  3685  
  3686  // Tick mocks base method.
  3687  func (m *MockdatabaseMediator) Tick(forceType forceType, startTime time0.UnixNano) error {
  3688  	m.ctrl.T.Helper()
  3689  	ret := m.ctrl.Call(m, "Tick", forceType, startTime)
  3690  	ret0, _ := ret[0].(error)
  3691  	return ret0
  3692  }
  3693  
  3694  // Tick indicates an expected call of Tick.
  3695  func (mr *MockdatabaseMediatorMockRecorder) Tick(forceType, startTime interface{}) *gomock.Call {
  3696  	mr.mock.ctrl.T.Helper()
  3697  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Tick", reflect.TypeOf((*MockdatabaseMediator)(nil).Tick), forceType, startTime)
  3698  }
  3699  
  3700  // MockColdFlushNsOpts is a mock of ColdFlushNsOpts interface.
  3701  type MockColdFlushNsOpts struct {
  3702  	ctrl     *gomock.Controller
  3703  	recorder *MockColdFlushNsOptsMockRecorder
  3704  }
  3705  
  3706  // MockColdFlushNsOptsMockRecorder is the mock recorder for MockColdFlushNsOpts.
  3707  type MockColdFlushNsOptsMockRecorder struct {
  3708  	mock *MockColdFlushNsOpts
  3709  }
  3710  
  3711  // NewMockColdFlushNsOpts creates a new mock instance.
  3712  func NewMockColdFlushNsOpts(ctrl *gomock.Controller) *MockColdFlushNsOpts {
  3713  	mock := &MockColdFlushNsOpts{ctrl: ctrl}
  3714  	mock.recorder = &MockColdFlushNsOptsMockRecorder{mock}
  3715  	return mock
  3716  }
  3717  
  3718  // EXPECT returns an object that allows the caller to indicate expected use.
  3719  func (m *MockColdFlushNsOpts) EXPECT() *MockColdFlushNsOptsMockRecorder {
  3720  	return m.recorder
  3721  }
  3722  
  3723  // ReuseResources mocks base method.
  3724  func (m *MockColdFlushNsOpts) ReuseResources() bool {
  3725  	m.ctrl.T.Helper()
  3726  	ret := m.ctrl.Call(m, "ReuseResources")
  3727  	ret0, _ := ret[0].(bool)
  3728  	return ret0
  3729  }
  3730  
  3731  // ReuseResources indicates an expected call of ReuseResources.
  3732  func (mr *MockColdFlushNsOptsMockRecorder) ReuseResources() *gomock.Call {
  3733  	mr.mock.ctrl.T.Helper()
  3734  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReuseResources", reflect.TypeOf((*MockColdFlushNsOpts)(nil).ReuseResources))
  3735  }
  3736  
  3737  // MockOnColdFlush is a mock of OnColdFlush interface.
  3738  type MockOnColdFlush struct {
  3739  	ctrl     *gomock.Controller
  3740  	recorder *MockOnColdFlushMockRecorder
  3741  }
  3742  
  3743  // MockOnColdFlushMockRecorder is the mock recorder for MockOnColdFlush.
  3744  type MockOnColdFlushMockRecorder struct {
  3745  	mock *MockOnColdFlush
  3746  }
  3747  
  3748  // NewMockOnColdFlush creates a new mock instance.
  3749  func NewMockOnColdFlush(ctrl *gomock.Controller) *MockOnColdFlush {
  3750  	mock := &MockOnColdFlush{ctrl: ctrl}
  3751  	mock.recorder = &MockOnColdFlushMockRecorder{mock}
  3752  	return mock
  3753  }
  3754  
  3755  // EXPECT returns an object that allows the caller to indicate expected use.
  3756  func (m *MockOnColdFlush) EXPECT() *MockOnColdFlushMockRecorder {
  3757  	return m.recorder
  3758  }
  3759  
  3760  // ColdFlushNamespace mocks base method.
  3761  func (m *MockOnColdFlush) ColdFlushNamespace(ns Namespace, opts ColdFlushNsOpts) (OnColdFlushNamespace, error) {
  3762  	m.ctrl.T.Helper()
  3763  	ret := m.ctrl.Call(m, "ColdFlushNamespace", ns, opts)
  3764  	ret0, _ := ret[0].(OnColdFlushNamespace)
  3765  	ret1, _ := ret[1].(error)
  3766  	return ret0, ret1
  3767  }
  3768  
  3769  // ColdFlushNamespace indicates an expected call of ColdFlushNamespace.
  3770  func (mr *MockOnColdFlushMockRecorder) ColdFlushNamespace(ns, opts interface{}) *gomock.Call {
  3771  	mr.mock.ctrl.T.Helper()
  3772  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ColdFlushNamespace", reflect.TypeOf((*MockOnColdFlush)(nil).ColdFlushNamespace), ns, opts)
  3773  }
  3774  
  3775  // MockOnColdFlushNamespace is a mock of OnColdFlushNamespace interface.
  3776  type MockOnColdFlushNamespace struct {
  3777  	ctrl     *gomock.Controller
  3778  	recorder *MockOnColdFlushNamespaceMockRecorder
  3779  }
  3780  
  3781  // MockOnColdFlushNamespaceMockRecorder is the mock recorder for MockOnColdFlushNamespace.
  3782  type MockOnColdFlushNamespaceMockRecorder struct {
  3783  	mock *MockOnColdFlushNamespace
  3784  }
  3785  
  3786  // NewMockOnColdFlushNamespace creates a new mock instance.
  3787  func NewMockOnColdFlushNamespace(ctrl *gomock.Controller) *MockOnColdFlushNamespace {
  3788  	mock := &MockOnColdFlushNamespace{ctrl: ctrl}
  3789  	mock.recorder = &MockOnColdFlushNamespaceMockRecorder{mock}
  3790  	return mock
  3791  }
  3792  
  3793  // EXPECT returns an object that allows the caller to indicate expected use.
  3794  func (m *MockOnColdFlushNamespace) EXPECT() *MockOnColdFlushNamespaceMockRecorder {
  3795  	return m.recorder
  3796  }
  3797  
  3798  // Abort mocks base method.
  3799  func (m *MockOnColdFlushNamespace) Abort() error {
  3800  	m.ctrl.T.Helper()
  3801  	ret := m.ctrl.Call(m, "Abort")
  3802  	ret0, _ := ret[0].(error)
  3803  	return ret0
  3804  }
  3805  
  3806  // Abort indicates an expected call of Abort.
  3807  func (mr *MockOnColdFlushNamespaceMockRecorder) Abort() *gomock.Call {
  3808  	mr.mock.ctrl.T.Helper()
  3809  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Abort", reflect.TypeOf((*MockOnColdFlushNamespace)(nil).Abort))
  3810  }
  3811  
  3812  // CheckpointAndMaybeCompact mocks base method.
  3813  func (m *MockOnColdFlushNamespace) CheckpointAndMaybeCompact() error {
  3814  	m.ctrl.T.Helper()
  3815  	ret := m.ctrl.Call(m, "CheckpointAndMaybeCompact")
  3816  	ret0, _ := ret[0].(error)
  3817  	return ret0
  3818  }
  3819  
  3820  // CheckpointAndMaybeCompact indicates an expected call of CheckpointAndMaybeCompact.
  3821  func (mr *MockOnColdFlushNamespaceMockRecorder) CheckpointAndMaybeCompact() *gomock.Call {
  3822  	mr.mock.ctrl.T.Helper()
  3823  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CheckpointAndMaybeCompact", reflect.TypeOf((*MockOnColdFlushNamespace)(nil).CheckpointAndMaybeCompact))
  3824  }
  3825  
  3826  // Done mocks base method.
  3827  func (m *MockOnColdFlushNamespace) Done() error {
  3828  	m.ctrl.T.Helper()
  3829  	ret := m.ctrl.Call(m, "Done")
  3830  	ret0, _ := ret[0].(error)
  3831  	return ret0
  3832  }
  3833  
  3834  // Done indicates an expected call of Done.
  3835  func (mr *MockOnColdFlushNamespaceMockRecorder) Done() *gomock.Call {
  3836  	mr.mock.ctrl.T.Helper()
  3837  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Done", reflect.TypeOf((*MockOnColdFlushNamespace)(nil).Done))
  3838  }
  3839  
  3840  // OnFlushNewSeries mocks base method.
  3841  func (m *MockOnColdFlushNamespace) OnFlushNewSeries(arg0 persist.OnFlushNewSeriesEvent) error {
  3842  	m.ctrl.T.Helper()
  3843  	ret := m.ctrl.Call(m, "OnFlushNewSeries", arg0)
  3844  	ret0, _ := ret[0].(error)
  3845  	return ret0
  3846  }
  3847  
  3848  // OnFlushNewSeries indicates an expected call of OnFlushNewSeries.
  3849  func (mr *MockOnColdFlushNamespaceMockRecorder) OnFlushNewSeries(arg0 interface{}) *gomock.Call {
  3850  	mr.mock.ctrl.T.Helper()
  3851  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OnFlushNewSeries", reflect.TypeOf((*MockOnColdFlushNamespace)(nil).OnFlushNewSeries), arg0)
  3852  }
  3853  
  3854  // MockOptions is a mock of Options interface.
  3855  type MockOptions struct {
  3856  	ctrl     *gomock.Controller
  3857  	recorder *MockOptionsMockRecorder
  3858  }
  3859  
  3860  // MockOptionsMockRecorder is the mock recorder for MockOptions.
  3861  type MockOptionsMockRecorder struct {
  3862  	mock *MockOptions
  3863  }
  3864  
  3865  // NewMockOptions creates a new mock instance.
  3866  func NewMockOptions(ctrl *gomock.Controller) *MockOptions {
  3867  	mock := &MockOptions{ctrl: ctrl}
  3868  	mock.recorder = &MockOptionsMockRecorder{mock}
  3869  	return mock
  3870  }
  3871  
  3872  // EXPECT returns an object that allows the caller to indicate expected use.
  3873  func (m *MockOptions) EXPECT() *MockOptionsMockRecorder {
  3874  	return m.recorder
  3875  }
  3876  
  3877  // AdminClient mocks base method.
  3878  func (m *MockOptions) AdminClient() client.AdminClient {
  3879  	m.ctrl.T.Helper()
  3880  	ret := m.ctrl.Call(m, "AdminClient")
  3881  	ret0, _ := ret[0].(client.AdminClient)
  3882  	return ret0
  3883  }
  3884  
  3885  // AdminClient indicates an expected call of AdminClient.
  3886  func (mr *MockOptionsMockRecorder) AdminClient() *gomock.Call {
  3887  	mr.mock.ctrl.T.Helper()
  3888  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdminClient", reflect.TypeOf((*MockOptions)(nil).AdminClient))
  3889  }
  3890  
  3891  // BackgroundProcessFns mocks base method.
  3892  func (m *MockOptions) BackgroundProcessFns() []NewBackgroundProcessFn {
  3893  	m.ctrl.T.Helper()
  3894  	ret := m.ctrl.Call(m, "BackgroundProcessFns")
  3895  	ret0, _ := ret[0].([]NewBackgroundProcessFn)
  3896  	return ret0
  3897  }
  3898  
  3899  // BackgroundProcessFns indicates an expected call of BackgroundProcessFns.
  3900  func (mr *MockOptionsMockRecorder) BackgroundProcessFns() *gomock.Call {
  3901  	mr.mock.ctrl.T.Helper()
  3902  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BackgroundProcessFns", reflect.TypeOf((*MockOptions)(nil).BackgroundProcessFns))
  3903  }
  3904  
  3905  // BlockLeaseManager mocks base method.
  3906  func (m *MockOptions) BlockLeaseManager() block.LeaseManager {
  3907  	m.ctrl.T.Helper()
  3908  	ret := m.ctrl.Call(m, "BlockLeaseManager")
  3909  	ret0, _ := ret[0].(block.LeaseManager)
  3910  	return ret0
  3911  }
  3912  
  3913  // BlockLeaseManager indicates an expected call of BlockLeaseManager.
  3914  func (mr *MockOptionsMockRecorder) BlockLeaseManager() *gomock.Call {
  3915  	mr.mock.ctrl.T.Helper()
  3916  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BlockLeaseManager", reflect.TypeOf((*MockOptions)(nil).BlockLeaseManager))
  3917  }
  3918  
  3919  // BootstrapProcessProvider mocks base method.
  3920  func (m *MockOptions) BootstrapProcessProvider() bootstrap.ProcessProvider {
  3921  	m.ctrl.T.Helper()
  3922  	ret := m.ctrl.Call(m, "BootstrapProcessProvider")
  3923  	ret0, _ := ret[0].(bootstrap.ProcessProvider)
  3924  	return ret0
  3925  }
  3926  
  3927  // BootstrapProcessProvider indicates an expected call of BootstrapProcessProvider.
  3928  func (mr *MockOptionsMockRecorder) BootstrapProcessProvider() *gomock.Call {
  3929  	mr.mock.ctrl.T.Helper()
  3930  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BootstrapProcessProvider", reflect.TypeOf((*MockOptions)(nil).BootstrapProcessProvider))
  3931  }
  3932  
  3933  // BufferBucketPool mocks base method.
  3934  func (m *MockOptions) BufferBucketPool() *series.BufferBucketPool {
  3935  	m.ctrl.T.Helper()
  3936  	ret := m.ctrl.Call(m, "BufferBucketPool")
  3937  	ret0, _ := ret[0].(*series.BufferBucketPool)
  3938  	return ret0
  3939  }
  3940  
  3941  // BufferBucketPool indicates an expected call of BufferBucketPool.
  3942  func (mr *MockOptionsMockRecorder) BufferBucketPool() *gomock.Call {
  3943  	mr.mock.ctrl.T.Helper()
  3944  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BufferBucketPool", reflect.TypeOf((*MockOptions)(nil).BufferBucketPool))
  3945  }
  3946  
  3947  // BufferBucketVersionsPool mocks base method.
  3948  func (m *MockOptions) BufferBucketVersionsPool() *series.BufferBucketVersionsPool {
  3949  	m.ctrl.T.Helper()
  3950  	ret := m.ctrl.Call(m, "BufferBucketVersionsPool")
  3951  	ret0, _ := ret[0].(*series.BufferBucketVersionsPool)
  3952  	return ret0
  3953  }
  3954  
  3955  // BufferBucketVersionsPool indicates an expected call of BufferBucketVersionsPool.
  3956  func (mr *MockOptionsMockRecorder) BufferBucketVersionsPool() *gomock.Call {
  3957  	mr.mock.ctrl.T.Helper()
  3958  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BufferBucketVersionsPool", reflect.TypeOf((*MockOptions)(nil).BufferBucketVersionsPool))
  3959  }
  3960  
  3961  // BytesPool mocks base method.
  3962  func (m *MockOptions) BytesPool() pool.CheckedBytesPool {
  3963  	m.ctrl.T.Helper()
  3964  	ret := m.ctrl.Call(m, "BytesPool")
  3965  	ret0, _ := ret[0].(pool.CheckedBytesPool)
  3966  	return ret0
  3967  }
  3968  
  3969  // BytesPool indicates an expected call of BytesPool.
  3970  func (mr *MockOptionsMockRecorder) BytesPool() *gomock.Call {
  3971  	mr.mock.ctrl.T.Helper()
  3972  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BytesPool", reflect.TypeOf((*MockOptions)(nil).BytesPool))
  3973  }
  3974  
  3975  // CheckedBytesWrapperPool mocks base method.
  3976  func (m *MockOptions) CheckedBytesWrapperPool() xpool.CheckedBytesWrapperPool {
  3977  	m.ctrl.T.Helper()
  3978  	ret := m.ctrl.Call(m, "CheckedBytesWrapperPool")
  3979  	ret0, _ := ret[0].(xpool.CheckedBytesWrapperPool)
  3980  	return ret0
  3981  }
  3982  
  3983  // CheckedBytesWrapperPool indicates an expected call of CheckedBytesWrapperPool.
  3984  func (mr *MockOptionsMockRecorder) CheckedBytesWrapperPool() *gomock.Call {
  3985  	mr.mock.ctrl.T.Helper()
  3986  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CheckedBytesWrapperPool", reflect.TypeOf((*MockOptions)(nil).CheckedBytesWrapperPool))
  3987  }
  3988  
  3989  // ClockOptions mocks base method.
  3990  func (m *MockOptions) ClockOptions() clock.Options {
  3991  	m.ctrl.T.Helper()
  3992  	ret := m.ctrl.Call(m, "ClockOptions")
  3993  	ret0, _ := ret[0].(clock.Options)
  3994  	return ret0
  3995  }
  3996  
  3997  // ClockOptions indicates an expected call of ClockOptions.
  3998  func (mr *MockOptionsMockRecorder) ClockOptions() *gomock.Call {
  3999  	mr.mock.ctrl.T.Helper()
  4000  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClockOptions", reflect.TypeOf((*MockOptions)(nil).ClockOptions))
  4001  }
  4002  
  4003  // CommitLogOptions mocks base method.
  4004  func (m *MockOptions) CommitLogOptions() commitlog.Options {
  4005  	m.ctrl.T.Helper()
  4006  	ret := m.ctrl.Call(m, "CommitLogOptions")
  4007  	ret0, _ := ret[0].(commitlog.Options)
  4008  	return ret0
  4009  }
  4010  
  4011  // CommitLogOptions indicates an expected call of CommitLogOptions.
  4012  func (mr *MockOptionsMockRecorder) CommitLogOptions() *gomock.Call {
  4013  	mr.mock.ctrl.T.Helper()
  4014  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CommitLogOptions", reflect.TypeOf((*MockOptions)(nil).CommitLogOptions))
  4015  }
  4016  
  4017  // ContextPool mocks base method.
  4018  func (m *MockOptions) ContextPool() context.Pool {
  4019  	m.ctrl.T.Helper()
  4020  	ret := m.ctrl.Call(m, "ContextPool")
  4021  	ret0, _ := ret[0].(context.Pool)
  4022  	return ret0
  4023  }
  4024  
  4025  // ContextPool indicates an expected call of ContextPool.
  4026  func (mr *MockOptionsMockRecorder) ContextPool() *gomock.Call {
  4027  	mr.mock.ctrl.T.Helper()
  4028  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContextPool", reflect.TypeOf((*MockOptions)(nil).ContextPool))
  4029  }
  4030  
  4031  // CoreFn mocks base method.
  4032  func (m *MockOptions) CoreFn() sync0.CoreFn {
  4033  	m.ctrl.T.Helper()
  4034  	ret := m.ctrl.Call(m, "CoreFn")
  4035  	ret0, _ := ret[0].(sync0.CoreFn)
  4036  	return ret0
  4037  }
  4038  
  4039  // CoreFn indicates an expected call of CoreFn.
  4040  func (mr *MockOptionsMockRecorder) CoreFn() *gomock.Call {
  4041  	mr.mock.ctrl.T.Helper()
  4042  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CoreFn", reflect.TypeOf((*MockOptions)(nil).CoreFn))
  4043  }
  4044  
  4045  // DatabaseBlockOptions mocks base method.
  4046  func (m *MockOptions) DatabaseBlockOptions() block.Options {
  4047  	m.ctrl.T.Helper()
  4048  	ret := m.ctrl.Call(m, "DatabaseBlockOptions")
  4049  	ret0, _ := ret[0].(block.Options)
  4050  	return ret0
  4051  }
  4052  
  4053  // DatabaseBlockOptions indicates an expected call of DatabaseBlockOptions.
  4054  func (mr *MockOptionsMockRecorder) DatabaseBlockOptions() *gomock.Call {
  4055  	mr.mock.ctrl.T.Helper()
  4056  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DatabaseBlockOptions", reflect.TypeOf((*MockOptions)(nil).DatabaseBlockOptions))
  4057  }
  4058  
  4059  // DatabaseBlockRetrieverManager mocks base method.
  4060  func (m *MockOptions) DatabaseBlockRetrieverManager() block.DatabaseBlockRetrieverManager {
  4061  	m.ctrl.T.Helper()
  4062  	ret := m.ctrl.Call(m, "DatabaseBlockRetrieverManager")
  4063  	ret0, _ := ret[0].(block.DatabaseBlockRetrieverManager)
  4064  	return ret0
  4065  }
  4066  
  4067  // DatabaseBlockRetrieverManager indicates an expected call of DatabaseBlockRetrieverManager.
  4068  func (mr *MockOptionsMockRecorder) DatabaseBlockRetrieverManager() *gomock.Call {
  4069  	mr.mock.ctrl.T.Helper()
  4070  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DatabaseBlockRetrieverManager", reflect.TypeOf((*MockOptions)(nil).DatabaseBlockRetrieverManager))
  4071  }
  4072  
  4073  // DatabaseSeriesPool mocks base method.
  4074  func (m *MockOptions) DatabaseSeriesPool() series.DatabaseSeriesPool {
  4075  	m.ctrl.T.Helper()
  4076  	ret := m.ctrl.Call(m, "DatabaseSeriesPool")
  4077  	ret0, _ := ret[0].(series.DatabaseSeriesPool)
  4078  	return ret0
  4079  }
  4080  
  4081  // DatabaseSeriesPool indicates an expected call of DatabaseSeriesPool.
  4082  func (mr *MockOptionsMockRecorder) DatabaseSeriesPool() *gomock.Call {
  4083  	mr.mock.ctrl.T.Helper()
  4084  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DatabaseSeriesPool", reflect.TypeOf((*MockOptions)(nil).DatabaseSeriesPool))
  4085  }
  4086  
  4087  // DoNotIndexWithFieldsMap mocks base method.
  4088  func (m *MockOptions) DoNotIndexWithFieldsMap() map[string]string {
  4089  	m.ctrl.T.Helper()
  4090  	ret := m.ctrl.Call(m, "DoNotIndexWithFieldsMap")
  4091  	ret0, _ := ret[0].(map[string]string)
  4092  	return ret0
  4093  }
  4094  
  4095  // DoNotIndexWithFieldsMap indicates an expected call of DoNotIndexWithFieldsMap.
  4096  func (mr *MockOptionsMockRecorder) DoNotIndexWithFieldsMap() *gomock.Call {
  4097  	mr.mock.ctrl.T.Helper()
  4098  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DoNotIndexWithFieldsMap", reflect.TypeOf((*MockOptions)(nil).DoNotIndexWithFieldsMap))
  4099  }
  4100  
  4101  // EncoderPool mocks base method.
  4102  func (m *MockOptions) EncoderPool() encoding.EncoderPool {
  4103  	m.ctrl.T.Helper()
  4104  	ret := m.ctrl.Call(m, "EncoderPool")
  4105  	ret0, _ := ret[0].(encoding.EncoderPool)
  4106  	return ret0
  4107  }
  4108  
  4109  // EncoderPool indicates an expected call of EncoderPool.
  4110  func (mr *MockOptionsMockRecorder) EncoderPool() *gomock.Call {
  4111  	mr.mock.ctrl.T.Helper()
  4112  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EncoderPool", reflect.TypeOf((*MockOptions)(nil).EncoderPool))
  4113  }
  4114  
  4115  // ErrorThresholdForLoad mocks base method.
  4116  func (m *MockOptions) ErrorThresholdForLoad() int64 {
  4117  	m.ctrl.T.Helper()
  4118  	ret := m.ctrl.Call(m, "ErrorThresholdForLoad")
  4119  	ret0, _ := ret[0].(int64)
  4120  	return ret0
  4121  }
  4122  
  4123  // ErrorThresholdForLoad indicates an expected call of ErrorThresholdForLoad.
  4124  func (mr *MockOptionsMockRecorder) ErrorThresholdForLoad() *gomock.Call {
  4125  	mr.mock.ctrl.T.Helper()
  4126  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ErrorThresholdForLoad", reflect.TypeOf((*MockOptions)(nil).ErrorThresholdForLoad))
  4127  }
  4128  
  4129  // ErrorWindowForLoad mocks base method.
  4130  func (m *MockOptions) ErrorWindowForLoad() time.Duration {
  4131  	m.ctrl.T.Helper()
  4132  	ret := m.ctrl.Call(m, "ErrorWindowForLoad")
  4133  	ret0, _ := ret[0].(time.Duration)
  4134  	return ret0
  4135  }
  4136  
  4137  // ErrorWindowForLoad indicates an expected call of ErrorWindowForLoad.
  4138  func (mr *MockOptionsMockRecorder) ErrorWindowForLoad() *gomock.Call {
  4139  	mr.mock.ctrl.T.Helper()
  4140  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ErrorWindowForLoad", reflect.TypeOf((*MockOptions)(nil).ErrorWindowForLoad))
  4141  }
  4142  
  4143  // FetchBlockMetadataResultsPool mocks base method.
  4144  func (m *MockOptions) FetchBlockMetadataResultsPool() block.FetchBlockMetadataResultsPool {
  4145  	m.ctrl.T.Helper()
  4146  	ret := m.ctrl.Call(m, "FetchBlockMetadataResultsPool")
  4147  	ret0, _ := ret[0].(block.FetchBlockMetadataResultsPool)
  4148  	return ret0
  4149  }
  4150  
  4151  // FetchBlockMetadataResultsPool indicates an expected call of FetchBlockMetadataResultsPool.
  4152  func (mr *MockOptionsMockRecorder) FetchBlockMetadataResultsPool() *gomock.Call {
  4153  	mr.mock.ctrl.T.Helper()
  4154  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchBlockMetadataResultsPool", reflect.TypeOf((*MockOptions)(nil).FetchBlockMetadataResultsPool))
  4155  }
  4156  
  4157  // FetchBlocksMetadataResultsPool mocks base method.
  4158  func (m *MockOptions) FetchBlocksMetadataResultsPool() block.FetchBlocksMetadataResultsPool {
  4159  	m.ctrl.T.Helper()
  4160  	ret := m.ctrl.Call(m, "FetchBlocksMetadataResultsPool")
  4161  	ret0, _ := ret[0].(block.FetchBlocksMetadataResultsPool)
  4162  	return ret0
  4163  }
  4164  
  4165  // FetchBlocksMetadataResultsPool indicates an expected call of FetchBlocksMetadataResultsPool.
  4166  func (mr *MockOptionsMockRecorder) FetchBlocksMetadataResultsPool() *gomock.Call {
  4167  	mr.mock.ctrl.T.Helper()
  4168  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchBlocksMetadataResultsPool", reflect.TypeOf((*MockOptions)(nil).FetchBlocksMetadataResultsPool))
  4169  }
  4170  
  4171  // ForceColdWritesEnabled mocks base method.
  4172  func (m *MockOptions) ForceColdWritesEnabled() bool {
  4173  	m.ctrl.T.Helper()
  4174  	ret := m.ctrl.Call(m, "ForceColdWritesEnabled")
  4175  	ret0, _ := ret[0].(bool)
  4176  	return ret0
  4177  }
  4178  
  4179  // ForceColdWritesEnabled indicates an expected call of ForceColdWritesEnabled.
  4180  func (mr *MockOptionsMockRecorder) ForceColdWritesEnabled() *gomock.Call {
  4181  	mr.mock.ctrl.T.Helper()
  4182  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ForceColdWritesEnabled", reflect.TypeOf((*MockOptions)(nil).ForceColdWritesEnabled))
  4183  }
  4184  
  4185  // IdentifierPool mocks base method.
  4186  func (m *MockOptions) IdentifierPool() ident.Pool {
  4187  	m.ctrl.T.Helper()
  4188  	ret := m.ctrl.Call(m, "IdentifierPool")
  4189  	ret0, _ := ret[0].(ident.Pool)
  4190  	return ret0
  4191  }
  4192  
  4193  // IdentifierPool indicates an expected call of IdentifierPool.
  4194  func (mr *MockOptionsMockRecorder) IdentifierPool() *gomock.Call {
  4195  	mr.mock.ctrl.T.Helper()
  4196  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IdentifierPool", reflect.TypeOf((*MockOptions)(nil).IdentifierPool))
  4197  }
  4198  
  4199  // IndexClaimsManager mocks base method.
  4200  func (m *MockOptions) IndexClaimsManager() fs.IndexClaimsManager {
  4201  	m.ctrl.T.Helper()
  4202  	ret := m.ctrl.Call(m, "IndexClaimsManager")
  4203  	ret0, _ := ret[0].(fs.IndexClaimsManager)
  4204  	return ret0
  4205  }
  4206  
  4207  // IndexClaimsManager indicates an expected call of IndexClaimsManager.
  4208  func (mr *MockOptionsMockRecorder) IndexClaimsManager() *gomock.Call {
  4209  	mr.mock.ctrl.T.Helper()
  4210  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IndexClaimsManager", reflect.TypeOf((*MockOptions)(nil).IndexClaimsManager))
  4211  }
  4212  
  4213  // IndexOptions mocks base method.
  4214  func (m *MockOptions) IndexOptions() index.Options {
  4215  	m.ctrl.T.Helper()
  4216  	ret := m.ctrl.Call(m, "IndexOptions")
  4217  	ret0, _ := ret[0].(index.Options)
  4218  	return ret0
  4219  }
  4220  
  4221  // IndexOptions indicates an expected call of IndexOptions.
  4222  func (mr *MockOptionsMockRecorder) IndexOptions() *gomock.Call {
  4223  	mr.mock.ctrl.T.Helper()
  4224  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IndexOptions", reflect.TypeOf((*MockOptions)(nil).IndexOptions))
  4225  }
  4226  
  4227  // InstrumentOptions mocks base method.
  4228  func (m *MockOptions) InstrumentOptions() instrument.Options {
  4229  	m.ctrl.T.Helper()
  4230  	ret := m.ctrl.Call(m, "InstrumentOptions")
  4231  	ret0, _ := ret[0].(instrument.Options)
  4232  	return ret0
  4233  }
  4234  
  4235  // InstrumentOptions indicates an expected call of InstrumentOptions.
  4236  func (mr *MockOptionsMockRecorder) InstrumentOptions() *gomock.Call {
  4237  	mr.mock.ctrl.T.Helper()
  4238  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InstrumentOptions", reflect.TypeOf((*MockOptions)(nil).InstrumentOptions))
  4239  }
  4240  
  4241  // IterationOptions mocks base method.
  4242  func (m *MockOptions) IterationOptions() index.IterationOptions {
  4243  	m.ctrl.T.Helper()
  4244  	ret := m.ctrl.Call(m, "IterationOptions")
  4245  	ret0, _ := ret[0].(index.IterationOptions)
  4246  	return ret0
  4247  }
  4248  
  4249  // IterationOptions indicates an expected call of IterationOptions.
  4250  func (mr *MockOptionsMockRecorder) IterationOptions() *gomock.Call {
  4251  	mr.mock.ctrl.T.Helper()
  4252  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IterationOptions", reflect.TypeOf((*MockOptions)(nil).IterationOptions))
  4253  }
  4254  
  4255  // LimitsOptions mocks base method.
  4256  func (m *MockOptions) LimitsOptions() limits.Options {
  4257  	m.ctrl.T.Helper()
  4258  	ret := m.ctrl.Call(m, "LimitsOptions")
  4259  	ret0, _ := ret[0].(limits.Options)
  4260  	return ret0
  4261  }
  4262  
  4263  // LimitsOptions indicates an expected call of LimitsOptions.
  4264  func (mr *MockOptionsMockRecorder) LimitsOptions() *gomock.Call {
  4265  	mr.mock.ctrl.T.Helper()
  4266  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LimitsOptions", reflect.TypeOf((*MockOptions)(nil).LimitsOptions))
  4267  }
  4268  
  4269  // MediatorTickInterval mocks base method.
  4270  func (m *MockOptions) MediatorTickInterval() time.Duration {
  4271  	m.ctrl.T.Helper()
  4272  	ret := m.ctrl.Call(m, "MediatorTickInterval")
  4273  	ret0, _ := ret[0].(time.Duration)
  4274  	return ret0
  4275  }
  4276  
  4277  // MediatorTickInterval indicates an expected call of MediatorTickInterval.
  4278  func (mr *MockOptionsMockRecorder) MediatorTickInterval() *gomock.Call {
  4279  	mr.mock.ctrl.T.Helper()
  4280  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MediatorTickInterval", reflect.TypeOf((*MockOptions)(nil).MediatorTickInterval))
  4281  }
  4282  
  4283  // MemoryTracker mocks base method.
  4284  func (m *MockOptions) MemoryTracker() MemoryTracker {
  4285  	m.ctrl.T.Helper()
  4286  	ret := m.ctrl.Call(m, "MemoryTracker")
  4287  	ret0, _ := ret[0].(MemoryTracker)
  4288  	return ret0
  4289  }
  4290  
  4291  // MemoryTracker indicates an expected call of MemoryTracker.
  4292  func (mr *MockOptionsMockRecorder) MemoryTracker() *gomock.Call {
  4293  	mr.mock.ctrl.T.Helper()
  4294  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MemoryTracker", reflect.TypeOf((*MockOptions)(nil).MemoryTracker))
  4295  }
  4296  
  4297  // MmapReporter mocks base method.
  4298  func (m *MockOptions) MmapReporter() mmap.Reporter {
  4299  	m.ctrl.T.Helper()
  4300  	ret := m.ctrl.Call(m, "MmapReporter")
  4301  	ret0, _ := ret[0].(mmap.Reporter)
  4302  	return ret0
  4303  }
  4304  
  4305  // MmapReporter indicates an expected call of MmapReporter.
  4306  func (mr *MockOptionsMockRecorder) MmapReporter() *gomock.Call {
  4307  	mr.mock.ctrl.T.Helper()
  4308  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MmapReporter", reflect.TypeOf((*MockOptions)(nil).MmapReporter))
  4309  }
  4310  
  4311  // MultiReaderIteratorPool mocks base method.
  4312  func (m *MockOptions) MultiReaderIteratorPool() encoding.MultiReaderIteratorPool {
  4313  	m.ctrl.T.Helper()
  4314  	ret := m.ctrl.Call(m, "MultiReaderIteratorPool")
  4315  	ret0, _ := ret[0].(encoding.MultiReaderIteratorPool)
  4316  	return ret0
  4317  }
  4318  
  4319  // MultiReaderIteratorPool indicates an expected call of MultiReaderIteratorPool.
  4320  func (mr *MockOptionsMockRecorder) MultiReaderIteratorPool() *gomock.Call {
  4321  	mr.mock.ctrl.T.Helper()
  4322  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MultiReaderIteratorPool", reflect.TypeOf((*MockOptions)(nil).MultiReaderIteratorPool))
  4323  }
  4324  
  4325  // NamespaceHooks mocks base method.
  4326  func (m *MockOptions) NamespaceHooks() NamespaceHooks {
  4327  	m.ctrl.T.Helper()
  4328  	ret := m.ctrl.Call(m, "NamespaceHooks")
  4329  	ret0, _ := ret[0].(NamespaceHooks)
  4330  	return ret0
  4331  }
  4332  
  4333  // NamespaceHooks indicates an expected call of NamespaceHooks.
  4334  func (mr *MockOptionsMockRecorder) NamespaceHooks() *gomock.Call {
  4335  	mr.mock.ctrl.T.Helper()
  4336  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NamespaceHooks", reflect.TypeOf((*MockOptions)(nil).NamespaceHooks))
  4337  }
  4338  
  4339  // NamespaceInitializer mocks base method.
  4340  func (m *MockOptions) NamespaceInitializer() namespace.Initializer {
  4341  	m.ctrl.T.Helper()
  4342  	ret := m.ctrl.Call(m, "NamespaceInitializer")
  4343  	ret0, _ := ret[0].(namespace.Initializer)
  4344  	return ret0
  4345  }
  4346  
  4347  // NamespaceInitializer indicates an expected call of NamespaceInitializer.
  4348  func (mr *MockOptionsMockRecorder) NamespaceInitializer() *gomock.Call {
  4349  	mr.mock.ctrl.T.Helper()
  4350  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NamespaceInitializer", reflect.TypeOf((*MockOptions)(nil).NamespaceInitializer))
  4351  }
  4352  
  4353  // NamespaceRuntimeOptionsManagerRegistry mocks base method.
  4354  func (m *MockOptions) NamespaceRuntimeOptionsManagerRegistry() namespace.RuntimeOptionsManagerRegistry {
  4355  	m.ctrl.T.Helper()
  4356  	ret := m.ctrl.Call(m, "NamespaceRuntimeOptionsManagerRegistry")
  4357  	ret0, _ := ret[0].(namespace.RuntimeOptionsManagerRegistry)
  4358  	return ret0
  4359  }
  4360  
  4361  // NamespaceRuntimeOptionsManagerRegistry indicates an expected call of NamespaceRuntimeOptionsManagerRegistry.
  4362  func (mr *MockOptionsMockRecorder) NamespaceRuntimeOptionsManagerRegistry() *gomock.Call {
  4363  	mr.mock.ctrl.T.Helper()
  4364  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NamespaceRuntimeOptionsManagerRegistry", reflect.TypeOf((*MockOptions)(nil).NamespaceRuntimeOptionsManagerRegistry))
  4365  }
  4366  
  4367  // OnColdFlush mocks base method.
  4368  func (m *MockOptions) OnColdFlush() OnColdFlush {
  4369  	m.ctrl.T.Helper()
  4370  	ret := m.ctrl.Call(m, "OnColdFlush")
  4371  	ret0, _ := ret[0].(OnColdFlush)
  4372  	return ret0
  4373  }
  4374  
  4375  // OnColdFlush indicates an expected call of OnColdFlush.
  4376  func (mr *MockOptionsMockRecorder) OnColdFlush() *gomock.Call {
  4377  	mr.mock.ctrl.T.Helper()
  4378  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OnColdFlush", reflect.TypeOf((*MockOptions)(nil).OnColdFlush))
  4379  }
  4380  
  4381  // PermitsOptions mocks base method.
  4382  func (m *MockOptions) PermitsOptions() permits.Options {
  4383  	m.ctrl.T.Helper()
  4384  	ret := m.ctrl.Call(m, "PermitsOptions")
  4385  	ret0, _ := ret[0].(permits.Options)
  4386  	return ret0
  4387  }
  4388  
  4389  // PermitsOptions indicates an expected call of PermitsOptions.
  4390  func (mr *MockOptionsMockRecorder) PermitsOptions() *gomock.Call {
  4391  	mr.mock.ctrl.T.Helper()
  4392  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PermitsOptions", reflect.TypeOf((*MockOptions)(nil).PermitsOptions))
  4393  }
  4394  
  4395  // PersistManager mocks base method.
  4396  func (m *MockOptions) PersistManager() persist.Manager {
  4397  	m.ctrl.T.Helper()
  4398  	ret := m.ctrl.Call(m, "PersistManager")
  4399  	ret0, _ := ret[0].(persist.Manager)
  4400  	return ret0
  4401  }
  4402  
  4403  // PersistManager indicates an expected call of PersistManager.
  4404  func (mr *MockOptionsMockRecorder) PersistManager() *gomock.Call {
  4405  	mr.mock.ctrl.T.Helper()
  4406  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PersistManager", reflect.TypeOf((*MockOptions)(nil).PersistManager))
  4407  }
  4408  
  4409  // ReaderIteratorPool mocks base method.
  4410  func (m *MockOptions) ReaderIteratorPool() encoding.ReaderIteratorPool {
  4411  	m.ctrl.T.Helper()
  4412  	ret := m.ctrl.Call(m, "ReaderIteratorPool")
  4413  	ret0, _ := ret[0].(encoding.ReaderIteratorPool)
  4414  	return ret0
  4415  }
  4416  
  4417  // ReaderIteratorPool indicates an expected call of ReaderIteratorPool.
  4418  func (mr *MockOptionsMockRecorder) ReaderIteratorPool() *gomock.Call {
  4419  	mr.mock.ctrl.T.Helper()
  4420  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReaderIteratorPool", reflect.TypeOf((*MockOptions)(nil).ReaderIteratorPool))
  4421  }
  4422  
  4423  // RepairEnabled mocks base method.
  4424  func (m *MockOptions) RepairEnabled() bool {
  4425  	m.ctrl.T.Helper()
  4426  	ret := m.ctrl.Call(m, "RepairEnabled")
  4427  	ret0, _ := ret[0].(bool)
  4428  	return ret0
  4429  }
  4430  
  4431  // RepairEnabled indicates an expected call of RepairEnabled.
  4432  func (mr *MockOptionsMockRecorder) RepairEnabled() *gomock.Call {
  4433  	mr.mock.ctrl.T.Helper()
  4434  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RepairEnabled", reflect.TypeOf((*MockOptions)(nil).RepairEnabled))
  4435  }
  4436  
  4437  // RepairOptions mocks base method.
  4438  func (m *MockOptions) RepairOptions() repair.Options {
  4439  	m.ctrl.T.Helper()
  4440  	ret := m.ctrl.Call(m, "RepairOptions")
  4441  	ret0, _ := ret[0].(repair.Options)
  4442  	return ret0
  4443  }
  4444  
  4445  // RepairOptions indicates an expected call of RepairOptions.
  4446  func (mr *MockOptionsMockRecorder) RepairOptions() *gomock.Call {
  4447  	mr.mock.ctrl.T.Helper()
  4448  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RepairOptions", reflect.TypeOf((*MockOptions)(nil).RepairOptions))
  4449  }
  4450  
  4451  // RetrieveRequestPool mocks base method.
  4452  func (m *MockOptions) RetrieveRequestPool() fs.RetrieveRequestPool {
  4453  	m.ctrl.T.Helper()
  4454  	ret := m.ctrl.Call(m, "RetrieveRequestPool")
  4455  	ret0, _ := ret[0].(fs.RetrieveRequestPool)
  4456  	return ret0
  4457  }
  4458  
  4459  // RetrieveRequestPool indicates an expected call of RetrieveRequestPool.
  4460  func (mr *MockOptionsMockRecorder) RetrieveRequestPool() *gomock.Call {
  4461  	mr.mock.ctrl.T.Helper()
  4462  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RetrieveRequestPool", reflect.TypeOf((*MockOptions)(nil).RetrieveRequestPool))
  4463  }
  4464  
  4465  // RuntimeOptionsManager mocks base method.
  4466  func (m *MockOptions) RuntimeOptionsManager() runtime.OptionsManager {
  4467  	m.ctrl.T.Helper()
  4468  	ret := m.ctrl.Call(m, "RuntimeOptionsManager")
  4469  	ret0, _ := ret[0].(runtime.OptionsManager)
  4470  	return ret0
  4471  }
  4472  
  4473  // RuntimeOptionsManager indicates an expected call of RuntimeOptionsManager.
  4474  func (mr *MockOptionsMockRecorder) RuntimeOptionsManager() *gomock.Call {
  4475  	mr.mock.ctrl.T.Helper()
  4476  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RuntimeOptionsManager", reflect.TypeOf((*MockOptions)(nil).RuntimeOptionsManager))
  4477  }
  4478  
  4479  // SchemaRegistry mocks base method.
  4480  func (m *MockOptions) SchemaRegistry() namespace.SchemaRegistry {
  4481  	m.ctrl.T.Helper()
  4482  	ret := m.ctrl.Call(m, "SchemaRegistry")
  4483  	ret0, _ := ret[0].(namespace.SchemaRegistry)
  4484  	return ret0
  4485  }
  4486  
  4487  // SchemaRegistry indicates an expected call of SchemaRegistry.
  4488  func (mr *MockOptionsMockRecorder) SchemaRegistry() *gomock.Call {
  4489  	mr.mock.ctrl.T.Helper()
  4490  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SchemaRegistry", reflect.TypeOf((*MockOptions)(nil).SchemaRegistry))
  4491  }
  4492  
  4493  // SegmentReaderPool mocks base method.
  4494  func (m *MockOptions) SegmentReaderPool() xio.SegmentReaderPool {
  4495  	m.ctrl.T.Helper()
  4496  	ret := m.ctrl.Call(m, "SegmentReaderPool")
  4497  	ret0, _ := ret[0].(xio.SegmentReaderPool)
  4498  	return ret0
  4499  }
  4500  
  4501  // SegmentReaderPool indicates an expected call of SegmentReaderPool.
  4502  func (mr *MockOptionsMockRecorder) SegmentReaderPool() *gomock.Call {
  4503  	mr.mock.ctrl.T.Helper()
  4504  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SegmentReaderPool", reflect.TypeOf((*MockOptions)(nil).SegmentReaderPool))
  4505  }
  4506  
  4507  // SeriesCachePolicy mocks base method.
  4508  func (m *MockOptions) SeriesCachePolicy() series.CachePolicy {
  4509  	m.ctrl.T.Helper()
  4510  	ret := m.ctrl.Call(m, "SeriesCachePolicy")
  4511  	ret0, _ := ret[0].(series.CachePolicy)
  4512  	return ret0
  4513  }
  4514  
  4515  // SeriesCachePolicy indicates an expected call of SeriesCachePolicy.
  4516  func (mr *MockOptionsMockRecorder) SeriesCachePolicy() *gomock.Call {
  4517  	mr.mock.ctrl.T.Helper()
  4518  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SeriesCachePolicy", reflect.TypeOf((*MockOptions)(nil).SeriesCachePolicy))
  4519  }
  4520  
  4521  // SeriesOptions mocks base method.
  4522  func (m *MockOptions) SeriesOptions() series.Options {
  4523  	m.ctrl.T.Helper()
  4524  	ret := m.ctrl.Call(m, "SeriesOptions")
  4525  	ret0, _ := ret[0].(series.Options)
  4526  	return ret0
  4527  }
  4528  
  4529  // SeriesOptions indicates an expected call of SeriesOptions.
  4530  func (mr *MockOptionsMockRecorder) SeriesOptions() *gomock.Call {
  4531  	mr.mock.ctrl.T.Helper()
  4532  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SeriesOptions", reflect.TypeOf((*MockOptions)(nil).SeriesOptions))
  4533  }
  4534  
  4535  // SetAdminClient mocks base method.
  4536  func (m *MockOptions) SetAdminClient(value client.AdminClient) Options {
  4537  	m.ctrl.T.Helper()
  4538  	ret := m.ctrl.Call(m, "SetAdminClient", value)
  4539  	ret0, _ := ret[0].(Options)
  4540  	return ret0
  4541  }
  4542  
  4543  // SetAdminClient indicates an expected call of SetAdminClient.
  4544  func (mr *MockOptionsMockRecorder) SetAdminClient(value interface{}) *gomock.Call {
  4545  	mr.mock.ctrl.T.Helper()
  4546  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetAdminClient", reflect.TypeOf((*MockOptions)(nil).SetAdminClient), value)
  4547  }
  4548  
  4549  // SetBackgroundProcessFns mocks base method.
  4550  func (m *MockOptions) SetBackgroundProcessFns(arg0 []NewBackgroundProcessFn) Options {
  4551  	m.ctrl.T.Helper()
  4552  	ret := m.ctrl.Call(m, "SetBackgroundProcessFns", arg0)
  4553  	ret0, _ := ret[0].(Options)
  4554  	return ret0
  4555  }
  4556  
  4557  // SetBackgroundProcessFns indicates an expected call of SetBackgroundProcessFns.
  4558  func (mr *MockOptionsMockRecorder) SetBackgroundProcessFns(arg0 interface{}) *gomock.Call {
  4559  	mr.mock.ctrl.T.Helper()
  4560  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetBackgroundProcessFns", reflect.TypeOf((*MockOptions)(nil).SetBackgroundProcessFns), arg0)
  4561  }
  4562  
  4563  // SetBlockLeaseManager mocks base method.
  4564  func (m *MockOptions) SetBlockLeaseManager(leaseMgr block.LeaseManager) Options {
  4565  	m.ctrl.T.Helper()
  4566  	ret := m.ctrl.Call(m, "SetBlockLeaseManager", leaseMgr)
  4567  	ret0, _ := ret[0].(Options)
  4568  	return ret0
  4569  }
  4570  
  4571  // SetBlockLeaseManager indicates an expected call of SetBlockLeaseManager.
  4572  func (mr *MockOptionsMockRecorder) SetBlockLeaseManager(leaseMgr interface{}) *gomock.Call {
  4573  	mr.mock.ctrl.T.Helper()
  4574  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetBlockLeaseManager", reflect.TypeOf((*MockOptions)(nil).SetBlockLeaseManager), leaseMgr)
  4575  }
  4576  
  4577  // SetBootstrapProcessProvider mocks base method.
  4578  func (m *MockOptions) SetBootstrapProcessProvider(value bootstrap.ProcessProvider) Options {
  4579  	m.ctrl.T.Helper()
  4580  	ret := m.ctrl.Call(m, "SetBootstrapProcessProvider", value)
  4581  	ret0, _ := ret[0].(Options)
  4582  	return ret0
  4583  }
  4584  
  4585  // SetBootstrapProcessProvider indicates an expected call of SetBootstrapProcessProvider.
  4586  func (mr *MockOptionsMockRecorder) SetBootstrapProcessProvider(value interface{}) *gomock.Call {
  4587  	mr.mock.ctrl.T.Helper()
  4588  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetBootstrapProcessProvider", reflect.TypeOf((*MockOptions)(nil).SetBootstrapProcessProvider), value)
  4589  }
  4590  
  4591  // SetBufferBucketPool mocks base method.
  4592  func (m *MockOptions) SetBufferBucketPool(value *series.BufferBucketPool) Options {
  4593  	m.ctrl.T.Helper()
  4594  	ret := m.ctrl.Call(m, "SetBufferBucketPool", value)
  4595  	ret0, _ := ret[0].(Options)
  4596  	return ret0
  4597  }
  4598  
  4599  // SetBufferBucketPool indicates an expected call of SetBufferBucketPool.
  4600  func (mr *MockOptionsMockRecorder) SetBufferBucketPool(value interface{}) *gomock.Call {
  4601  	mr.mock.ctrl.T.Helper()
  4602  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetBufferBucketPool", reflect.TypeOf((*MockOptions)(nil).SetBufferBucketPool), value)
  4603  }
  4604  
  4605  // SetBufferBucketVersionsPool mocks base method.
  4606  func (m *MockOptions) SetBufferBucketVersionsPool(value *series.BufferBucketVersionsPool) Options {
  4607  	m.ctrl.T.Helper()
  4608  	ret := m.ctrl.Call(m, "SetBufferBucketVersionsPool", value)
  4609  	ret0, _ := ret[0].(Options)
  4610  	return ret0
  4611  }
  4612  
  4613  // SetBufferBucketVersionsPool indicates an expected call of SetBufferBucketVersionsPool.
  4614  func (mr *MockOptionsMockRecorder) SetBufferBucketVersionsPool(value interface{}) *gomock.Call {
  4615  	mr.mock.ctrl.T.Helper()
  4616  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetBufferBucketVersionsPool", reflect.TypeOf((*MockOptions)(nil).SetBufferBucketVersionsPool), value)
  4617  }
  4618  
  4619  // SetBytesPool mocks base method.
  4620  func (m *MockOptions) SetBytesPool(value pool.CheckedBytesPool) Options {
  4621  	m.ctrl.T.Helper()
  4622  	ret := m.ctrl.Call(m, "SetBytesPool", value)
  4623  	ret0, _ := ret[0].(Options)
  4624  	return ret0
  4625  }
  4626  
  4627  // SetBytesPool indicates an expected call of SetBytesPool.
  4628  func (mr *MockOptionsMockRecorder) SetBytesPool(value interface{}) *gomock.Call {
  4629  	mr.mock.ctrl.T.Helper()
  4630  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetBytesPool", reflect.TypeOf((*MockOptions)(nil).SetBytesPool), value)
  4631  }
  4632  
  4633  // SetCheckedBytesWrapperPool mocks base method.
  4634  func (m *MockOptions) SetCheckedBytesWrapperPool(value xpool.CheckedBytesWrapperPool) Options {
  4635  	m.ctrl.T.Helper()
  4636  	ret := m.ctrl.Call(m, "SetCheckedBytesWrapperPool", value)
  4637  	ret0, _ := ret[0].(Options)
  4638  	return ret0
  4639  }
  4640  
  4641  // SetCheckedBytesWrapperPool indicates an expected call of SetCheckedBytesWrapperPool.
  4642  func (mr *MockOptionsMockRecorder) SetCheckedBytesWrapperPool(value interface{}) *gomock.Call {
  4643  	mr.mock.ctrl.T.Helper()
  4644  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetCheckedBytesWrapperPool", reflect.TypeOf((*MockOptions)(nil).SetCheckedBytesWrapperPool), value)
  4645  }
  4646  
  4647  // SetClockOptions mocks base method.
  4648  func (m *MockOptions) SetClockOptions(value clock.Options) Options {
  4649  	m.ctrl.T.Helper()
  4650  	ret := m.ctrl.Call(m, "SetClockOptions", value)
  4651  	ret0, _ := ret[0].(Options)
  4652  	return ret0
  4653  }
  4654  
  4655  // SetClockOptions indicates an expected call of SetClockOptions.
  4656  func (mr *MockOptionsMockRecorder) SetClockOptions(value interface{}) *gomock.Call {
  4657  	mr.mock.ctrl.T.Helper()
  4658  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetClockOptions", reflect.TypeOf((*MockOptions)(nil).SetClockOptions), value)
  4659  }
  4660  
  4661  // SetCommitLogOptions mocks base method.
  4662  func (m *MockOptions) SetCommitLogOptions(value commitlog.Options) Options {
  4663  	m.ctrl.T.Helper()
  4664  	ret := m.ctrl.Call(m, "SetCommitLogOptions", value)
  4665  	ret0, _ := ret[0].(Options)
  4666  	return ret0
  4667  }
  4668  
  4669  // SetCommitLogOptions indicates an expected call of SetCommitLogOptions.
  4670  func (mr *MockOptionsMockRecorder) SetCommitLogOptions(value interface{}) *gomock.Call {
  4671  	mr.mock.ctrl.T.Helper()
  4672  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetCommitLogOptions", reflect.TypeOf((*MockOptions)(nil).SetCommitLogOptions), value)
  4673  }
  4674  
  4675  // SetContextPool mocks base method.
  4676  func (m *MockOptions) SetContextPool(value context.Pool) Options {
  4677  	m.ctrl.T.Helper()
  4678  	ret := m.ctrl.Call(m, "SetContextPool", value)
  4679  	ret0, _ := ret[0].(Options)
  4680  	return ret0
  4681  }
  4682  
  4683  // SetContextPool indicates an expected call of SetContextPool.
  4684  func (mr *MockOptionsMockRecorder) SetContextPool(value interface{}) *gomock.Call {
  4685  	mr.mock.ctrl.T.Helper()
  4686  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetContextPool", reflect.TypeOf((*MockOptions)(nil).SetContextPool), value)
  4687  }
  4688  
  4689  // SetCoreFn mocks base method.
  4690  func (m *MockOptions) SetCoreFn(value sync0.CoreFn) Options {
  4691  	m.ctrl.T.Helper()
  4692  	ret := m.ctrl.Call(m, "SetCoreFn", value)
  4693  	ret0, _ := ret[0].(Options)
  4694  	return ret0
  4695  }
  4696  
  4697  // SetCoreFn indicates an expected call of SetCoreFn.
  4698  func (mr *MockOptionsMockRecorder) SetCoreFn(value interface{}) *gomock.Call {
  4699  	mr.mock.ctrl.T.Helper()
  4700  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetCoreFn", reflect.TypeOf((*MockOptions)(nil).SetCoreFn), value)
  4701  }
  4702  
  4703  // SetDatabaseBlockOptions mocks base method.
  4704  func (m *MockOptions) SetDatabaseBlockOptions(value block.Options) Options {
  4705  	m.ctrl.T.Helper()
  4706  	ret := m.ctrl.Call(m, "SetDatabaseBlockOptions", value)
  4707  	ret0, _ := ret[0].(Options)
  4708  	return ret0
  4709  }
  4710  
  4711  // SetDatabaseBlockOptions indicates an expected call of SetDatabaseBlockOptions.
  4712  func (mr *MockOptionsMockRecorder) SetDatabaseBlockOptions(value interface{}) *gomock.Call {
  4713  	mr.mock.ctrl.T.Helper()
  4714  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetDatabaseBlockOptions", reflect.TypeOf((*MockOptions)(nil).SetDatabaseBlockOptions), value)
  4715  }
  4716  
  4717  // SetDatabaseBlockRetrieverManager mocks base method.
  4718  func (m *MockOptions) SetDatabaseBlockRetrieverManager(value block.DatabaseBlockRetrieverManager) Options {
  4719  	m.ctrl.T.Helper()
  4720  	ret := m.ctrl.Call(m, "SetDatabaseBlockRetrieverManager", value)
  4721  	ret0, _ := ret[0].(Options)
  4722  	return ret0
  4723  }
  4724  
  4725  // SetDatabaseBlockRetrieverManager indicates an expected call of SetDatabaseBlockRetrieverManager.
  4726  func (mr *MockOptionsMockRecorder) SetDatabaseBlockRetrieverManager(value interface{}) *gomock.Call {
  4727  	mr.mock.ctrl.T.Helper()
  4728  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetDatabaseBlockRetrieverManager", reflect.TypeOf((*MockOptions)(nil).SetDatabaseBlockRetrieverManager), value)
  4729  }
  4730  
  4731  // SetDatabaseSeriesPool mocks base method.
  4732  func (m *MockOptions) SetDatabaseSeriesPool(value series.DatabaseSeriesPool) Options {
  4733  	m.ctrl.T.Helper()
  4734  	ret := m.ctrl.Call(m, "SetDatabaseSeriesPool", value)
  4735  	ret0, _ := ret[0].(Options)
  4736  	return ret0
  4737  }
  4738  
  4739  // SetDatabaseSeriesPool indicates an expected call of SetDatabaseSeriesPool.
  4740  func (mr *MockOptionsMockRecorder) SetDatabaseSeriesPool(value interface{}) *gomock.Call {
  4741  	mr.mock.ctrl.T.Helper()
  4742  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetDatabaseSeriesPool", reflect.TypeOf((*MockOptions)(nil).SetDatabaseSeriesPool), value)
  4743  }
  4744  
  4745  // SetDoNotIndexWithFieldsMap mocks base method.
  4746  func (m *MockOptions) SetDoNotIndexWithFieldsMap(value map[string]string) Options {
  4747  	m.ctrl.T.Helper()
  4748  	ret := m.ctrl.Call(m, "SetDoNotIndexWithFieldsMap", value)
  4749  	ret0, _ := ret[0].(Options)
  4750  	return ret0
  4751  }
  4752  
  4753  // SetDoNotIndexWithFieldsMap indicates an expected call of SetDoNotIndexWithFieldsMap.
  4754  func (mr *MockOptionsMockRecorder) SetDoNotIndexWithFieldsMap(value interface{}) *gomock.Call {
  4755  	mr.mock.ctrl.T.Helper()
  4756  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetDoNotIndexWithFieldsMap", reflect.TypeOf((*MockOptions)(nil).SetDoNotIndexWithFieldsMap), value)
  4757  }
  4758  
  4759  // SetEncoderPool mocks base method.
  4760  func (m *MockOptions) SetEncoderPool(value encoding.EncoderPool) Options {
  4761  	m.ctrl.T.Helper()
  4762  	ret := m.ctrl.Call(m, "SetEncoderPool", value)
  4763  	ret0, _ := ret[0].(Options)
  4764  	return ret0
  4765  }
  4766  
  4767  // SetEncoderPool indicates an expected call of SetEncoderPool.
  4768  func (mr *MockOptionsMockRecorder) SetEncoderPool(value interface{}) *gomock.Call {
  4769  	mr.mock.ctrl.T.Helper()
  4770  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetEncoderPool", reflect.TypeOf((*MockOptions)(nil).SetEncoderPool), value)
  4771  }
  4772  
  4773  // SetEncodingM3TSZPooled mocks base method.
  4774  func (m *MockOptions) SetEncodingM3TSZPooled() Options {
  4775  	m.ctrl.T.Helper()
  4776  	ret := m.ctrl.Call(m, "SetEncodingM3TSZPooled")
  4777  	ret0, _ := ret[0].(Options)
  4778  	return ret0
  4779  }
  4780  
  4781  // SetEncodingM3TSZPooled indicates an expected call of SetEncodingM3TSZPooled.
  4782  func (mr *MockOptionsMockRecorder) SetEncodingM3TSZPooled() *gomock.Call {
  4783  	mr.mock.ctrl.T.Helper()
  4784  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetEncodingM3TSZPooled", reflect.TypeOf((*MockOptions)(nil).SetEncodingM3TSZPooled))
  4785  }
  4786  
  4787  // SetErrorThresholdForLoad mocks base method.
  4788  func (m *MockOptions) SetErrorThresholdForLoad(value int64) Options {
  4789  	m.ctrl.T.Helper()
  4790  	ret := m.ctrl.Call(m, "SetErrorThresholdForLoad", value)
  4791  	ret0, _ := ret[0].(Options)
  4792  	return ret0
  4793  }
  4794  
  4795  // SetErrorThresholdForLoad indicates an expected call of SetErrorThresholdForLoad.
  4796  func (mr *MockOptionsMockRecorder) SetErrorThresholdForLoad(value interface{}) *gomock.Call {
  4797  	mr.mock.ctrl.T.Helper()
  4798  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetErrorThresholdForLoad", reflect.TypeOf((*MockOptions)(nil).SetErrorThresholdForLoad), value)
  4799  }
  4800  
  4801  // SetErrorWindowForLoad mocks base method.
  4802  func (m *MockOptions) SetErrorWindowForLoad(value time.Duration) Options {
  4803  	m.ctrl.T.Helper()
  4804  	ret := m.ctrl.Call(m, "SetErrorWindowForLoad", value)
  4805  	ret0, _ := ret[0].(Options)
  4806  	return ret0
  4807  }
  4808  
  4809  // SetErrorWindowForLoad indicates an expected call of SetErrorWindowForLoad.
  4810  func (mr *MockOptionsMockRecorder) SetErrorWindowForLoad(value interface{}) *gomock.Call {
  4811  	mr.mock.ctrl.T.Helper()
  4812  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetErrorWindowForLoad", reflect.TypeOf((*MockOptions)(nil).SetErrorWindowForLoad), value)
  4813  }
  4814  
  4815  // SetFetchBlockMetadataResultsPool mocks base method.
  4816  func (m *MockOptions) SetFetchBlockMetadataResultsPool(value block.FetchBlockMetadataResultsPool) Options {
  4817  	m.ctrl.T.Helper()
  4818  	ret := m.ctrl.Call(m, "SetFetchBlockMetadataResultsPool", value)
  4819  	ret0, _ := ret[0].(Options)
  4820  	return ret0
  4821  }
  4822  
  4823  // SetFetchBlockMetadataResultsPool indicates an expected call of SetFetchBlockMetadataResultsPool.
  4824  func (mr *MockOptionsMockRecorder) SetFetchBlockMetadataResultsPool(value interface{}) *gomock.Call {
  4825  	mr.mock.ctrl.T.Helper()
  4826  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetFetchBlockMetadataResultsPool", reflect.TypeOf((*MockOptions)(nil).SetFetchBlockMetadataResultsPool), value)
  4827  }
  4828  
  4829  // SetFetchBlocksMetadataResultsPool mocks base method.
  4830  func (m *MockOptions) SetFetchBlocksMetadataResultsPool(value block.FetchBlocksMetadataResultsPool) Options {
  4831  	m.ctrl.T.Helper()
  4832  	ret := m.ctrl.Call(m, "SetFetchBlocksMetadataResultsPool", value)
  4833  	ret0, _ := ret[0].(Options)
  4834  	return ret0
  4835  }
  4836  
  4837  // SetFetchBlocksMetadataResultsPool indicates an expected call of SetFetchBlocksMetadataResultsPool.
  4838  func (mr *MockOptionsMockRecorder) SetFetchBlocksMetadataResultsPool(value interface{}) *gomock.Call {
  4839  	mr.mock.ctrl.T.Helper()
  4840  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetFetchBlocksMetadataResultsPool", reflect.TypeOf((*MockOptions)(nil).SetFetchBlocksMetadataResultsPool), value)
  4841  }
  4842  
  4843  // SetForceColdWritesEnabled mocks base method.
  4844  func (m *MockOptions) SetForceColdWritesEnabled(value bool) Options {
  4845  	m.ctrl.T.Helper()
  4846  	ret := m.ctrl.Call(m, "SetForceColdWritesEnabled", value)
  4847  	ret0, _ := ret[0].(Options)
  4848  	return ret0
  4849  }
  4850  
  4851  // SetForceColdWritesEnabled indicates an expected call of SetForceColdWritesEnabled.
  4852  func (mr *MockOptionsMockRecorder) SetForceColdWritesEnabled(value interface{}) *gomock.Call {
  4853  	mr.mock.ctrl.T.Helper()
  4854  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetForceColdWritesEnabled", reflect.TypeOf((*MockOptions)(nil).SetForceColdWritesEnabled), value)
  4855  }
  4856  
  4857  // SetIdentifierPool mocks base method.
  4858  func (m *MockOptions) SetIdentifierPool(value ident.Pool) Options {
  4859  	m.ctrl.T.Helper()
  4860  	ret := m.ctrl.Call(m, "SetIdentifierPool", value)
  4861  	ret0, _ := ret[0].(Options)
  4862  	return ret0
  4863  }
  4864  
  4865  // SetIdentifierPool indicates an expected call of SetIdentifierPool.
  4866  func (mr *MockOptionsMockRecorder) SetIdentifierPool(value interface{}) *gomock.Call {
  4867  	mr.mock.ctrl.T.Helper()
  4868  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetIdentifierPool", reflect.TypeOf((*MockOptions)(nil).SetIdentifierPool), value)
  4869  }
  4870  
  4871  // SetIndexClaimsManager mocks base method.
  4872  func (m *MockOptions) SetIndexClaimsManager(value fs.IndexClaimsManager) Options {
  4873  	m.ctrl.T.Helper()
  4874  	ret := m.ctrl.Call(m, "SetIndexClaimsManager", value)
  4875  	ret0, _ := ret[0].(Options)
  4876  	return ret0
  4877  }
  4878  
  4879  // SetIndexClaimsManager indicates an expected call of SetIndexClaimsManager.
  4880  func (mr *MockOptionsMockRecorder) SetIndexClaimsManager(value interface{}) *gomock.Call {
  4881  	mr.mock.ctrl.T.Helper()
  4882  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetIndexClaimsManager", reflect.TypeOf((*MockOptions)(nil).SetIndexClaimsManager), value)
  4883  }
  4884  
  4885  // SetIndexOptions mocks base method.
  4886  func (m *MockOptions) SetIndexOptions(value index.Options) Options {
  4887  	m.ctrl.T.Helper()
  4888  	ret := m.ctrl.Call(m, "SetIndexOptions", value)
  4889  	ret0, _ := ret[0].(Options)
  4890  	return ret0
  4891  }
  4892  
  4893  // SetIndexOptions indicates an expected call of SetIndexOptions.
  4894  func (mr *MockOptionsMockRecorder) SetIndexOptions(value interface{}) *gomock.Call {
  4895  	mr.mock.ctrl.T.Helper()
  4896  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetIndexOptions", reflect.TypeOf((*MockOptions)(nil).SetIndexOptions), value)
  4897  }
  4898  
  4899  // SetInstrumentOptions mocks base method.
  4900  func (m *MockOptions) SetInstrumentOptions(value instrument.Options) Options {
  4901  	m.ctrl.T.Helper()
  4902  	ret := m.ctrl.Call(m, "SetInstrumentOptions", value)
  4903  	ret0, _ := ret[0].(Options)
  4904  	return ret0
  4905  }
  4906  
  4907  // SetInstrumentOptions indicates an expected call of SetInstrumentOptions.
  4908  func (mr *MockOptionsMockRecorder) SetInstrumentOptions(value interface{}) *gomock.Call {
  4909  	mr.mock.ctrl.T.Helper()
  4910  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetInstrumentOptions", reflect.TypeOf((*MockOptions)(nil).SetInstrumentOptions), value)
  4911  }
  4912  
  4913  // SetIterationOptions mocks base method.
  4914  func (m *MockOptions) SetIterationOptions(arg0 index.IterationOptions) Options {
  4915  	m.ctrl.T.Helper()
  4916  	ret := m.ctrl.Call(m, "SetIterationOptions", arg0)
  4917  	ret0, _ := ret[0].(Options)
  4918  	return ret0
  4919  }
  4920  
  4921  // SetIterationOptions indicates an expected call of SetIterationOptions.
  4922  func (mr *MockOptionsMockRecorder) SetIterationOptions(arg0 interface{}) *gomock.Call {
  4923  	mr.mock.ctrl.T.Helper()
  4924  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetIterationOptions", reflect.TypeOf((*MockOptions)(nil).SetIterationOptions), arg0)
  4925  }
  4926  
  4927  // SetLimitsOptions mocks base method.
  4928  func (m *MockOptions) SetLimitsOptions(value limits.Options) Options {
  4929  	m.ctrl.T.Helper()
  4930  	ret := m.ctrl.Call(m, "SetLimitsOptions", value)
  4931  	ret0, _ := ret[0].(Options)
  4932  	return ret0
  4933  }
  4934  
  4935  // SetLimitsOptions indicates an expected call of SetLimitsOptions.
  4936  func (mr *MockOptionsMockRecorder) SetLimitsOptions(value interface{}) *gomock.Call {
  4937  	mr.mock.ctrl.T.Helper()
  4938  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetLimitsOptions", reflect.TypeOf((*MockOptions)(nil).SetLimitsOptions), value)
  4939  }
  4940  
  4941  // SetMediatorTickInterval mocks base method.
  4942  func (m *MockOptions) SetMediatorTickInterval(value time.Duration) Options {
  4943  	m.ctrl.T.Helper()
  4944  	ret := m.ctrl.Call(m, "SetMediatorTickInterval", value)
  4945  	ret0, _ := ret[0].(Options)
  4946  	return ret0
  4947  }
  4948  
  4949  // SetMediatorTickInterval indicates an expected call of SetMediatorTickInterval.
  4950  func (mr *MockOptionsMockRecorder) SetMediatorTickInterval(value interface{}) *gomock.Call {
  4951  	mr.mock.ctrl.T.Helper()
  4952  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetMediatorTickInterval", reflect.TypeOf((*MockOptions)(nil).SetMediatorTickInterval), value)
  4953  }
  4954  
  4955  // SetMemoryTracker mocks base method.
  4956  func (m *MockOptions) SetMemoryTracker(memTracker MemoryTracker) Options {
  4957  	m.ctrl.T.Helper()
  4958  	ret := m.ctrl.Call(m, "SetMemoryTracker", memTracker)
  4959  	ret0, _ := ret[0].(Options)
  4960  	return ret0
  4961  }
  4962  
  4963  // SetMemoryTracker indicates an expected call of SetMemoryTracker.
  4964  func (mr *MockOptionsMockRecorder) SetMemoryTracker(memTracker interface{}) *gomock.Call {
  4965  	mr.mock.ctrl.T.Helper()
  4966  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetMemoryTracker", reflect.TypeOf((*MockOptions)(nil).SetMemoryTracker), memTracker)
  4967  }
  4968  
  4969  // SetMmapReporter mocks base method.
  4970  func (m *MockOptions) SetMmapReporter(mmapReporter mmap.Reporter) Options {
  4971  	m.ctrl.T.Helper()
  4972  	ret := m.ctrl.Call(m, "SetMmapReporter", mmapReporter)
  4973  	ret0, _ := ret[0].(Options)
  4974  	return ret0
  4975  }
  4976  
  4977  // SetMmapReporter indicates an expected call of SetMmapReporter.
  4978  func (mr *MockOptionsMockRecorder) SetMmapReporter(mmapReporter interface{}) *gomock.Call {
  4979  	mr.mock.ctrl.T.Helper()
  4980  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetMmapReporter", reflect.TypeOf((*MockOptions)(nil).SetMmapReporter), mmapReporter)
  4981  }
  4982  
  4983  // SetMultiReaderIteratorPool mocks base method.
  4984  func (m *MockOptions) SetMultiReaderIteratorPool(value encoding.MultiReaderIteratorPool) Options {
  4985  	m.ctrl.T.Helper()
  4986  	ret := m.ctrl.Call(m, "SetMultiReaderIteratorPool", value)
  4987  	ret0, _ := ret[0].(Options)
  4988  	return ret0
  4989  }
  4990  
  4991  // SetMultiReaderIteratorPool indicates an expected call of SetMultiReaderIteratorPool.
  4992  func (mr *MockOptionsMockRecorder) SetMultiReaderIteratorPool(value interface{}) *gomock.Call {
  4993  	mr.mock.ctrl.T.Helper()
  4994  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetMultiReaderIteratorPool", reflect.TypeOf((*MockOptions)(nil).SetMultiReaderIteratorPool), value)
  4995  }
  4996  
  4997  // SetNamespaceHooks mocks base method.
  4998  func (m *MockOptions) SetNamespaceHooks(hooks NamespaceHooks) Options {
  4999  	m.ctrl.T.Helper()
  5000  	ret := m.ctrl.Call(m, "SetNamespaceHooks", hooks)
  5001  	ret0, _ := ret[0].(Options)
  5002  	return ret0
  5003  }
  5004  
  5005  // SetNamespaceHooks indicates an expected call of SetNamespaceHooks.
  5006  func (mr *MockOptionsMockRecorder) SetNamespaceHooks(hooks interface{}) *gomock.Call {
  5007  	mr.mock.ctrl.T.Helper()
  5008  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetNamespaceHooks", reflect.TypeOf((*MockOptions)(nil).SetNamespaceHooks), hooks)
  5009  }
  5010  
  5011  // SetNamespaceInitializer mocks base method.
  5012  func (m *MockOptions) SetNamespaceInitializer(value namespace.Initializer) Options {
  5013  	m.ctrl.T.Helper()
  5014  	ret := m.ctrl.Call(m, "SetNamespaceInitializer", value)
  5015  	ret0, _ := ret[0].(Options)
  5016  	return ret0
  5017  }
  5018  
  5019  // SetNamespaceInitializer indicates an expected call of SetNamespaceInitializer.
  5020  func (mr *MockOptionsMockRecorder) SetNamespaceInitializer(value interface{}) *gomock.Call {
  5021  	mr.mock.ctrl.T.Helper()
  5022  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetNamespaceInitializer", reflect.TypeOf((*MockOptions)(nil).SetNamespaceInitializer), value)
  5023  }
  5024  
  5025  // SetNamespaceRuntimeOptionsManagerRegistry mocks base method.
  5026  func (m *MockOptions) SetNamespaceRuntimeOptionsManagerRegistry(value namespace.RuntimeOptionsManagerRegistry) Options {
  5027  	m.ctrl.T.Helper()
  5028  	ret := m.ctrl.Call(m, "SetNamespaceRuntimeOptionsManagerRegistry", value)
  5029  	ret0, _ := ret[0].(Options)
  5030  	return ret0
  5031  }
  5032  
  5033  // SetNamespaceRuntimeOptionsManagerRegistry indicates an expected call of SetNamespaceRuntimeOptionsManagerRegistry.
  5034  func (mr *MockOptionsMockRecorder) SetNamespaceRuntimeOptionsManagerRegistry(value interface{}) *gomock.Call {
  5035  	mr.mock.ctrl.T.Helper()
  5036  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetNamespaceRuntimeOptionsManagerRegistry", reflect.TypeOf((*MockOptions)(nil).SetNamespaceRuntimeOptionsManagerRegistry), value)
  5037  }
  5038  
  5039  // SetOnColdFlush mocks base method.
  5040  func (m *MockOptions) SetOnColdFlush(value OnColdFlush) Options {
  5041  	m.ctrl.T.Helper()
  5042  	ret := m.ctrl.Call(m, "SetOnColdFlush", value)
  5043  	ret0, _ := ret[0].(Options)
  5044  	return ret0
  5045  }
  5046  
  5047  // SetOnColdFlush indicates an expected call of SetOnColdFlush.
  5048  func (mr *MockOptionsMockRecorder) SetOnColdFlush(value interface{}) *gomock.Call {
  5049  	mr.mock.ctrl.T.Helper()
  5050  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetOnColdFlush", reflect.TypeOf((*MockOptions)(nil).SetOnColdFlush), value)
  5051  }
  5052  
  5053  // SetPermitsOptions mocks base method.
  5054  func (m *MockOptions) SetPermitsOptions(value permits.Options) Options {
  5055  	m.ctrl.T.Helper()
  5056  	ret := m.ctrl.Call(m, "SetPermitsOptions", value)
  5057  	ret0, _ := ret[0].(Options)
  5058  	return ret0
  5059  }
  5060  
  5061  // SetPermitsOptions indicates an expected call of SetPermitsOptions.
  5062  func (mr *MockOptionsMockRecorder) SetPermitsOptions(value interface{}) *gomock.Call {
  5063  	mr.mock.ctrl.T.Helper()
  5064  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetPermitsOptions", reflect.TypeOf((*MockOptions)(nil).SetPermitsOptions), value)
  5065  }
  5066  
  5067  // SetPersistManager mocks base method.
  5068  func (m *MockOptions) SetPersistManager(value persist.Manager) Options {
  5069  	m.ctrl.T.Helper()
  5070  	ret := m.ctrl.Call(m, "SetPersistManager", value)
  5071  	ret0, _ := ret[0].(Options)
  5072  	return ret0
  5073  }
  5074  
  5075  // SetPersistManager indicates an expected call of SetPersistManager.
  5076  func (mr *MockOptionsMockRecorder) SetPersistManager(value interface{}) *gomock.Call {
  5077  	mr.mock.ctrl.T.Helper()
  5078  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetPersistManager", reflect.TypeOf((*MockOptions)(nil).SetPersistManager), value)
  5079  }
  5080  
  5081  // SetReaderIteratorPool mocks base method.
  5082  func (m *MockOptions) SetReaderIteratorPool(value encoding.ReaderIteratorPool) Options {
  5083  	m.ctrl.T.Helper()
  5084  	ret := m.ctrl.Call(m, "SetReaderIteratorPool", value)
  5085  	ret0, _ := ret[0].(Options)
  5086  	return ret0
  5087  }
  5088  
  5089  // SetReaderIteratorPool indicates an expected call of SetReaderIteratorPool.
  5090  func (mr *MockOptionsMockRecorder) SetReaderIteratorPool(value interface{}) *gomock.Call {
  5091  	mr.mock.ctrl.T.Helper()
  5092  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetReaderIteratorPool", reflect.TypeOf((*MockOptions)(nil).SetReaderIteratorPool), value)
  5093  }
  5094  
  5095  // SetRepairEnabled mocks base method.
  5096  func (m *MockOptions) SetRepairEnabled(b bool) Options {
  5097  	m.ctrl.T.Helper()
  5098  	ret := m.ctrl.Call(m, "SetRepairEnabled", b)
  5099  	ret0, _ := ret[0].(Options)
  5100  	return ret0
  5101  }
  5102  
  5103  // SetRepairEnabled indicates an expected call of SetRepairEnabled.
  5104  func (mr *MockOptionsMockRecorder) SetRepairEnabled(b interface{}) *gomock.Call {
  5105  	mr.mock.ctrl.T.Helper()
  5106  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetRepairEnabled", reflect.TypeOf((*MockOptions)(nil).SetRepairEnabled), b)
  5107  }
  5108  
  5109  // SetRepairOptions mocks base method.
  5110  func (m *MockOptions) SetRepairOptions(value repair.Options) Options {
  5111  	m.ctrl.T.Helper()
  5112  	ret := m.ctrl.Call(m, "SetRepairOptions", value)
  5113  	ret0, _ := ret[0].(Options)
  5114  	return ret0
  5115  }
  5116  
  5117  // SetRepairOptions indicates an expected call of SetRepairOptions.
  5118  func (mr *MockOptionsMockRecorder) SetRepairOptions(value interface{}) *gomock.Call {
  5119  	mr.mock.ctrl.T.Helper()
  5120  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetRepairOptions", reflect.TypeOf((*MockOptions)(nil).SetRepairOptions), value)
  5121  }
  5122  
  5123  // SetRetrieveRequestPool mocks base method.
  5124  func (m *MockOptions) SetRetrieveRequestPool(value fs.RetrieveRequestPool) Options {
  5125  	m.ctrl.T.Helper()
  5126  	ret := m.ctrl.Call(m, "SetRetrieveRequestPool", value)
  5127  	ret0, _ := ret[0].(Options)
  5128  	return ret0
  5129  }
  5130  
  5131  // SetRetrieveRequestPool indicates an expected call of SetRetrieveRequestPool.
  5132  func (mr *MockOptionsMockRecorder) SetRetrieveRequestPool(value interface{}) *gomock.Call {
  5133  	mr.mock.ctrl.T.Helper()
  5134  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetRetrieveRequestPool", reflect.TypeOf((*MockOptions)(nil).SetRetrieveRequestPool), value)
  5135  }
  5136  
  5137  // SetRuntimeOptionsManager mocks base method.
  5138  func (m *MockOptions) SetRuntimeOptionsManager(value runtime.OptionsManager) Options {
  5139  	m.ctrl.T.Helper()
  5140  	ret := m.ctrl.Call(m, "SetRuntimeOptionsManager", value)
  5141  	ret0, _ := ret[0].(Options)
  5142  	return ret0
  5143  }
  5144  
  5145  // SetRuntimeOptionsManager indicates an expected call of SetRuntimeOptionsManager.
  5146  func (mr *MockOptionsMockRecorder) SetRuntimeOptionsManager(value interface{}) *gomock.Call {
  5147  	mr.mock.ctrl.T.Helper()
  5148  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetRuntimeOptionsManager", reflect.TypeOf((*MockOptions)(nil).SetRuntimeOptionsManager), value)
  5149  }
  5150  
  5151  // SetSchemaRegistry mocks base method.
  5152  func (m *MockOptions) SetSchemaRegistry(registry namespace.SchemaRegistry) Options {
  5153  	m.ctrl.T.Helper()
  5154  	ret := m.ctrl.Call(m, "SetSchemaRegistry", registry)
  5155  	ret0, _ := ret[0].(Options)
  5156  	return ret0
  5157  }
  5158  
  5159  // SetSchemaRegistry indicates an expected call of SetSchemaRegistry.
  5160  func (mr *MockOptionsMockRecorder) SetSchemaRegistry(registry interface{}) *gomock.Call {
  5161  	mr.mock.ctrl.T.Helper()
  5162  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetSchemaRegistry", reflect.TypeOf((*MockOptions)(nil).SetSchemaRegistry), registry)
  5163  }
  5164  
  5165  // SetSegmentReaderPool mocks base method.
  5166  func (m *MockOptions) SetSegmentReaderPool(value xio.SegmentReaderPool) Options {
  5167  	m.ctrl.T.Helper()
  5168  	ret := m.ctrl.Call(m, "SetSegmentReaderPool", value)
  5169  	ret0, _ := ret[0].(Options)
  5170  	return ret0
  5171  }
  5172  
  5173  // SetSegmentReaderPool indicates an expected call of SetSegmentReaderPool.
  5174  func (mr *MockOptionsMockRecorder) SetSegmentReaderPool(value interface{}) *gomock.Call {
  5175  	mr.mock.ctrl.T.Helper()
  5176  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetSegmentReaderPool", reflect.TypeOf((*MockOptions)(nil).SetSegmentReaderPool), value)
  5177  }
  5178  
  5179  // SetSeriesCachePolicy mocks base method.
  5180  func (m *MockOptions) SetSeriesCachePolicy(value series.CachePolicy) Options {
  5181  	m.ctrl.T.Helper()
  5182  	ret := m.ctrl.Call(m, "SetSeriesCachePolicy", value)
  5183  	ret0, _ := ret[0].(Options)
  5184  	return ret0
  5185  }
  5186  
  5187  // SetSeriesCachePolicy indicates an expected call of SetSeriesCachePolicy.
  5188  func (mr *MockOptionsMockRecorder) SetSeriesCachePolicy(value interface{}) *gomock.Call {
  5189  	mr.mock.ctrl.T.Helper()
  5190  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetSeriesCachePolicy", reflect.TypeOf((*MockOptions)(nil).SetSeriesCachePolicy), value)
  5191  }
  5192  
  5193  // SetSeriesOptions mocks base method.
  5194  func (m *MockOptions) SetSeriesOptions(value series.Options) Options {
  5195  	m.ctrl.T.Helper()
  5196  	ret := m.ctrl.Call(m, "SetSeriesOptions", value)
  5197  	ret0, _ := ret[0].(Options)
  5198  	return ret0
  5199  }
  5200  
  5201  // SetSeriesOptions indicates an expected call of SetSeriesOptions.
  5202  func (mr *MockOptionsMockRecorder) SetSeriesOptions(value interface{}) *gomock.Call {
  5203  	mr.mock.ctrl.T.Helper()
  5204  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetSeriesOptions", reflect.TypeOf((*MockOptions)(nil).SetSeriesOptions), value)
  5205  }
  5206  
  5207  // SetSourceLoggerBuilder mocks base method.
  5208  func (m *MockOptions) SetSourceLoggerBuilder(value limits.SourceLoggerBuilder) Options {
  5209  	m.ctrl.T.Helper()
  5210  	ret := m.ctrl.Call(m, "SetSourceLoggerBuilder", value)
  5211  	ret0, _ := ret[0].(Options)
  5212  	return ret0
  5213  }
  5214  
  5215  // SetSourceLoggerBuilder indicates an expected call of SetSourceLoggerBuilder.
  5216  func (mr *MockOptionsMockRecorder) SetSourceLoggerBuilder(value interface{}) *gomock.Call {
  5217  	mr.mock.ctrl.T.Helper()
  5218  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetSourceLoggerBuilder", reflect.TypeOf((*MockOptions)(nil).SetSourceLoggerBuilder), value)
  5219  }
  5220  
  5221  // SetTileAggregator mocks base method.
  5222  func (m *MockOptions) SetTileAggregator(aggregator TileAggregator) Options {
  5223  	m.ctrl.T.Helper()
  5224  	ret := m.ctrl.Call(m, "SetTileAggregator", aggregator)
  5225  	ret0, _ := ret[0].(Options)
  5226  	return ret0
  5227  }
  5228  
  5229  // SetTileAggregator indicates an expected call of SetTileAggregator.
  5230  func (mr *MockOptionsMockRecorder) SetTileAggregator(aggregator interface{}) *gomock.Call {
  5231  	mr.mock.ctrl.T.Helper()
  5232  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetTileAggregator", reflect.TypeOf((*MockOptions)(nil).SetTileAggregator), aggregator)
  5233  }
  5234  
  5235  // SetTruncateType mocks base method.
  5236  func (m *MockOptions) SetTruncateType(value series.TruncateType) Options {
  5237  	m.ctrl.T.Helper()
  5238  	ret := m.ctrl.Call(m, "SetTruncateType", value)
  5239  	ret0, _ := ret[0].(Options)
  5240  	return ret0
  5241  }
  5242  
  5243  // SetTruncateType indicates an expected call of SetTruncateType.
  5244  func (mr *MockOptionsMockRecorder) SetTruncateType(value interface{}) *gomock.Call {
  5245  	mr.mock.ctrl.T.Helper()
  5246  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetTruncateType", reflect.TypeOf((*MockOptions)(nil).SetTruncateType), value)
  5247  }
  5248  
  5249  // SetWriteBatchPool mocks base method.
  5250  func (m *MockOptions) SetWriteBatchPool(value *writes.WriteBatchPool) Options {
  5251  	m.ctrl.T.Helper()
  5252  	ret := m.ctrl.Call(m, "SetWriteBatchPool", value)
  5253  	ret0, _ := ret[0].(Options)
  5254  	return ret0
  5255  }
  5256  
  5257  // SetWriteBatchPool indicates an expected call of SetWriteBatchPool.
  5258  func (mr *MockOptionsMockRecorder) SetWriteBatchPool(value interface{}) *gomock.Call {
  5259  	mr.mock.ctrl.T.Helper()
  5260  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetWriteBatchPool", reflect.TypeOf((*MockOptions)(nil).SetWriteBatchPool), value)
  5261  }
  5262  
  5263  // SetWriteTransformOptions mocks base method.
  5264  func (m *MockOptions) SetWriteTransformOptions(value series.WriteTransformOptions) Options {
  5265  	m.ctrl.T.Helper()
  5266  	ret := m.ctrl.Call(m, "SetWriteTransformOptions", value)
  5267  	ret0, _ := ret[0].(Options)
  5268  	return ret0
  5269  }
  5270  
  5271  // SetWriteTransformOptions indicates an expected call of SetWriteTransformOptions.
  5272  func (mr *MockOptionsMockRecorder) SetWriteTransformOptions(value interface{}) *gomock.Call {
  5273  	mr.mock.ctrl.T.Helper()
  5274  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetWriteTransformOptions", reflect.TypeOf((*MockOptions)(nil).SetWriteTransformOptions), value)
  5275  }
  5276  
  5277  // SourceLoggerBuilder mocks base method.
  5278  func (m *MockOptions) SourceLoggerBuilder() limits.SourceLoggerBuilder {
  5279  	m.ctrl.T.Helper()
  5280  	ret := m.ctrl.Call(m, "SourceLoggerBuilder")
  5281  	ret0, _ := ret[0].(limits.SourceLoggerBuilder)
  5282  	return ret0
  5283  }
  5284  
  5285  // SourceLoggerBuilder indicates an expected call of SourceLoggerBuilder.
  5286  func (mr *MockOptionsMockRecorder) SourceLoggerBuilder() *gomock.Call {
  5287  	mr.mock.ctrl.T.Helper()
  5288  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SourceLoggerBuilder", reflect.TypeOf((*MockOptions)(nil).SourceLoggerBuilder))
  5289  }
  5290  
  5291  // TileAggregator mocks base method.
  5292  func (m *MockOptions) TileAggregator() TileAggregator {
  5293  	m.ctrl.T.Helper()
  5294  	ret := m.ctrl.Call(m, "TileAggregator")
  5295  	ret0, _ := ret[0].(TileAggregator)
  5296  	return ret0
  5297  }
  5298  
  5299  // TileAggregator indicates an expected call of TileAggregator.
  5300  func (mr *MockOptionsMockRecorder) TileAggregator() *gomock.Call {
  5301  	mr.mock.ctrl.T.Helper()
  5302  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TileAggregator", reflect.TypeOf((*MockOptions)(nil).TileAggregator))
  5303  }
  5304  
  5305  // TruncateType mocks base method.
  5306  func (m *MockOptions) TruncateType() series.TruncateType {
  5307  	m.ctrl.T.Helper()
  5308  	ret := m.ctrl.Call(m, "TruncateType")
  5309  	ret0, _ := ret[0].(series.TruncateType)
  5310  	return ret0
  5311  }
  5312  
  5313  // TruncateType indicates an expected call of TruncateType.
  5314  func (mr *MockOptionsMockRecorder) TruncateType() *gomock.Call {
  5315  	mr.mock.ctrl.T.Helper()
  5316  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TruncateType", reflect.TypeOf((*MockOptions)(nil).TruncateType))
  5317  }
  5318  
  5319  // Validate mocks base method.
  5320  func (m *MockOptions) Validate() error {
  5321  	m.ctrl.T.Helper()
  5322  	ret := m.ctrl.Call(m, "Validate")
  5323  	ret0, _ := ret[0].(error)
  5324  	return ret0
  5325  }
  5326  
  5327  // Validate indicates an expected call of Validate.
  5328  func (mr *MockOptionsMockRecorder) Validate() *gomock.Call {
  5329  	mr.mock.ctrl.T.Helper()
  5330  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Validate", reflect.TypeOf((*MockOptions)(nil).Validate))
  5331  }
  5332  
  5333  // WriteBatchPool mocks base method.
  5334  func (m *MockOptions) WriteBatchPool() *writes.WriteBatchPool {
  5335  	m.ctrl.T.Helper()
  5336  	ret := m.ctrl.Call(m, "WriteBatchPool")
  5337  	ret0, _ := ret[0].(*writes.WriteBatchPool)
  5338  	return ret0
  5339  }
  5340  
  5341  // WriteBatchPool indicates an expected call of WriteBatchPool.
  5342  func (mr *MockOptionsMockRecorder) WriteBatchPool() *gomock.Call {
  5343  	mr.mock.ctrl.T.Helper()
  5344  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteBatchPool", reflect.TypeOf((*MockOptions)(nil).WriteBatchPool))
  5345  }
  5346  
  5347  // WriteTransformOptions mocks base method.
  5348  func (m *MockOptions) WriteTransformOptions() series.WriteTransformOptions {
  5349  	m.ctrl.T.Helper()
  5350  	ret := m.ctrl.Call(m, "WriteTransformOptions")
  5351  	ret0, _ := ret[0].(series.WriteTransformOptions)
  5352  	return ret0
  5353  }
  5354  
  5355  // WriteTransformOptions indicates an expected call of WriteTransformOptions.
  5356  func (mr *MockOptionsMockRecorder) WriteTransformOptions() *gomock.Call {
  5357  	mr.mock.ctrl.T.Helper()
  5358  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WriteTransformOptions", reflect.TypeOf((*MockOptions)(nil).WriteTransformOptions))
  5359  }
  5360  
  5361  // MockMemoryTracker is a mock of MemoryTracker interface.
  5362  type MockMemoryTracker struct {
  5363  	ctrl     *gomock.Controller
  5364  	recorder *MockMemoryTrackerMockRecorder
  5365  }
  5366  
  5367  // MockMemoryTrackerMockRecorder is the mock recorder for MockMemoryTracker.
  5368  type MockMemoryTrackerMockRecorder struct {
  5369  	mock *MockMemoryTracker
  5370  }
  5371  
  5372  // NewMockMemoryTracker creates a new mock instance.
  5373  func NewMockMemoryTracker(ctrl *gomock.Controller) *MockMemoryTracker {
  5374  	mock := &MockMemoryTracker{ctrl: ctrl}
  5375  	mock.recorder = &MockMemoryTrackerMockRecorder{mock}
  5376  	return mock
  5377  }
  5378  
  5379  // EXPECT returns an object that allows the caller to indicate expected use.
  5380  func (m *MockMemoryTracker) EXPECT() *MockMemoryTrackerMockRecorder {
  5381  	return m.recorder
  5382  }
  5383  
  5384  // DecPendingLoadedBytes mocks base method.
  5385  func (m *MockMemoryTracker) DecPendingLoadedBytes() {
  5386  	m.ctrl.T.Helper()
  5387  	m.ctrl.Call(m, "DecPendingLoadedBytes")
  5388  }
  5389  
  5390  // DecPendingLoadedBytes indicates an expected call of DecPendingLoadedBytes.
  5391  func (mr *MockMemoryTrackerMockRecorder) DecPendingLoadedBytes() *gomock.Call {
  5392  	mr.mock.ctrl.T.Helper()
  5393  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DecPendingLoadedBytes", reflect.TypeOf((*MockMemoryTracker)(nil).DecPendingLoadedBytes))
  5394  }
  5395  
  5396  // IncNumLoadedBytes mocks base method.
  5397  func (m *MockMemoryTracker) IncNumLoadedBytes(x int64) bool {
  5398  	m.ctrl.T.Helper()
  5399  	ret := m.ctrl.Call(m, "IncNumLoadedBytes", x)
  5400  	ret0, _ := ret[0].(bool)
  5401  	return ret0
  5402  }
  5403  
  5404  // IncNumLoadedBytes indicates an expected call of IncNumLoadedBytes.
  5405  func (mr *MockMemoryTrackerMockRecorder) IncNumLoadedBytes(x interface{}) *gomock.Call {
  5406  	mr.mock.ctrl.T.Helper()
  5407  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IncNumLoadedBytes", reflect.TypeOf((*MockMemoryTracker)(nil).IncNumLoadedBytes), x)
  5408  }
  5409  
  5410  // MarkLoadedAsPending mocks base method.
  5411  func (m *MockMemoryTracker) MarkLoadedAsPending() {
  5412  	m.ctrl.T.Helper()
  5413  	m.ctrl.Call(m, "MarkLoadedAsPending")
  5414  }
  5415  
  5416  // MarkLoadedAsPending indicates an expected call of MarkLoadedAsPending.
  5417  func (mr *MockMemoryTrackerMockRecorder) MarkLoadedAsPending() *gomock.Call {
  5418  	mr.mock.ctrl.T.Helper()
  5419  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MarkLoadedAsPending", reflect.TypeOf((*MockMemoryTracker)(nil).MarkLoadedAsPending))
  5420  }
  5421  
  5422  // NumLoadedBytes mocks base method.
  5423  func (m *MockMemoryTracker) NumLoadedBytes() int64 {
  5424  	m.ctrl.T.Helper()
  5425  	ret := m.ctrl.Call(m, "NumLoadedBytes")
  5426  	ret0, _ := ret[0].(int64)
  5427  	return ret0
  5428  }
  5429  
  5430  // NumLoadedBytes indicates an expected call of NumLoadedBytes.
  5431  func (mr *MockMemoryTrackerMockRecorder) NumLoadedBytes() *gomock.Call {
  5432  	mr.mock.ctrl.T.Helper()
  5433  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NumLoadedBytes", reflect.TypeOf((*MockMemoryTracker)(nil).NumLoadedBytes))
  5434  }
  5435  
  5436  // WaitForDec mocks base method.
  5437  func (m *MockMemoryTracker) WaitForDec() {
  5438  	m.ctrl.T.Helper()
  5439  	m.ctrl.Call(m, "WaitForDec")
  5440  }
  5441  
  5442  // WaitForDec indicates an expected call of WaitForDec.
  5443  func (mr *MockMemoryTrackerMockRecorder) WaitForDec() *gomock.Call {
  5444  	mr.mock.ctrl.T.Helper()
  5445  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitForDec", reflect.TypeOf((*MockMemoryTracker)(nil).WaitForDec))
  5446  }
  5447  
  5448  // MockTileAggregator is a mock of TileAggregator interface.
  5449  type MockTileAggregator struct {
  5450  	ctrl     *gomock.Controller
  5451  	recorder *MockTileAggregatorMockRecorder
  5452  }
  5453  
  5454  // MockTileAggregatorMockRecorder is the mock recorder for MockTileAggregator.
  5455  type MockTileAggregatorMockRecorder struct {
  5456  	mock *MockTileAggregator
  5457  }
  5458  
  5459  // NewMockTileAggregator creates a new mock instance.
  5460  func NewMockTileAggregator(ctrl *gomock.Controller) *MockTileAggregator {
  5461  	mock := &MockTileAggregator{ctrl: ctrl}
  5462  	mock.recorder = &MockTileAggregatorMockRecorder{mock}
  5463  	return mock
  5464  }
  5465  
  5466  // EXPECT returns an object that allows the caller to indicate expected use.
  5467  func (m *MockTileAggregator) EXPECT() *MockTileAggregatorMockRecorder {
  5468  	return m.recorder
  5469  }
  5470  
  5471  // AggregateTiles mocks base method.
  5472  func (m *MockTileAggregator) AggregateTiles(ctx context.Context, sourceNs, targetNs Namespace, shardID uint32, onFlushSeries persist.OnFlushSeries, opts AggregateTilesOptions) (int64, int, error) {
  5473  	m.ctrl.T.Helper()
  5474  	ret := m.ctrl.Call(m, "AggregateTiles", ctx, sourceNs, targetNs, shardID, onFlushSeries, opts)
  5475  	ret0, _ := ret[0].(int64)
  5476  	ret1, _ := ret[1].(int)
  5477  	ret2, _ := ret[2].(error)
  5478  	return ret0, ret1, ret2
  5479  }
  5480  
  5481  // AggregateTiles indicates an expected call of AggregateTiles.
  5482  func (mr *MockTileAggregatorMockRecorder) AggregateTiles(ctx, sourceNs, targetNs, shardID, onFlushSeries, opts interface{}) *gomock.Call {
  5483  	mr.mock.ctrl.T.Helper()
  5484  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AggregateTiles", reflect.TypeOf((*MockTileAggregator)(nil).AggregateTiles), ctx, sourceNs, targetNs, shardID, onFlushSeries, opts)
  5485  }
  5486  
  5487  // MockNamespaceHooks is a mock of NamespaceHooks interface.
  5488  type MockNamespaceHooks struct {
  5489  	ctrl     *gomock.Controller
  5490  	recorder *MockNamespaceHooksMockRecorder
  5491  }
  5492  
  5493  // MockNamespaceHooksMockRecorder is the mock recorder for MockNamespaceHooks.
  5494  type MockNamespaceHooksMockRecorder struct {
  5495  	mock *MockNamespaceHooks
  5496  }
  5497  
  5498  // NewMockNamespaceHooks creates a new mock instance.
  5499  func NewMockNamespaceHooks(ctrl *gomock.Controller) *MockNamespaceHooks {
  5500  	mock := &MockNamespaceHooks{ctrl: ctrl}
  5501  	mock.recorder = &MockNamespaceHooksMockRecorder{mock}
  5502  	return mock
  5503  }
  5504  
  5505  // EXPECT returns an object that allows the caller to indicate expected use.
  5506  func (m *MockNamespaceHooks) EXPECT() *MockNamespaceHooksMockRecorder {
  5507  	return m.recorder
  5508  }
  5509  
  5510  // OnCreatedNamespace mocks base method.
  5511  func (m *MockNamespaceHooks) OnCreatedNamespace(arg0 Namespace, arg1 GetNamespaceFn) error {
  5512  	m.ctrl.T.Helper()
  5513  	ret := m.ctrl.Call(m, "OnCreatedNamespace", arg0, arg1)
  5514  	ret0, _ := ret[0].(error)
  5515  	return ret0
  5516  }
  5517  
  5518  // OnCreatedNamespace indicates an expected call of OnCreatedNamespace.
  5519  func (mr *MockNamespaceHooksMockRecorder) OnCreatedNamespace(arg0, arg1 interface{}) *gomock.Call {
  5520  	mr.mock.ctrl.T.Helper()
  5521  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OnCreatedNamespace", reflect.TypeOf((*MockNamespaceHooks)(nil).OnCreatedNamespace), arg0, arg1)
  5522  }