github.com/m3db/m3@v1.5.1-0.20231129193456-75a402aa583b/src/m3ninx/index/segment/segment_mock.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: ../../index/segment/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 segment is a generated GoMock package.
    25  package segment
    26  
    27  import (
    28  	"reflect"
    29  
    30  	"github.com/m3db/m3/src/m3ninx/doc"
    31  	"github.com/m3db/m3/src/m3ninx/index"
    32  	"github.com/m3db/m3/src/m3ninx/postings"
    33  
    34  	"github.com/golang/mock/gomock"
    35  )
    36  
    37  // MockSegment is a mock of Segment interface.
    38  type MockSegment struct {
    39  	ctrl     *gomock.Controller
    40  	recorder *MockSegmentMockRecorder
    41  }
    42  
    43  // MockSegmentMockRecorder is the mock recorder for MockSegment.
    44  type MockSegmentMockRecorder struct {
    45  	mock *MockSegment
    46  }
    47  
    48  // NewMockSegment creates a new mock instance.
    49  func NewMockSegment(ctrl *gomock.Controller) *MockSegment {
    50  	mock := &MockSegment{ctrl: ctrl}
    51  	mock.recorder = &MockSegmentMockRecorder{mock}
    52  	return mock
    53  }
    54  
    55  // EXPECT returns an object that allows the caller to indicate expected use.
    56  func (m *MockSegment) EXPECT() *MockSegmentMockRecorder {
    57  	return m.recorder
    58  }
    59  
    60  // Close mocks base method.
    61  func (m *MockSegment) Close() error {
    62  	m.ctrl.T.Helper()
    63  	ret := m.ctrl.Call(m, "Close")
    64  	ret0, _ := ret[0].(error)
    65  	return ret0
    66  }
    67  
    68  // Close indicates an expected call of Close.
    69  func (mr *MockSegmentMockRecorder) Close() *gomock.Call {
    70  	mr.mock.ctrl.T.Helper()
    71  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockSegment)(nil).Close))
    72  }
    73  
    74  // ContainsField mocks base method.
    75  func (m *MockSegment) ContainsField(field []byte) (bool, error) {
    76  	m.ctrl.T.Helper()
    77  	ret := m.ctrl.Call(m, "ContainsField", field)
    78  	ret0, _ := ret[0].(bool)
    79  	ret1, _ := ret[1].(error)
    80  	return ret0, ret1
    81  }
    82  
    83  // ContainsField indicates an expected call of ContainsField.
    84  func (mr *MockSegmentMockRecorder) ContainsField(field interface{}) *gomock.Call {
    85  	mr.mock.ctrl.T.Helper()
    86  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainsField", reflect.TypeOf((*MockSegment)(nil).ContainsField), field)
    87  }
    88  
    89  // ContainsID mocks base method.
    90  func (m *MockSegment) ContainsID(docID []byte) (bool, error) {
    91  	m.ctrl.T.Helper()
    92  	ret := m.ctrl.Call(m, "ContainsID", docID)
    93  	ret0, _ := ret[0].(bool)
    94  	ret1, _ := ret[1].(error)
    95  	return ret0, ret1
    96  }
    97  
    98  // ContainsID indicates an expected call of ContainsID.
    99  func (mr *MockSegmentMockRecorder) ContainsID(docID interface{}) *gomock.Call {
   100  	mr.mock.ctrl.T.Helper()
   101  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainsID", reflect.TypeOf((*MockSegment)(nil).ContainsID), docID)
   102  }
   103  
   104  // FieldsIterable mocks base method.
   105  func (m *MockSegment) FieldsIterable() FieldsIterable {
   106  	m.ctrl.T.Helper()
   107  	ret := m.ctrl.Call(m, "FieldsIterable")
   108  	ret0, _ := ret[0].(FieldsIterable)
   109  	return ret0
   110  }
   111  
   112  // FieldsIterable indicates an expected call of FieldsIterable.
   113  func (mr *MockSegmentMockRecorder) FieldsIterable() *gomock.Call {
   114  	mr.mock.ctrl.T.Helper()
   115  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FieldsIterable", reflect.TypeOf((*MockSegment)(nil).FieldsIterable))
   116  }
   117  
   118  // Reader mocks base method.
   119  func (m *MockSegment) Reader() (Reader, error) {
   120  	m.ctrl.T.Helper()
   121  	ret := m.ctrl.Call(m, "Reader")
   122  	ret0, _ := ret[0].(Reader)
   123  	ret1, _ := ret[1].(error)
   124  	return ret0, ret1
   125  }
   126  
   127  // Reader indicates an expected call of Reader.
   128  func (mr *MockSegmentMockRecorder) Reader() *gomock.Call {
   129  	mr.mock.ctrl.T.Helper()
   130  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Reader", reflect.TypeOf((*MockSegment)(nil).Reader))
   131  }
   132  
   133  // Size mocks base method.
   134  func (m *MockSegment) Size() int64 {
   135  	m.ctrl.T.Helper()
   136  	ret := m.ctrl.Call(m, "Size")
   137  	ret0, _ := ret[0].(int64)
   138  	return ret0
   139  }
   140  
   141  // Size indicates an expected call of Size.
   142  func (mr *MockSegmentMockRecorder) Size() *gomock.Call {
   143  	mr.mock.ctrl.T.Helper()
   144  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Size", reflect.TypeOf((*MockSegment)(nil).Size))
   145  }
   146  
   147  // TermsIterable mocks base method.
   148  func (m *MockSegment) TermsIterable() TermsIterable {
   149  	m.ctrl.T.Helper()
   150  	ret := m.ctrl.Call(m, "TermsIterable")
   151  	ret0, _ := ret[0].(TermsIterable)
   152  	return ret0
   153  }
   154  
   155  // TermsIterable indicates an expected call of TermsIterable.
   156  func (mr *MockSegmentMockRecorder) TermsIterable() *gomock.Call {
   157  	mr.mock.ctrl.T.Helper()
   158  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TermsIterable", reflect.TypeOf((*MockSegment)(nil).TermsIterable))
   159  }
   160  
   161  // MockReader is a mock of Reader interface.
   162  type MockReader struct {
   163  	ctrl     *gomock.Controller
   164  	recorder *MockReaderMockRecorder
   165  }
   166  
   167  // MockReaderMockRecorder is the mock recorder for MockReader.
   168  type MockReaderMockRecorder struct {
   169  	mock *MockReader
   170  }
   171  
   172  // NewMockReader creates a new mock instance.
   173  func NewMockReader(ctrl *gomock.Controller) *MockReader {
   174  	mock := &MockReader{ctrl: ctrl}
   175  	mock.recorder = &MockReaderMockRecorder{mock}
   176  	return mock
   177  }
   178  
   179  // EXPECT returns an object that allows the caller to indicate expected use.
   180  func (m *MockReader) EXPECT() *MockReaderMockRecorder {
   181  	return m.recorder
   182  }
   183  
   184  // AllDocs mocks base method.
   185  func (m *MockReader) AllDocs() (index.IDDocIterator, error) {
   186  	m.ctrl.T.Helper()
   187  	ret := m.ctrl.Call(m, "AllDocs")
   188  	ret0, _ := ret[0].(index.IDDocIterator)
   189  	ret1, _ := ret[1].(error)
   190  	return ret0, ret1
   191  }
   192  
   193  // AllDocs indicates an expected call of AllDocs.
   194  func (mr *MockReaderMockRecorder) AllDocs() *gomock.Call {
   195  	mr.mock.ctrl.T.Helper()
   196  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AllDocs", reflect.TypeOf((*MockReader)(nil).AllDocs))
   197  }
   198  
   199  // Close mocks base method.
   200  func (m *MockReader) Close() error {
   201  	m.ctrl.T.Helper()
   202  	ret := m.ctrl.Call(m, "Close")
   203  	ret0, _ := ret[0].(error)
   204  	return ret0
   205  }
   206  
   207  // Close indicates an expected call of Close.
   208  func (mr *MockReaderMockRecorder) Close() *gomock.Call {
   209  	mr.mock.ctrl.T.Helper()
   210  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockReader)(nil).Close))
   211  }
   212  
   213  // ContainsField mocks base method.
   214  func (m *MockReader) ContainsField(field []byte) (bool, error) {
   215  	m.ctrl.T.Helper()
   216  	ret := m.ctrl.Call(m, "ContainsField", field)
   217  	ret0, _ := ret[0].(bool)
   218  	ret1, _ := ret[1].(error)
   219  	return ret0, ret1
   220  }
   221  
   222  // ContainsField indicates an expected call of ContainsField.
   223  func (mr *MockReaderMockRecorder) ContainsField(field interface{}) *gomock.Call {
   224  	mr.mock.ctrl.T.Helper()
   225  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainsField", reflect.TypeOf((*MockReader)(nil).ContainsField), field)
   226  }
   227  
   228  // Doc mocks base method.
   229  func (m *MockReader) Doc(id postings.ID) (doc.Document, error) {
   230  	m.ctrl.T.Helper()
   231  	ret := m.ctrl.Call(m, "Doc", id)
   232  	ret0, _ := ret[0].(doc.Document)
   233  	ret1, _ := ret[1].(error)
   234  	return ret0, ret1
   235  }
   236  
   237  // Doc indicates an expected call of Doc.
   238  func (mr *MockReaderMockRecorder) Doc(id interface{}) *gomock.Call {
   239  	mr.mock.ctrl.T.Helper()
   240  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Doc", reflect.TypeOf((*MockReader)(nil).Doc), id)
   241  }
   242  
   243  // Docs mocks base method.
   244  func (m *MockReader) Docs(pl postings.List) (doc.Iterator, error) {
   245  	m.ctrl.T.Helper()
   246  	ret := m.ctrl.Call(m, "Docs", pl)
   247  	ret0, _ := ret[0].(doc.Iterator)
   248  	ret1, _ := ret[1].(error)
   249  	return ret0, ret1
   250  }
   251  
   252  // Docs indicates an expected call of Docs.
   253  func (mr *MockReaderMockRecorder) Docs(pl interface{}) *gomock.Call {
   254  	mr.mock.ctrl.T.Helper()
   255  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Docs", reflect.TypeOf((*MockReader)(nil).Docs), pl)
   256  }
   257  
   258  // Fields mocks base method.
   259  func (m *MockReader) Fields() (FieldsIterator, error) {
   260  	m.ctrl.T.Helper()
   261  	ret := m.ctrl.Call(m, "Fields")
   262  	ret0, _ := ret[0].(FieldsIterator)
   263  	ret1, _ := ret[1].(error)
   264  	return ret0, ret1
   265  }
   266  
   267  // Fields indicates an expected call of Fields.
   268  func (mr *MockReaderMockRecorder) Fields() *gomock.Call {
   269  	mr.mock.ctrl.T.Helper()
   270  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Fields", reflect.TypeOf((*MockReader)(nil).Fields))
   271  }
   272  
   273  // FieldsPostingsList mocks base method.
   274  func (m *MockReader) FieldsPostingsList() (FieldsPostingsListIterator, error) {
   275  	m.ctrl.T.Helper()
   276  	ret := m.ctrl.Call(m, "FieldsPostingsList")
   277  	ret0, _ := ret[0].(FieldsPostingsListIterator)
   278  	ret1, _ := ret[1].(error)
   279  	return ret0, ret1
   280  }
   281  
   282  // FieldsPostingsList indicates an expected call of FieldsPostingsList.
   283  func (mr *MockReaderMockRecorder) FieldsPostingsList() *gomock.Call {
   284  	mr.mock.ctrl.T.Helper()
   285  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FieldsPostingsList", reflect.TypeOf((*MockReader)(nil).FieldsPostingsList))
   286  }
   287  
   288  // MatchAll mocks base method.
   289  func (m *MockReader) MatchAll() (postings.List, error) {
   290  	m.ctrl.T.Helper()
   291  	ret := m.ctrl.Call(m, "MatchAll")
   292  	ret0, _ := ret[0].(postings.List)
   293  	ret1, _ := ret[1].(error)
   294  	return ret0, ret1
   295  }
   296  
   297  // MatchAll indicates an expected call of MatchAll.
   298  func (mr *MockReaderMockRecorder) MatchAll() *gomock.Call {
   299  	mr.mock.ctrl.T.Helper()
   300  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MatchAll", reflect.TypeOf((*MockReader)(nil).MatchAll))
   301  }
   302  
   303  // MatchField mocks base method.
   304  func (m *MockReader) MatchField(field []byte) (postings.List, error) {
   305  	m.ctrl.T.Helper()
   306  	ret := m.ctrl.Call(m, "MatchField", field)
   307  	ret0, _ := ret[0].(postings.List)
   308  	ret1, _ := ret[1].(error)
   309  	return ret0, ret1
   310  }
   311  
   312  // MatchField indicates an expected call of MatchField.
   313  func (mr *MockReaderMockRecorder) MatchField(field interface{}) *gomock.Call {
   314  	mr.mock.ctrl.T.Helper()
   315  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MatchField", reflect.TypeOf((*MockReader)(nil).MatchField), field)
   316  }
   317  
   318  // MatchRegexp mocks base method.
   319  func (m *MockReader) MatchRegexp(field []byte, c index.CompiledRegex) (postings.List, error) {
   320  	m.ctrl.T.Helper()
   321  	ret := m.ctrl.Call(m, "MatchRegexp", field, c)
   322  	ret0, _ := ret[0].(postings.List)
   323  	ret1, _ := ret[1].(error)
   324  	return ret0, ret1
   325  }
   326  
   327  // MatchRegexp indicates an expected call of MatchRegexp.
   328  func (mr *MockReaderMockRecorder) MatchRegexp(field, c interface{}) *gomock.Call {
   329  	mr.mock.ctrl.T.Helper()
   330  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MatchRegexp", reflect.TypeOf((*MockReader)(nil).MatchRegexp), field, c)
   331  }
   332  
   333  // MatchTerm mocks base method.
   334  func (m *MockReader) MatchTerm(field, term []byte) (postings.List, error) {
   335  	m.ctrl.T.Helper()
   336  	ret := m.ctrl.Call(m, "MatchTerm", field, term)
   337  	ret0, _ := ret[0].(postings.List)
   338  	ret1, _ := ret[1].(error)
   339  	return ret0, ret1
   340  }
   341  
   342  // MatchTerm indicates an expected call of MatchTerm.
   343  func (mr *MockReaderMockRecorder) MatchTerm(field, term interface{}) *gomock.Call {
   344  	mr.mock.ctrl.T.Helper()
   345  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MatchTerm", reflect.TypeOf((*MockReader)(nil).MatchTerm), field, term)
   346  }
   347  
   348  // Metadata mocks base method.
   349  func (m *MockReader) Metadata(id postings.ID) (doc.Metadata, error) {
   350  	m.ctrl.T.Helper()
   351  	ret := m.ctrl.Call(m, "Metadata", id)
   352  	ret0, _ := ret[0].(doc.Metadata)
   353  	ret1, _ := ret[1].(error)
   354  	return ret0, ret1
   355  }
   356  
   357  // Metadata indicates an expected call of Metadata.
   358  func (mr *MockReaderMockRecorder) Metadata(id interface{}) *gomock.Call {
   359  	mr.mock.ctrl.T.Helper()
   360  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Metadata", reflect.TypeOf((*MockReader)(nil).Metadata), id)
   361  }
   362  
   363  // MetadataIterator mocks base method.
   364  func (m *MockReader) MetadataIterator(pl postings.List) (doc.MetadataIterator, error) {
   365  	m.ctrl.T.Helper()
   366  	ret := m.ctrl.Call(m, "MetadataIterator", pl)
   367  	ret0, _ := ret[0].(doc.MetadataIterator)
   368  	ret1, _ := ret[1].(error)
   369  	return ret0, ret1
   370  }
   371  
   372  // MetadataIterator indicates an expected call of MetadataIterator.
   373  func (mr *MockReaderMockRecorder) MetadataIterator(pl interface{}) *gomock.Call {
   374  	mr.mock.ctrl.T.Helper()
   375  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MetadataIterator", reflect.TypeOf((*MockReader)(nil).MetadataIterator), pl)
   376  }
   377  
   378  // Terms mocks base method.
   379  func (m *MockReader) Terms(field []byte) (TermsIterator, error) {
   380  	m.ctrl.T.Helper()
   381  	ret := m.ctrl.Call(m, "Terms", field)
   382  	ret0, _ := ret[0].(TermsIterator)
   383  	ret1, _ := ret[1].(error)
   384  	return ret0, ret1
   385  }
   386  
   387  // Terms indicates an expected call of Terms.
   388  func (mr *MockReaderMockRecorder) Terms(field interface{}) *gomock.Call {
   389  	mr.mock.ctrl.T.Helper()
   390  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Terms", reflect.TypeOf((*MockReader)(nil).Terms), field)
   391  }
   392  
   393  // MockFieldsIterable is a mock of FieldsIterable interface.
   394  type MockFieldsIterable struct {
   395  	ctrl     *gomock.Controller
   396  	recorder *MockFieldsIterableMockRecorder
   397  }
   398  
   399  // MockFieldsIterableMockRecorder is the mock recorder for MockFieldsIterable.
   400  type MockFieldsIterableMockRecorder struct {
   401  	mock *MockFieldsIterable
   402  }
   403  
   404  // NewMockFieldsIterable creates a new mock instance.
   405  func NewMockFieldsIterable(ctrl *gomock.Controller) *MockFieldsIterable {
   406  	mock := &MockFieldsIterable{ctrl: ctrl}
   407  	mock.recorder = &MockFieldsIterableMockRecorder{mock}
   408  	return mock
   409  }
   410  
   411  // EXPECT returns an object that allows the caller to indicate expected use.
   412  func (m *MockFieldsIterable) EXPECT() *MockFieldsIterableMockRecorder {
   413  	return m.recorder
   414  }
   415  
   416  // Fields mocks base method.
   417  func (m *MockFieldsIterable) Fields() (FieldsIterator, error) {
   418  	m.ctrl.T.Helper()
   419  	ret := m.ctrl.Call(m, "Fields")
   420  	ret0, _ := ret[0].(FieldsIterator)
   421  	ret1, _ := ret[1].(error)
   422  	return ret0, ret1
   423  }
   424  
   425  // Fields indicates an expected call of Fields.
   426  func (mr *MockFieldsIterableMockRecorder) Fields() *gomock.Call {
   427  	mr.mock.ctrl.T.Helper()
   428  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Fields", reflect.TypeOf((*MockFieldsIterable)(nil).Fields))
   429  }
   430  
   431  // MockFieldsPostingsListIterable is a mock of FieldsPostingsListIterable interface.
   432  type MockFieldsPostingsListIterable struct {
   433  	ctrl     *gomock.Controller
   434  	recorder *MockFieldsPostingsListIterableMockRecorder
   435  }
   436  
   437  // MockFieldsPostingsListIterableMockRecorder is the mock recorder for MockFieldsPostingsListIterable.
   438  type MockFieldsPostingsListIterableMockRecorder struct {
   439  	mock *MockFieldsPostingsListIterable
   440  }
   441  
   442  // NewMockFieldsPostingsListIterable creates a new mock instance.
   443  func NewMockFieldsPostingsListIterable(ctrl *gomock.Controller) *MockFieldsPostingsListIterable {
   444  	mock := &MockFieldsPostingsListIterable{ctrl: ctrl}
   445  	mock.recorder = &MockFieldsPostingsListIterableMockRecorder{mock}
   446  	return mock
   447  }
   448  
   449  // EXPECT returns an object that allows the caller to indicate expected use.
   450  func (m *MockFieldsPostingsListIterable) EXPECT() *MockFieldsPostingsListIterableMockRecorder {
   451  	return m.recorder
   452  }
   453  
   454  // FieldsPostingsList mocks base method.
   455  func (m *MockFieldsPostingsListIterable) FieldsPostingsList() (FieldsPostingsListIterator, error) {
   456  	m.ctrl.T.Helper()
   457  	ret := m.ctrl.Call(m, "FieldsPostingsList")
   458  	ret0, _ := ret[0].(FieldsPostingsListIterator)
   459  	ret1, _ := ret[1].(error)
   460  	return ret0, ret1
   461  }
   462  
   463  // FieldsPostingsList indicates an expected call of FieldsPostingsList.
   464  func (mr *MockFieldsPostingsListIterableMockRecorder) FieldsPostingsList() *gomock.Call {
   465  	mr.mock.ctrl.T.Helper()
   466  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FieldsPostingsList", reflect.TypeOf((*MockFieldsPostingsListIterable)(nil).FieldsPostingsList))
   467  }
   468  
   469  // MockTermsIterable is a mock of TermsIterable interface.
   470  type MockTermsIterable struct {
   471  	ctrl     *gomock.Controller
   472  	recorder *MockTermsIterableMockRecorder
   473  }
   474  
   475  // MockTermsIterableMockRecorder is the mock recorder for MockTermsIterable.
   476  type MockTermsIterableMockRecorder struct {
   477  	mock *MockTermsIterable
   478  }
   479  
   480  // NewMockTermsIterable creates a new mock instance.
   481  func NewMockTermsIterable(ctrl *gomock.Controller) *MockTermsIterable {
   482  	mock := &MockTermsIterable{ctrl: ctrl}
   483  	mock.recorder = &MockTermsIterableMockRecorder{mock}
   484  	return mock
   485  }
   486  
   487  // EXPECT returns an object that allows the caller to indicate expected use.
   488  func (m *MockTermsIterable) EXPECT() *MockTermsIterableMockRecorder {
   489  	return m.recorder
   490  }
   491  
   492  // Terms mocks base method.
   493  func (m *MockTermsIterable) Terms(field []byte) (TermsIterator, error) {
   494  	m.ctrl.T.Helper()
   495  	ret := m.ctrl.Call(m, "Terms", field)
   496  	ret0, _ := ret[0].(TermsIterator)
   497  	ret1, _ := ret[1].(error)
   498  	return ret0, ret1
   499  }
   500  
   501  // Terms indicates an expected call of Terms.
   502  func (mr *MockTermsIterableMockRecorder) Terms(field interface{}) *gomock.Call {
   503  	mr.mock.ctrl.T.Helper()
   504  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Terms", reflect.TypeOf((*MockTermsIterable)(nil).Terms), field)
   505  }
   506  
   507  // MockOrderedBytesIterator is a mock of OrderedBytesIterator interface.
   508  type MockOrderedBytesIterator struct {
   509  	ctrl     *gomock.Controller
   510  	recorder *MockOrderedBytesIteratorMockRecorder
   511  }
   512  
   513  // MockOrderedBytesIteratorMockRecorder is the mock recorder for MockOrderedBytesIterator.
   514  type MockOrderedBytesIteratorMockRecorder struct {
   515  	mock *MockOrderedBytesIterator
   516  }
   517  
   518  // NewMockOrderedBytesIterator creates a new mock instance.
   519  func NewMockOrderedBytesIterator(ctrl *gomock.Controller) *MockOrderedBytesIterator {
   520  	mock := &MockOrderedBytesIterator{ctrl: ctrl}
   521  	mock.recorder = &MockOrderedBytesIteratorMockRecorder{mock}
   522  	return mock
   523  }
   524  
   525  // EXPECT returns an object that allows the caller to indicate expected use.
   526  func (m *MockOrderedBytesIterator) EXPECT() *MockOrderedBytesIteratorMockRecorder {
   527  	return m.recorder
   528  }
   529  
   530  // Close mocks base method.
   531  func (m *MockOrderedBytesIterator) Close() error {
   532  	m.ctrl.T.Helper()
   533  	ret := m.ctrl.Call(m, "Close")
   534  	ret0, _ := ret[0].(error)
   535  	return ret0
   536  }
   537  
   538  // Close indicates an expected call of Close.
   539  func (mr *MockOrderedBytesIteratorMockRecorder) Close() *gomock.Call {
   540  	mr.mock.ctrl.T.Helper()
   541  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockOrderedBytesIterator)(nil).Close))
   542  }
   543  
   544  // Current mocks base method.
   545  func (m *MockOrderedBytesIterator) Current() []byte {
   546  	m.ctrl.T.Helper()
   547  	ret := m.ctrl.Call(m, "Current")
   548  	ret0, _ := ret[0].([]byte)
   549  	return ret0
   550  }
   551  
   552  // Current indicates an expected call of Current.
   553  func (mr *MockOrderedBytesIteratorMockRecorder) Current() *gomock.Call {
   554  	mr.mock.ctrl.T.Helper()
   555  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Current", reflect.TypeOf((*MockOrderedBytesIterator)(nil).Current))
   556  }
   557  
   558  // Err mocks base method.
   559  func (m *MockOrderedBytesIterator) Err() error {
   560  	m.ctrl.T.Helper()
   561  	ret := m.ctrl.Call(m, "Err")
   562  	ret0, _ := ret[0].(error)
   563  	return ret0
   564  }
   565  
   566  // Err indicates an expected call of Err.
   567  func (mr *MockOrderedBytesIteratorMockRecorder) Err() *gomock.Call {
   568  	mr.mock.ctrl.T.Helper()
   569  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Err", reflect.TypeOf((*MockOrderedBytesIterator)(nil).Err))
   570  }
   571  
   572  // Next mocks base method.
   573  func (m *MockOrderedBytesIterator) Next() bool {
   574  	m.ctrl.T.Helper()
   575  	ret := m.ctrl.Call(m, "Next")
   576  	ret0, _ := ret[0].(bool)
   577  	return ret0
   578  }
   579  
   580  // Next indicates an expected call of Next.
   581  func (mr *MockOrderedBytesIteratorMockRecorder) Next() *gomock.Call {
   582  	mr.mock.ctrl.T.Helper()
   583  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Next", reflect.TypeOf((*MockOrderedBytesIterator)(nil).Next))
   584  }
   585  
   586  // MockFieldsPostingsListIterator is a mock of FieldsPostingsListIterator interface.
   587  type MockFieldsPostingsListIterator struct {
   588  	ctrl     *gomock.Controller
   589  	recorder *MockFieldsPostingsListIteratorMockRecorder
   590  }
   591  
   592  // MockFieldsPostingsListIteratorMockRecorder is the mock recorder for MockFieldsPostingsListIterator.
   593  type MockFieldsPostingsListIteratorMockRecorder struct {
   594  	mock *MockFieldsPostingsListIterator
   595  }
   596  
   597  // NewMockFieldsPostingsListIterator creates a new mock instance.
   598  func NewMockFieldsPostingsListIterator(ctrl *gomock.Controller) *MockFieldsPostingsListIterator {
   599  	mock := &MockFieldsPostingsListIterator{ctrl: ctrl}
   600  	mock.recorder = &MockFieldsPostingsListIteratorMockRecorder{mock}
   601  	return mock
   602  }
   603  
   604  // EXPECT returns an object that allows the caller to indicate expected use.
   605  func (m *MockFieldsPostingsListIterator) EXPECT() *MockFieldsPostingsListIteratorMockRecorder {
   606  	return m.recorder
   607  }
   608  
   609  // Close mocks base method.
   610  func (m *MockFieldsPostingsListIterator) Close() error {
   611  	m.ctrl.T.Helper()
   612  	ret := m.ctrl.Call(m, "Close")
   613  	ret0, _ := ret[0].(error)
   614  	return ret0
   615  }
   616  
   617  // Close indicates an expected call of Close.
   618  func (mr *MockFieldsPostingsListIteratorMockRecorder) Close() *gomock.Call {
   619  	mr.mock.ctrl.T.Helper()
   620  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockFieldsPostingsListIterator)(nil).Close))
   621  }
   622  
   623  // Current mocks base method.
   624  func (m *MockFieldsPostingsListIterator) Current() ([]byte, postings.List) {
   625  	m.ctrl.T.Helper()
   626  	ret := m.ctrl.Call(m, "Current")
   627  	ret0, _ := ret[0].([]byte)
   628  	ret1, _ := ret[1].(postings.List)
   629  	return ret0, ret1
   630  }
   631  
   632  // Current indicates an expected call of Current.
   633  func (mr *MockFieldsPostingsListIteratorMockRecorder) Current() *gomock.Call {
   634  	mr.mock.ctrl.T.Helper()
   635  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Current", reflect.TypeOf((*MockFieldsPostingsListIterator)(nil).Current))
   636  }
   637  
   638  // Err mocks base method.
   639  func (m *MockFieldsPostingsListIterator) Err() error {
   640  	m.ctrl.T.Helper()
   641  	ret := m.ctrl.Call(m, "Err")
   642  	ret0, _ := ret[0].(error)
   643  	return ret0
   644  }
   645  
   646  // Err indicates an expected call of Err.
   647  func (mr *MockFieldsPostingsListIteratorMockRecorder) Err() *gomock.Call {
   648  	mr.mock.ctrl.T.Helper()
   649  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Err", reflect.TypeOf((*MockFieldsPostingsListIterator)(nil).Err))
   650  }
   651  
   652  // Next mocks base method.
   653  func (m *MockFieldsPostingsListIterator) Next() bool {
   654  	m.ctrl.T.Helper()
   655  	ret := m.ctrl.Call(m, "Next")
   656  	ret0, _ := ret[0].(bool)
   657  	return ret0
   658  }
   659  
   660  // Next indicates an expected call of Next.
   661  func (mr *MockFieldsPostingsListIteratorMockRecorder) Next() *gomock.Call {
   662  	mr.mock.ctrl.T.Helper()
   663  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Next", reflect.TypeOf((*MockFieldsPostingsListIterator)(nil).Next))
   664  }
   665  
   666  // MockFieldsIterator is a mock of FieldsIterator interface.
   667  type MockFieldsIterator struct {
   668  	ctrl     *gomock.Controller
   669  	recorder *MockFieldsIteratorMockRecorder
   670  }
   671  
   672  // MockFieldsIteratorMockRecorder is the mock recorder for MockFieldsIterator.
   673  type MockFieldsIteratorMockRecorder struct {
   674  	mock *MockFieldsIterator
   675  }
   676  
   677  // NewMockFieldsIterator creates a new mock instance.
   678  func NewMockFieldsIterator(ctrl *gomock.Controller) *MockFieldsIterator {
   679  	mock := &MockFieldsIterator{ctrl: ctrl}
   680  	mock.recorder = &MockFieldsIteratorMockRecorder{mock}
   681  	return mock
   682  }
   683  
   684  // EXPECT returns an object that allows the caller to indicate expected use.
   685  func (m *MockFieldsIterator) EXPECT() *MockFieldsIteratorMockRecorder {
   686  	return m.recorder
   687  }
   688  
   689  // Close mocks base method.
   690  func (m *MockFieldsIterator) Close() error {
   691  	m.ctrl.T.Helper()
   692  	ret := m.ctrl.Call(m, "Close")
   693  	ret0, _ := ret[0].(error)
   694  	return ret0
   695  }
   696  
   697  // Close indicates an expected call of Close.
   698  func (mr *MockFieldsIteratorMockRecorder) Close() *gomock.Call {
   699  	mr.mock.ctrl.T.Helper()
   700  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockFieldsIterator)(nil).Close))
   701  }
   702  
   703  // Current mocks base method.
   704  func (m *MockFieldsIterator) Current() []byte {
   705  	m.ctrl.T.Helper()
   706  	ret := m.ctrl.Call(m, "Current")
   707  	ret0, _ := ret[0].([]byte)
   708  	return ret0
   709  }
   710  
   711  // Current indicates an expected call of Current.
   712  func (mr *MockFieldsIteratorMockRecorder) Current() *gomock.Call {
   713  	mr.mock.ctrl.T.Helper()
   714  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Current", reflect.TypeOf((*MockFieldsIterator)(nil).Current))
   715  }
   716  
   717  // Empty mocks base method.
   718  func (m *MockFieldsIterator) Empty() bool {
   719  	m.ctrl.T.Helper()
   720  	ret := m.ctrl.Call(m, "Empty")
   721  	ret0, _ := ret[0].(bool)
   722  	return ret0
   723  }
   724  
   725  // Empty indicates an expected call of Empty.
   726  func (mr *MockFieldsIteratorMockRecorder) Empty() *gomock.Call {
   727  	mr.mock.ctrl.T.Helper()
   728  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Empty", reflect.TypeOf((*MockFieldsIterator)(nil).Empty))
   729  }
   730  
   731  // Err mocks base method.
   732  func (m *MockFieldsIterator) Err() error {
   733  	m.ctrl.T.Helper()
   734  	ret := m.ctrl.Call(m, "Err")
   735  	ret0, _ := ret[0].(error)
   736  	return ret0
   737  }
   738  
   739  // Err indicates an expected call of Err.
   740  func (mr *MockFieldsIteratorMockRecorder) Err() *gomock.Call {
   741  	mr.mock.ctrl.T.Helper()
   742  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Err", reflect.TypeOf((*MockFieldsIterator)(nil).Err))
   743  }
   744  
   745  // Next mocks base method.
   746  func (m *MockFieldsIterator) Next() bool {
   747  	m.ctrl.T.Helper()
   748  	ret := m.ctrl.Call(m, "Next")
   749  	ret0, _ := ret[0].(bool)
   750  	return ret0
   751  }
   752  
   753  // Next indicates an expected call of Next.
   754  func (mr *MockFieldsIteratorMockRecorder) Next() *gomock.Call {
   755  	mr.mock.ctrl.T.Helper()
   756  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Next", reflect.TypeOf((*MockFieldsIterator)(nil).Next))
   757  }
   758  
   759  // MockTermsIterator is a mock of TermsIterator interface.
   760  type MockTermsIterator struct {
   761  	ctrl     *gomock.Controller
   762  	recorder *MockTermsIteratorMockRecorder
   763  }
   764  
   765  // MockTermsIteratorMockRecorder is the mock recorder for MockTermsIterator.
   766  type MockTermsIteratorMockRecorder struct {
   767  	mock *MockTermsIterator
   768  }
   769  
   770  // NewMockTermsIterator creates a new mock instance.
   771  func NewMockTermsIterator(ctrl *gomock.Controller) *MockTermsIterator {
   772  	mock := &MockTermsIterator{ctrl: ctrl}
   773  	mock.recorder = &MockTermsIteratorMockRecorder{mock}
   774  	return mock
   775  }
   776  
   777  // EXPECT returns an object that allows the caller to indicate expected use.
   778  func (m *MockTermsIterator) EXPECT() *MockTermsIteratorMockRecorder {
   779  	return m.recorder
   780  }
   781  
   782  // Close mocks base method.
   783  func (m *MockTermsIterator) Close() error {
   784  	m.ctrl.T.Helper()
   785  	ret := m.ctrl.Call(m, "Close")
   786  	ret0, _ := ret[0].(error)
   787  	return ret0
   788  }
   789  
   790  // Close indicates an expected call of Close.
   791  func (mr *MockTermsIteratorMockRecorder) Close() *gomock.Call {
   792  	mr.mock.ctrl.T.Helper()
   793  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockTermsIterator)(nil).Close))
   794  }
   795  
   796  // Current mocks base method.
   797  func (m *MockTermsIterator) Current() ([]byte, postings.List) {
   798  	m.ctrl.T.Helper()
   799  	ret := m.ctrl.Call(m, "Current")
   800  	ret0, _ := ret[0].([]byte)
   801  	ret1, _ := ret[1].(postings.List)
   802  	return ret0, ret1
   803  }
   804  
   805  // Current indicates an expected call of Current.
   806  func (mr *MockTermsIteratorMockRecorder) Current() *gomock.Call {
   807  	mr.mock.ctrl.T.Helper()
   808  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Current", reflect.TypeOf((*MockTermsIterator)(nil).Current))
   809  }
   810  
   811  // Empty mocks base method.
   812  func (m *MockTermsIterator) Empty() bool {
   813  	m.ctrl.T.Helper()
   814  	ret := m.ctrl.Call(m, "Empty")
   815  	ret0, _ := ret[0].(bool)
   816  	return ret0
   817  }
   818  
   819  // Empty indicates an expected call of Empty.
   820  func (mr *MockTermsIteratorMockRecorder) Empty() *gomock.Call {
   821  	mr.mock.ctrl.T.Helper()
   822  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Empty", reflect.TypeOf((*MockTermsIterator)(nil).Empty))
   823  }
   824  
   825  // Err mocks base method.
   826  func (m *MockTermsIterator) Err() error {
   827  	m.ctrl.T.Helper()
   828  	ret := m.ctrl.Call(m, "Err")
   829  	ret0, _ := ret[0].(error)
   830  	return ret0
   831  }
   832  
   833  // Err indicates an expected call of Err.
   834  func (mr *MockTermsIteratorMockRecorder) Err() *gomock.Call {
   835  	mr.mock.ctrl.T.Helper()
   836  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Err", reflect.TypeOf((*MockTermsIterator)(nil).Err))
   837  }
   838  
   839  // Next mocks base method.
   840  func (m *MockTermsIterator) Next() bool {
   841  	m.ctrl.T.Helper()
   842  	ret := m.ctrl.Call(m, "Next")
   843  	ret0, _ := ret[0].(bool)
   844  	return ret0
   845  }
   846  
   847  // Next indicates an expected call of Next.
   848  func (mr *MockTermsIteratorMockRecorder) Next() *gomock.Call {
   849  	mr.mock.ctrl.T.Helper()
   850  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Next", reflect.TypeOf((*MockTermsIterator)(nil).Next))
   851  }
   852  
   853  // MockIterator is a mock of Iterator interface.
   854  type MockIterator struct {
   855  	ctrl     *gomock.Controller
   856  	recorder *MockIteratorMockRecorder
   857  }
   858  
   859  // MockIteratorMockRecorder is the mock recorder for MockIterator.
   860  type MockIteratorMockRecorder struct {
   861  	mock *MockIterator
   862  }
   863  
   864  // NewMockIterator creates a new mock instance.
   865  func NewMockIterator(ctrl *gomock.Controller) *MockIterator {
   866  	mock := &MockIterator{ctrl: ctrl}
   867  	mock.recorder = &MockIteratorMockRecorder{mock}
   868  	return mock
   869  }
   870  
   871  // EXPECT returns an object that allows the caller to indicate expected use.
   872  func (m *MockIterator) EXPECT() *MockIteratorMockRecorder {
   873  	return m.recorder
   874  }
   875  
   876  // Close mocks base method.
   877  func (m *MockIterator) Close() error {
   878  	m.ctrl.T.Helper()
   879  	ret := m.ctrl.Call(m, "Close")
   880  	ret0, _ := ret[0].(error)
   881  	return ret0
   882  }
   883  
   884  // Close indicates an expected call of Close.
   885  func (mr *MockIteratorMockRecorder) Close() *gomock.Call {
   886  	mr.mock.ctrl.T.Helper()
   887  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockIterator)(nil).Close))
   888  }
   889  
   890  // Err mocks base method.
   891  func (m *MockIterator) Err() error {
   892  	m.ctrl.T.Helper()
   893  	ret := m.ctrl.Call(m, "Err")
   894  	ret0, _ := ret[0].(error)
   895  	return ret0
   896  }
   897  
   898  // Err indicates an expected call of Err.
   899  func (mr *MockIteratorMockRecorder) Err() *gomock.Call {
   900  	mr.mock.ctrl.T.Helper()
   901  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Err", reflect.TypeOf((*MockIterator)(nil).Err))
   902  }
   903  
   904  // Next mocks base method.
   905  func (m *MockIterator) Next() bool {
   906  	m.ctrl.T.Helper()
   907  	ret := m.ctrl.Call(m, "Next")
   908  	ret0, _ := ret[0].(bool)
   909  	return ret0
   910  }
   911  
   912  // Next indicates an expected call of Next.
   913  func (mr *MockIteratorMockRecorder) Next() *gomock.Call {
   914  	mr.mock.ctrl.T.Helper()
   915  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Next", reflect.TypeOf((*MockIterator)(nil).Next))
   916  }
   917  
   918  // MockMutableSegment is a mock of MutableSegment interface.
   919  type MockMutableSegment struct {
   920  	ctrl     *gomock.Controller
   921  	recorder *MockMutableSegmentMockRecorder
   922  }
   923  
   924  // MockMutableSegmentMockRecorder is the mock recorder for MockMutableSegment.
   925  type MockMutableSegmentMockRecorder struct {
   926  	mock *MockMutableSegment
   927  }
   928  
   929  // NewMockMutableSegment creates a new mock instance.
   930  func NewMockMutableSegment(ctrl *gomock.Controller) *MockMutableSegment {
   931  	mock := &MockMutableSegment{ctrl: ctrl}
   932  	mock.recorder = &MockMutableSegmentMockRecorder{mock}
   933  	return mock
   934  }
   935  
   936  // EXPECT returns an object that allows the caller to indicate expected use.
   937  func (m *MockMutableSegment) EXPECT() *MockMutableSegmentMockRecorder {
   938  	return m.recorder
   939  }
   940  
   941  // AllDocs mocks base method.
   942  func (m *MockMutableSegment) AllDocs() (index.IDDocIterator, error) {
   943  	m.ctrl.T.Helper()
   944  	ret := m.ctrl.Call(m, "AllDocs")
   945  	ret0, _ := ret[0].(index.IDDocIterator)
   946  	ret1, _ := ret[1].(error)
   947  	return ret0, ret1
   948  }
   949  
   950  // AllDocs indicates an expected call of AllDocs.
   951  func (mr *MockMutableSegmentMockRecorder) AllDocs() *gomock.Call {
   952  	mr.mock.ctrl.T.Helper()
   953  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AllDocs", reflect.TypeOf((*MockMutableSegment)(nil).AllDocs))
   954  }
   955  
   956  // Close mocks base method.
   957  func (m *MockMutableSegment) Close() error {
   958  	m.ctrl.T.Helper()
   959  	ret := m.ctrl.Call(m, "Close")
   960  	ret0, _ := ret[0].(error)
   961  	return ret0
   962  }
   963  
   964  // Close indicates an expected call of Close.
   965  func (mr *MockMutableSegmentMockRecorder) Close() *gomock.Call {
   966  	mr.mock.ctrl.T.Helper()
   967  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockMutableSegment)(nil).Close))
   968  }
   969  
   970  // ContainsField mocks base method.
   971  func (m *MockMutableSegment) ContainsField(field []byte) (bool, error) {
   972  	m.ctrl.T.Helper()
   973  	ret := m.ctrl.Call(m, "ContainsField", field)
   974  	ret0, _ := ret[0].(bool)
   975  	ret1, _ := ret[1].(error)
   976  	return ret0, ret1
   977  }
   978  
   979  // ContainsField indicates an expected call of ContainsField.
   980  func (mr *MockMutableSegmentMockRecorder) ContainsField(field interface{}) *gomock.Call {
   981  	mr.mock.ctrl.T.Helper()
   982  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainsField", reflect.TypeOf((*MockMutableSegment)(nil).ContainsField), field)
   983  }
   984  
   985  // ContainsID mocks base method.
   986  func (m *MockMutableSegment) ContainsID(docID []byte) (bool, error) {
   987  	m.ctrl.T.Helper()
   988  	ret := m.ctrl.Call(m, "ContainsID", docID)
   989  	ret0, _ := ret[0].(bool)
   990  	ret1, _ := ret[1].(error)
   991  	return ret0, ret1
   992  }
   993  
   994  // ContainsID indicates an expected call of ContainsID.
   995  func (mr *MockMutableSegmentMockRecorder) ContainsID(docID interface{}) *gomock.Call {
   996  	mr.mock.ctrl.T.Helper()
   997  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainsID", reflect.TypeOf((*MockMutableSegment)(nil).ContainsID), docID)
   998  }
   999  
  1000  // Docs mocks base method.
  1001  func (m *MockMutableSegment) Docs() []doc.Metadata {
  1002  	m.ctrl.T.Helper()
  1003  	ret := m.ctrl.Call(m, "Docs")
  1004  	ret0, _ := ret[0].([]doc.Metadata)
  1005  	return ret0
  1006  }
  1007  
  1008  // Docs indicates an expected call of Docs.
  1009  func (mr *MockMutableSegmentMockRecorder) Docs() *gomock.Call {
  1010  	mr.mock.ctrl.T.Helper()
  1011  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Docs", reflect.TypeOf((*MockMutableSegment)(nil).Docs))
  1012  }
  1013  
  1014  // Fields mocks base method.
  1015  func (m *MockMutableSegment) Fields() (FieldsIterator, error) {
  1016  	m.ctrl.T.Helper()
  1017  	ret := m.ctrl.Call(m, "Fields")
  1018  	ret0, _ := ret[0].(FieldsIterator)
  1019  	ret1, _ := ret[1].(error)
  1020  	return ret0, ret1
  1021  }
  1022  
  1023  // Fields indicates an expected call of Fields.
  1024  func (mr *MockMutableSegmentMockRecorder) Fields() *gomock.Call {
  1025  	mr.mock.ctrl.T.Helper()
  1026  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Fields", reflect.TypeOf((*MockMutableSegment)(nil).Fields))
  1027  }
  1028  
  1029  // FieldsIterable mocks base method.
  1030  func (m *MockMutableSegment) FieldsIterable() FieldsIterable {
  1031  	m.ctrl.T.Helper()
  1032  	ret := m.ctrl.Call(m, "FieldsIterable")
  1033  	ret0, _ := ret[0].(FieldsIterable)
  1034  	return ret0
  1035  }
  1036  
  1037  // FieldsIterable indicates an expected call of FieldsIterable.
  1038  func (mr *MockMutableSegmentMockRecorder) FieldsIterable() *gomock.Call {
  1039  	mr.mock.ctrl.T.Helper()
  1040  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FieldsIterable", reflect.TypeOf((*MockMutableSegment)(nil).FieldsIterable))
  1041  }
  1042  
  1043  // FieldsPostingsList mocks base method.
  1044  func (m *MockMutableSegment) FieldsPostingsList() (FieldsPostingsListIterator, error) {
  1045  	m.ctrl.T.Helper()
  1046  	ret := m.ctrl.Call(m, "FieldsPostingsList")
  1047  	ret0, _ := ret[0].(FieldsPostingsListIterator)
  1048  	ret1, _ := ret[1].(error)
  1049  	return ret0, ret1
  1050  }
  1051  
  1052  // FieldsPostingsList indicates an expected call of FieldsPostingsList.
  1053  func (mr *MockMutableSegmentMockRecorder) FieldsPostingsList() *gomock.Call {
  1054  	mr.mock.ctrl.T.Helper()
  1055  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FieldsPostingsList", reflect.TypeOf((*MockMutableSegment)(nil).FieldsPostingsList))
  1056  }
  1057  
  1058  // IndexConcurrency mocks base method.
  1059  func (m *MockMutableSegment) IndexConcurrency() int {
  1060  	m.ctrl.T.Helper()
  1061  	ret := m.ctrl.Call(m, "IndexConcurrency")
  1062  	ret0, _ := ret[0].(int)
  1063  	return ret0
  1064  }
  1065  
  1066  // IndexConcurrency indicates an expected call of IndexConcurrency.
  1067  func (mr *MockMutableSegmentMockRecorder) IndexConcurrency() *gomock.Call {
  1068  	mr.mock.ctrl.T.Helper()
  1069  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IndexConcurrency", reflect.TypeOf((*MockMutableSegment)(nil).IndexConcurrency))
  1070  }
  1071  
  1072  // Insert mocks base method.
  1073  func (m *MockMutableSegment) Insert(d doc.Metadata) ([]byte, error) {
  1074  	m.ctrl.T.Helper()
  1075  	ret := m.ctrl.Call(m, "Insert", d)
  1076  	ret0, _ := ret[0].([]byte)
  1077  	ret1, _ := ret[1].(error)
  1078  	return ret0, ret1
  1079  }
  1080  
  1081  // Insert indicates an expected call of Insert.
  1082  func (mr *MockMutableSegmentMockRecorder) Insert(d interface{}) *gomock.Call {
  1083  	mr.mock.ctrl.T.Helper()
  1084  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Insert", reflect.TypeOf((*MockMutableSegment)(nil).Insert), d)
  1085  }
  1086  
  1087  // InsertBatch mocks base method.
  1088  func (m *MockMutableSegment) InsertBatch(b index.Batch) error {
  1089  	m.ctrl.T.Helper()
  1090  	ret := m.ctrl.Call(m, "InsertBatch", b)
  1091  	ret0, _ := ret[0].(error)
  1092  	return ret0
  1093  }
  1094  
  1095  // InsertBatch indicates an expected call of InsertBatch.
  1096  func (mr *MockMutableSegmentMockRecorder) InsertBatch(b interface{}) *gomock.Call {
  1097  	mr.mock.ctrl.T.Helper()
  1098  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsertBatch", reflect.TypeOf((*MockMutableSegment)(nil).InsertBatch), b)
  1099  }
  1100  
  1101  // IsSealed mocks base method.
  1102  func (m *MockMutableSegment) IsSealed() bool {
  1103  	m.ctrl.T.Helper()
  1104  	ret := m.ctrl.Call(m, "IsSealed")
  1105  	ret0, _ := ret[0].(bool)
  1106  	return ret0
  1107  }
  1108  
  1109  // IsSealed indicates an expected call of IsSealed.
  1110  func (mr *MockMutableSegmentMockRecorder) IsSealed() *gomock.Call {
  1111  	mr.mock.ctrl.T.Helper()
  1112  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsSealed", reflect.TypeOf((*MockMutableSegment)(nil).IsSealed))
  1113  }
  1114  
  1115  // Reader mocks base method.
  1116  func (m *MockMutableSegment) Reader() (Reader, error) {
  1117  	m.ctrl.T.Helper()
  1118  	ret := m.ctrl.Call(m, "Reader")
  1119  	ret0, _ := ret[0].(Reader)
  1120  	ret1, _ := ret[1].(error)
  1121  	return ret0, ret1
  1122  }
  1123  
  1124  // Reader indicates an expected call of Reader.
  1125  func (mr *MockMutableSegmentMockRecorder) Reader() *gomock.Call {
  1126  	mr.mock.ctrl.T.Helper()
  1127  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Reader", reflect.TypeOf((*MockMutableSegment)(nil).Reader))
  1128  }
  1129  
  1130  // Reset mocks base method.
  1131  func (m *MockMutableSegment) Reset() {
  1132  	m.ctrl.T.Helper()
  1133  	m.ctrl.Call(m, "Reset")
  1134  }
  1135  
  1136  // Reset indicates an expected call of Reset.
  1137  func (mr *MockMutableSegmentMockRecorder) Reset() *gomock.Call {
  1138  	mr.mock.ctrl.T.Helper()
  1139  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Reset", reflect.TypeOf((*MockMutableSegment)(nil).Reset))
  1140  }
  1141  
  1142  // Seal mocks base method.
  1143  func (m *MockMutableSegment) Seal() error {
  1144  	m.ctrl.T.Helper()
  1145  	ret := m.ctrl.Call(m, "Seal")
  1146  	ret0, _ := ret[0].(error)
  1147  	return ret0
  1148  }
  1149  
  1150  // Seal indicates an expected call of Seal.
  1151  func (mr *MockMutableSegmentMockRecorder) Seal() *gomock.Call {
  1152  	mr.mock.ctrl.T.Helper()
  1153  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Seal", reflect.TypeOf((*MockMutableSegment)(nil).Seal))
  1154  }
  1155  
  1156  // SetIndexConcurrency mocks base method.
  1157  func (m *MockMutableSegment) SetIndexConcurrency(value int) {
  1158  	m.ctrl.T.Helper()
  1159  	m.ctrl.Call(m, "SetIndexConcurrency", value)
  1160  }
  1161  
  1162  // SetIndexConcurrency indicates an expected call of SetIndexConcurrency.
  1163  func (mr *MockMutableSegmentMockRecorder) SetIndexConcurrency(value interface{}) *gomock.Call {
  1164  	mr.mock.ctrl.T.Helper()
  1165  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetIndexConcurrency", reflect.TypeOf((*MockMutableSegment)(nil).SetIndexConcurrency), value)
  1166  }
  1167  
  1168  // Size mocks base method.
  1169  func (m *MockMutableSegment) Size() int64 {
  1170  	m.ctrl.T.Helper()
  1171  	ret := m.ctrl.Call(m, "Size")
  1172  	ret0, _ := ret[0].(int64)
  1173  	return ret0
  1174  }
  1175  
  1176  // Size indicates an expected call of Size.
  1177  func (mr *MockMutableSegmentMockRecorder) Size() *gomock.Call {
  1178  	mr.mock.ctrl.T.Helper()
  1179  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Size", reflect.TypeOf((*MockMutableSegment)(nil).Size))
  1180  }
  1181  
  1182  // Terms mocks base method.
  1183  func (m *MockMutableSegment) Terms(field []byte) (TermsIterator, error) {
  1184  	m.ctrl.T.Helper()
  1185  	ret := m.ctrl.Call(m, "Terms", field)
  1186  	ret0, _ := ret[0].(TermsIterator)
  1187  	ret1, _ := ret[1].(error)
  1188  	return ret0, ret1
  1189  }
  1190  
  1191  // Terms indicates an expected call of Terms.
  1192  func (mr *MockMutableSegmentMockRecorder) Terms(field interface{}) *gomock.Call {
  1193  	mr.mock.ctrl.T.Helper()
  1194  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Terms", reflect.TypeOf((*MockMutableSegment)(nil).Terms), field)
  1195  }
  1196  
  1197  // TermsIterable mocks base method.
  1198  func (m *MockMutableSegment) TermsIterable() TermsIterable {
  1199  	m.ctrl.T.Helper()
  1200  	ret := m.ctrl.Call(m, "TermsIterable")
  1201  	ret0, _ := ret[0].(TermsIterable)
  1202  	return ret0
  1203  }
  1204  
  1205  // TermsIterable indicates an expected call of TermsIterable.
  1206  func (mr *MockMutableSegmentMockRecorder) TermsIterable() *gomock.Call {
  1207  	mr.mock.ctrl.T.Helper()
  1208  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TermsIterable", reflect.TypeOf((*MockMutableSegment)(nil).TermsIterable))
  1209  }
  1210  
  1211  // MockImmutableSegment is a mock of ImmutableSegment interface.
  1212  type MockImmutableSegment struct {
  1213  	ctrl     *gomock.Controller
  1214  	recorder *MockImmutableSegmentMockRecorder
  1215  }
  1216  
  1217  // MockImmutableSegmentMockRecorder is the mock recorder for MockImmutableSegment.
  1218  type MockImmutableSegmentMockRecorder struct {
  1219  	mock *MockImmutableSegment
  1220  }
  1221  
  1222  // NewMockImmutableSegment creates a new mock instance.
  1223  func NewMockImmutableSegment(ctrl *gomock.Controller) *MockImmutableSegment {
  1224  	mock := &MockImmutableSegment{ctrl: ctrl}
  1225  	mock.recorder = &MockImmutableSegmentMockRecorder{mock}
  1226  	return mock
  1227  }
  1228  
  1229  // EXPECT returns an object that allows the caller to indicate expected use.
  1230  func (m *MockImmutableSegment) EXPECT() *MockImmutableSegmentMockRecorder {
  1231  	return m.recorder
  1232  }
  1233  
  1234  // Close mocks base method.
  1235  func (m *MockImmutableSegment) Close() error {
  1236  	m.ctrl.T.Helper()
  1237  	ret := m.ctrl.Call(m, "Close")
  1238  	ret0, _ := ret[0].(error)
  1239  	return ret0
  1240  }
  1241  
  1242  // Close indicates an expected call of Close.
  1243  func (mr *MockImmutableSegmentMockRecorder) Close() *gomock.Call {
  1244  	mr.mock.ctrl.T.Helper()
  1245  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockImmutableSegment)(nil).Close))
  1246  }
  1247  
  1248  // ContainsField mocks base method.
  1249  func (m *MockImmutableSegment) ContainsField(field []byte) (bool, error) {
  1250  	m.ctrl.T.Helper()
  1251  	ret := m.ctrl.Call(m, "ContainsField", field)
  1252  	ret0, _ := ret[0].(bool)
  1253  	ret1, _ := ret[1].(error)
  1254  	return ret0, ret1
  1255  }
  1256  
  1257  // ContainsField indicates an expected call of ContainsField.
  1258  func (mr *MockImmutableSegmentMockRecorder) ContainsField(field interface{}) *gomock.Call {
  1259  	mr.mock.ctrl.T.Helper()
  1260  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainsField", reflect.TypeOf((*MockImmutableSegment)(nil).ContainsField), field)
  1261  }
  1262  
  1263  // ContainsID mocks base method.
  1264  func (m *MockImmutableSegment) ContainsID(docID []byte) (bool, error) {
  1265  	m.ctrl.T.Helper()
  1266  	ret := m.ctrl.Call(m, "ContainsID", docID)
  1267  	ret0, _ := ret[0].(bool)
  1268  	ret1, _ := ret[1].(error)
  1269  	return ret0, ret1
  1270  }
  1271  
  1272  // ContainsID indicates an expected call of ContainsID.
  1273  func (mr *MockImmutableSegmentMockRecorder) ContainsID(docID interface{}) *gomock.Call {
  1274  	mr.mock.ctrl.T.Helper()
  1275  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainsID", reflect.TypeOf((*MockImmutableSegment)(nil).ContainsID), docID)
  1276  }
  1277  
  1278  // FieldsIterable mocks base method.
  1279  func (m *MockImmutableSegment) FieldsIterable() FieldsIterable {
  1280  	m.ctrl.T.Helper()
  1281  	ret := m.ctrl.Call(m, "FieldsIterable")
  1282  	ret0, _ := ret[0].(FieldsIterable)
  1283  	return ret0
  1284  }
  1285  
  1286  // FieldsIterable indicates an expected call of FieldsIterable.
  1287  func (mr *MockImmutableSegmentMockRecorder) FieldsIterable() *gomock.Call {
  1288  	mr.mock.ctrl.T.Helper()
  1289  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FieldsIterable", reflect.TypeOf((*MockImmutableSegment)(nil).FieldsIterable))
  1290  }
  1291  
  1292  // FreeMmap mocks base method.
  1293  func (m *MockImmutableSegment) FreeMmap() error {
  1294  	m.ctrl.T.Helper()
  1295  	ret := m.ctrl.Call(m, "FreeMmap")
  1296  	ret0, _ := ret[0].(error)
  1297  	return ret0
  1298  }
  1299  
  1300  // FreeMmap indicates an expected call of FreeMmap.
  1301  func (mr *MockImmutableSegmentMockRecorder) FreeMmap() *gomock.Call {
  1302  	mr.mock.ctrl.T.Helper()
  1303  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FreeMmap", reflect.TypeOf((*MockImmutableSegment)(nil).FreeMmap))
  1304  }
  1305  
  1306  // Reader mocks base method.
  1307  func (m *MockImmutableSegment) Reader() (Reader, error) {
  1308  	m.ctrl.T.Helper()
  1309  	ret := m.ctrl.Call(m, "Reader")
  1310  	ret0, _ := ret[0].(Reader)
  1311  	ret1, _ := ret[1].(error)
  1312  	return ret0, ret1
  1313  }
  1314  
  1315  // Reader indicates an expected call of Reader.
  1316  func (mr *MockImmutableSegmentMockRecorder) Reader() *gomock.Call {
  1317  	mr.mock.ctrl.T.Helper()
  1318  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Reader", reflect.TypeOf((*MockImmutableSegment)(nil).Reader))
  1319  }
  1320  
  1321  // Size mocks base method.
  1322  func (m *MockImmutableSegment) Size() int64 {
  1323  	m.ctrl.T.Helper()
  1324  	ret := m.ctrl.Call(m, "Size")
  1325  	ret0, _ := ret[0].(int64)
  1326  	return ret0
  1327  }
  1328  
  1329  // Size indicates an expected call of Size.
  1330  func (mr *MockImmutableSegmentMockRecorder) Size() *gomock.Call {
  1331  	mr.mock.ctrl.T.Helper()
  1332  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Size", reflect.TypeOf((*MockImmutableSegment)(nil).Size))
  1333  }
  1334  
  1335  // TermsIterable mocks base method.
  1336  func (m *MockImmutableSegment) TermsIterable() TermsIterable {
  1337  	m.ctrl.T.Helper()
  1338  	ret := m.ctrl.Call(m, "TermsIterable")
  1339  	ret0, _ := ret[0].(TermsIterable)
  1340  	return ret0
  1341  }
  1342  
  1343  // TermsIterable indicates an expected call of TermsIterable.
  1344  func (mr *MockImmutableSegmentMockRecorder) TermsIterable() *gomock.Call {
  1345  	mr.mock.ctrl.T.Helper()
  1346  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TermsIterable", reflect.TypeOf((*MockImmutableSegment)(nil).TermsIterable))
  1347  }
  1348  
  1349  // MockBuilder is a mock of Builder interface.
  1350  type MockBuilder struct {
  1351  	ctrl     *gomock.Controller
  1352  	recorder *MockBuilderMockRecorder
  1353  }
  1354  
  1355  // MockBuilderMockRecorder is the mock recorder for MockBuilder.
  1356  type MockBuilderMockRecorder struct {
  1357  	mock *MockBuilder
  1358  }
  1359  
  1360  // NewMockBuilder creates a new mock instance.
  1361  func NewMockBuilder(ctrl *gomock.Controller) *MockBuilder {
  1362  	mock := &MockBuilder{ctrl: ctrl}
  1363  	mock.recorder = &MockBuilderMockRecorder{mock}
  1364  	return mock
  1365  }
  1366  
  1367  // EXPECT returns an object that allows the caller to indicate expected use.
  1368  func (m *MockBuilder) EXPECT() *MockBuilderMockRecorder {
  1369  	return m.recorder
  1370  }
  1371  
  1372  // AllDocs mocks base method.
  1373  func (m *MockBuilder) AllDocs() (index.IDDocIterator, error) {
  1374  	m.ctrl.T.Helper()
  1375  	ret := m.ctrl.Call(m, "AllDocs")
  1376  	ret0, _ := ret[0].(index.IDDocIterator)
  1377  	ret1, _ := ret[1].(error)
  1378  	return ret0, ret1
  1379  }
  1380  
  1381  // AllDocs indicates an expected call of AllDocs.
  1382  func (mr *MockBuilderMockRecorder) AllDocs() *gomock.Call {
  1383  	mr.mock.ctrl.T.Helper()
  1384  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AllDocs", reflect.TypeOf((*MockBuilder)(nil).AllDocs))
  1385  }
  1386  
  1387  // Docs mocks base method.
  1388  func (m *MockBuilder) Docs() []doc.Metadata {
  1389  	m.ctrl.T.Helper()
  1390  	ret := m.ctrl.Call(m, "Docs")
  1391  	ret0, _ := ret[0].([]doc.Metadata)
  1392  	return ret0
  1393  }
  1394  
  1395  // Docs indicates an expected call of Docs.
  1396  func (mr *MockBuilderMockRecorder) Docs() *gomock.Call {
  1397  	mr.mock.ctrl.T.Helper()
  1398  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Docs", reflect.TypeOf((*MockBuilder)(nil).Docs))
  1399  }
  1400  
  1401  // FieldsPostingsList mocks base method.
  1402  func (m *MockBuilder) FieldsPostingsList() (FieldsPostingsListIterator, error) {
  1403  	m.ctrl.T.Helper()
  1404  	ret := m.ctrl.Call(m, "FieldsPostingsList")
  1405  	ret0, _ := ret[0].(FieldsPostingsListIterator)
  1406  	ret1, _ := ret[1].(error)
  1407  	return ret0, ret1
  1408  }
  1409  
  1410  // FieldsPostingsList indicates an expected call of FieldsPostingsList.
  1411  func (mr *MockBuilderMockRecorder) FieldsPostingsList() *gomock.Call {
  1412  	mr.mock.ctrl.T.Helper()
  1413  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FieldsPostingsList", reflect.TypeOf((*MockBuilder)(nil).FieldsPostingsList))
  1414  }
  1415  
  1416  // Reset mocks base method.
  1417  func (m *MockBuilder) Reset() {
  1418  	m.ctrl.T.Helper()
  1419  	m.ctrl.Call(m, "Reset")
  1420  }
  1421  
  1422  // Reset indicates an expected call of Reset.
  1423  func (mr *MockBuilderMockRecorder) Reset() *gomock.Call {
  1424  	mr.mock.ctrl.T.Helper()
  1425  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Reset", reflect.TypeOf((*MockBuilder)(nil).Reset))
  1426  }
  1427  
  1428  // Terms mocks base method.
  1429  func (m *MockBuilder) Terms(field []byte) (TermsIterator, error) {
  1430  	m.ctrl.T.Helper()
  1431  	ret := m.ctrl.Call(m, "Terms", field)
  1432  	ret0, _ := ret[0].(TermsIterator)
  1433  	ret1, _ := ret[1].(error)
  1434  	return ret0, ret1
  1435  }
  1436  
  1437  // Terms indicates an expected call of Terms.
  1438  func (mr *MockBuilderMockRecorder) Terms(field interface{}) *gomock.Call {
  1439  	mr.mock.ctrl.T.Helper()
  1440  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Terms", reflect.TypeOf((*MockBuilder)(nil).Terms), field)
  1441  }
  1442  
  1443  // MockDocumentsBuilder is a mock of DocumentsBuilder interface.
  1444  type MockDocumentsBuilder struct {
  1445  	ctrl     *gomock.Controller
  1446  	recorder *MockDocumentsBuilderMockRecorder
  1447  }
  1448  
  1449  // MockDocumentsBuilderMockRecorder is the mock recorder for MockDocumentsBuilder.
  1450  type MockDocumentsBuilderMockRecorder struct {
  1451  	mock *MockDocumentsBuilder
  1452  }
  1453  
  1454  // NewMockDocumentsBuilder creates a new mock instance.
  1455  func NewMockDocumentsBuilder(ctrl *gomock.Controller) *MockDocumentsBuilder {
  1456  	mock := &MockDocumentsBuilder{ctrl: ctrl}
  1457  	mock.recorder = &MockDocumentsBuilderMockRecorder{mock}
  1458  	return mock
  1459  }
  1460  
  1461  // EXPECT returns an object that allows the caller to indicate expected use.
  1462  func (m *MockDocumentsBuilder) EXPECT() *MockDocumentsBuilderMockRecorder {
  1463  	return m.recorder
  1464  }
  1465  
  1466  // AllDocs mocks base method.
  1467  func (m *MockDocumentsBuilder) AllDocs() (index.IDDocIterator, error) {
  1468  	m.ctrl.T.Helper()
  1469  	ret := m.ctrl.Call(m, "AllDocs")
  1470  	ret0, _ := ret[0].(index.IDDocIterator)
  1471  	ret1, _ := ret[1].(error)
  1472  	return ret0, ret1
  1473  }
  1474  
  1475  // AllDocs indicates an expected call of AllDocs.
  1476  func (mr *MockDocumentsBuilderMockRecorder) AllDocs() *gomock.Call {
  1477  	mr.mock.ctrl.T.Helper()
  1478  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AllDocs", reflect.TypeOf((*MockDocumentsBuilder)(nil).AllDocs))
  1479  }
  1480  
  1481  // Docs mocks base method.
  1482  func (m *MockDocumentsBuilder) Docs() []doc.Metadata {
  1483  	m.ctrl.T.Helper()
  1484  	ret := m.ctrl.Call(m, "Docs")
  1485  	ret0, _ := ret[0].([]doc.Metadata)
  1486  	return ret0
  1487  }
  1488  
  1489  // Docs indicates an expected call of Docs.
  1490  func (mr *MockDocumentsBuilderMockRecorder) Docs() *gomock.Call {
  1491  	mr.mock.ctrl.T.Helper()
  1492  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Docs", reflect.TypeOf((*MockDocumentsBuilder)(nil).Docs))
  1493  }
  1494  
  1495  // FieldsPostingsList mocks base method.
  1496  func (m *MockDocumentsBuilder) FieldsPostingsList() (FieldsPostingsListIterator, error) {
  1497  	m.ctrl.T.Helper()
  1498  	ret := m.ctrl.Call(m, "FieldsPostingsList")
  1499  	ret0, _ := ret[0].(FieldsPostingsListIterator)
  1500  	ret1, _ := ret[1].(error)
  1501  	return ret0, ret1
  1502  }
  1503  
  1504  // FieldsPostingsList indicates an expected call of FieldsPostingsList.
  1505  func (mr *MockDocumentsBuilderMockRecorder) FieldsPostingsList() *gomock.Call {
  1506  	mr.mock.ctrl.T.Helper()
  1507  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FieldsPostingsList", reflect.TypeOf((*MockDocumentsBuilder)(nil).FieldsPostingsList))
  1508  }
  1509  
  1510  // IndexConcurrency mocks base method.
  1511  func (m *MockDocumentsBuilder) IndexConcurrency() int {
  1512  	m.ctrl.T.Helper()
  1513  	ret := m.ctrl.Call(m, "IndexConcurrency")
  1514  	ret0, _ := ret[0].(int)
  1515  	return ret0
  1516  }
  1517  
  1518  // IndexConcurrency indicates an expected call of IndexConcurrency.
  1519  func (mr *MockDocumentsBuilderMockRecorder) IndexConcurrency() *gomock.Call {
  1520  	mr.mock.ctrl.T.Helper()
  1521  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IndexConcurrency", reflect.TypeOf((*MockDocumentsBuilder)(nil).IndexConcurrency))
  1522  }
  1523  
  1524  // Insert mocks base method.
  1525  func (m *MockDocumentsBuilder) Insert(d doc.Metadata) ([]byte, error) {
  1526  	m.ctrl.T.Helper()
  1527  	ret := m.ctrl.Call(m, "Insert", d)
  1528  	ret0, _ := ret[0].([]byte)
  1529  	ret1, _ := ret[1].(error)
  1530  	return ret0, ret1
  1531  }
  1532  
  1533  // Insert indicates an expected call of Insert.
  1534  func (mr *MockDocumentsBuilderMockRecorder) Insert(d interface{}) *gomock.Call {
  1535  	mr.mock.ctrl.T.Helper()
  1536  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Insert", reflect.TypeOf((*MockDocumentsBuilder)(nil).Insert), d)
  1537  }
  1538  
  1539  // InsertBatch mocks base method.
  1540  func (m *MockDocumentsBuilder) InsertBatch(b index.Batch) error {
  1541  	m.ctrl.T.Helper()
  1542  	ret := m.ctrl.Call(m, "InsertBatch", b)
  1543  	ret0, _ := ret[0].(error)
  1544  	return ret0
  1545  }
  1546  
  1547  // InsertBatch indicates an expected call of InsertBatch.
  1548  func (mr *MockDocumentsBuilderMockRecorder) InsertBatch(b interface{}) *gomock.Call {
  1549  	mr.mock.ctrl.T.Helper()
  1550  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsertBatch", reflect.TypeOf((*MockDocumentsBuilder)(nil).InsertBatch), b)
  1551  }
  1552  
  1553  // Reset mocks base method.
  1554  func (m *MockDocumentsBuilder) Reset() {
  1555  	m.ctrl.T.Helper()
  1556  	m.ctrl.Call(m, "Reset")
  1557  }
  1558  
  1559  // Reset indicates an expected call of Reset.
  1560  func (mr *MockDocumentsBuilderMockRecorder) Reset() *gomock.Call {
  1561  	mr.mock.ctrl.T.Helper()
  1562  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Reset", reflect.TypeOf((*MockDocumentsBuilder)(nil).Reset))
  1563  }
  1564  
  1565  // SetIndexConcurrency mocks base method.
  1566  func (m *MockDocumentsBuilder) SetIndexConcurrency(value int) {
  1567  	m.ctrl.T.Helper()
  1568  	m.ctrl.Call(m, "SetIndexConcurrency", value)
  1569  }
  1570  
  1571  // SetIndexConcurrency indicates an expected call of SetIndexConcurrency.
  1572  func (mr *MockDocumentsBuilderMockRecorder) SetIndexConcurrency(value interface{}) *gomock.Call {
  1573  	mr.mock.ctrl.T.Helper()
  1574  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetIndexConcurrency", reflect.TypeOf((*MockDocumentsBuilder)(nil).SetIndexConcurrency), value)
  1575  }
  1576  
  1577  // Terms mocks base method.
  1578  func (m *MockDocumentsBuilder) Terms(field []byte) (TermsIterator, error) {
  1579  	m.ctrl.T.Helper()
  1580  	ret := m.ctrl.Call(m, "Terms", field)
  1581  	ret0, _ := ret[0].(TermsIterator)
  1582  	ret1, _ := ret[1].(error)
  1583  	return ret0, ret1
  1584  }
  1585  
  1586  // Terms indicates an expected call of Terms.
  1587  func (mr *MockDocumentsBuilderMockRecorder) Terms(field interface{}) *gomock.Call {
  1588  	mr.mock.ctrl.T.Helper()
  1589  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Terms", reflect.TypeOf((*MockDocumentsBuilder)(nil).Terms), field)
  1590  }
  1591  
  1592  // MockCloseableDocumentsBuilder is a mock of CloseableDocumentsBuilder interface.
  1593  type MockCloseableDocumentsBuilder struct {
  1594  	ctrl     *gomock.Controller
  1595  	recorder *MockCloseableDocumentsBuilderMockRecorder
  1596  }
  1597  
  1598  // MockCloseableDocumentsBuilderMockRecorder is the mock recorder for MockCloseableDocumentsBuilder.
  1599  type MockCloseableDocumentsBuilderMockRecorder struct {
  1600  	mock *MockCloseableDocumentsBuilder
  1601  }
  1602  
  1603  // NewMockCloseableDocumentsBuilder creates a new mock instance.
  1604  func NewMockCloseableDocumentsBuilder(ctrl *gomock.Controller) *MockCloseableDocumentsBuilder {
  1605  	mock := &MockCloseableDocumentsBuilder{ctrl: ctrl}
  1606  	mock.recorder = &MockCloseableDocumentsBuilderMockRecorder{mock}
  1607  	return mock
  1608  }
  1609  
  1610  // EXPECT returns an object that allows the caller to indicate expected use.
  1611  func (m *MockCloseableDocumentsBuilder) EXPECT() *MockCloseableDocumentsBuilderMockRecorder {
  1612  	return m.recorder
  1613  }
  1614  
  1615  // AllDocs mocks base method.
  1616  func (m *MockCloseableDocumentsBuilder) AllDocs() (index.IDDocIterator, error) {
  1617  	m.ctrl.T.Helper()
  1618  	ret := m.ctrl.Call(m, "AllDocs")
  1619  	ret0, _ := ret[0].(index.IDDocIterator)
  1620  	ret1, _ := ret[1].(error)
  1621  	return ret0, ret1
  1622  }
  1623  
  1624  // AllDocs indicates an expected call of AllDocs.
  1625  func (mr *MockCloseableDocumentsBuilderMockRecorder) AllDocs() *gomock.Call {
  1626  	mr.mock.ctrl.T.Helper()
  1627  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AllDocs", reflect.TypeOf((*MockCloseableDocumentsBuilder)(nil).AllDocs))
  1628  }
  1629  
  1630  // Close mocks base method.
  1631  func (m *MockCloseableDocumentsBuilder) Close() error {
  1632  	m.ctrl.T.Helper()
  1633  	ret := m.ctrl.Call(m, "Close")
  1634  	ret0, _ := ret[0].(error)
  1635  	return ret0
  1636  }
  1637  
  1638  // Close indicates an expected call of Close.
  1639  func (mr *MockCloseableDocumentsBuilderMockRecorder) Close() *gomock.Call {
  1640  	mr.mock.ctrl.T.Helper()
  1641  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockCloseableDocumentsBuilder)(nil).Close))
  1642  }
  1643  
  1644  // Docs mocks base method.
  1645  func (m *MockCloseableDocumentsBuilder) Docs() []doc.Metadata {
  1646  	m.ctrl.T.Helper()
  1647  	ret := m.ctrl.Call(m, "Docs")
  1648  	ret0, _ := ret[0].([]doc.Metadata)
  1649  	return ret0
  1650  }
  1651  
  1652  // Docs indicates an expected call of Docs.
  1653  func (mr *MockCloseableDocumentsBuilderMockRecorder) Docs() *gomock.Call {
  1654  	mr.mock.ctrl.T.Helper()
  1655  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Docs", reflect.TypeOf((*MockCloseableDocumentsBuilder)(nil).Docs))
  1656  }
  1657  
  1658  // FieldsPostingsList mocks base method.
  1659  func (m *MockCloseableDocumentsBuilder) FieldsPostingsList() (FieldsPostingsListIterator, error) {
  1660  	m.ctrl.T.Helper()
  1661  	ret := m.ctrl.Call(m, "FieldsPostingsList")
  1662  	ret0, _ := ret[0].(FieldsPostingsListIterator)
  1663  	ret1, _ := ret[1].(error)
  1664  	return ret0, ret1
  1665  }
  1666  
  1667  // FieldsPostingsList indicates an expected call of FieldsPostingsList.
  1668  func (mr *MockCloseableDocumentsBuilderMockRecorder) FieldsPostingsList() *gomock.Call {
  1669  	mr.mock.ctrl.T.Helper()
  1670  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FieldsPostingsList", reflect.TypeOf((*MockCloseableDocumentsBuilder)(nil).FieldsPostingsList))
  1671  }
  1672  
  1673  // IndexConcurrency mocks base method.
  1674  func (m *MockCloseableDocumentsBuilder) IndexConcurrency() int {
  1675  	m.ctrl.T.Helper()
  1676  	ret := m.ctrl.Call(m, "IndexConcurrency")
  1677  	ret0, _ := ret[0].(int)
  1678  	return ret0
  1679  }
  1680  
  1681  // IndexConcurrency indicates an expected call of IndexConcurrency.
  1682  func (mr *MockCloseableDocumentsBuilderMockRecorder) IndexConcurrency() *gomock.Call {
  1683  	mr.mock.ctrl.T.Helper()
  1684  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IndexConcurrency", reflect.TypeOf((*MockCloseableDocumentsBuilder)(nil).IndexConcurrency))
  1685  }
  1686  
  1687  // Insert mocks base method.
  1688  func (m *MockCloseableDocumentsBuilder) Insert(d doc.Metadata) ([]byte, error) {
  1689  	m.ctrl.T.Helper()
  1690  	ret := m.ctrl.Call(m, "Insert", d)
  1691  	ret0, _ := ret[0].([]byte)
  1692  	ret1, _ := ret[1].(error)
  1693  	return ret0, ret1
  1694  }
  1695  
  1696  // Insert indicates an expected call of Insert.
  1697  func (mr *MockCloseableDocumentsBuilderMockRecorder) Insert(d interface{}) *gomock.Call {
  1698  	mr.mock.ctrl.T.Helper()
  1699  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Insert", reflect.TypeOf((*MockCloseableDocumentsBuilder)(nil).Insert), d)
  1700  }
  1701  
  1702  // InsertBatch mocks base method.
  1703  func (m *MockCloseableDocumentsBuilder) InsertBatch(b index.Batch) error {
  1704  	m.ctrl.T.Helper()
  1705  	ret := m.ctrl.Call(m, "InsertBatch", b)
  1706  	ret0, _ := ret[0].(error)
  1707  	return ret0
  1708  }
  1709  
  1710  // InsertBatch indicates an expected call of InsertBatch.
  1711  func (mr *MockCloseableDocumentsBuilderMockRecorder) InsertBatch(b interface{}) *gomock.Call {
  1712  	mr.mock.ctrl.T.Helper()
  1713  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsertBatch", reflect.TypeOf((*MockCloseableDocumentsBuilder)(nil).InsertBatch), b)
  1714  }
  1715  
  1716  // Reset mocks base method.
  1717  func (m *MockCloseableDocumentsBuilder) Reset() {
  1718  	m.ctrl.T.Helper()
  1719  	m.ctrl.Call(m, "Reset")
  1720  }
  1721  
  1722  // Reset indicates an expected call of Reset.
  1723  func (mr *MockCloseableDocumentsBuilderMockRecorder) Reset() *gomock.Call {
  1724  	mr.mock.ctrl.T.Helper()
  1725  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Reset", reflect.TypeOf((*MockCloseableDocumentsBuilder)(nil).Reset))
  1726  }
  1727  
  1728  // SetIndexConcurrency mocks base method.
  1729  func (m *MockCloseableDocumentsBuilder) SetIndexConcurrency(value int) {
  1730  	m.ctrl.T.Helper()
  1731  	m.ctrl.Call(m, "SetIndexConcurrency", value)
  1732  }
  1733  
  1734  // SetIndexConcurrency indicates an expected call of SetIndexConcurrency.
  1735  func (mr *MockCloseableDocumentsBuilderMockRecorder) SetIndexConcurrency(value interface{}) *gomock.Call {
  1736  	mr.mock.ctrl.T.Helper()
  1737  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetIndexConcurrency", reflect.TypeOf((*MockCloseableDocumentsBuilder)(nil).SetIndexConcurrency), value)
  1738  }
  1739  
  1740  // Terms mocks base method.
  1741  func (m *MockCloseableDocumentsBuilder) Terms(field []byte) (TermsIterator, error) {
  1742  	m.ctrl.T.Helper()
  1743  	ret := m.ctrl.Call(m, "Terms", field)
  1744  	ret0, _ := ret[0].(TermsIterator)
  1745  	ret1, _ := ret[1].(error)
  1746  	return ret0, ret1
  1747  }
  1748  
  1749  // Terms indicates an expected call of Terms.
  1750  func (mr *MockCloseableDocumentsBuilderMockRecorder) Terms(field interface{}) *gomock.Call {
  1751  	mr.mock.ctrl.T.Helper()
  1752  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Terms", reflect.TypeOf((*MockCloseableDocumentsBuilder)(nil).Terms), field)
  1753  }
  1754  
  1755  // MockSegmentsBuilder is a mock of SegmentsBuilder interface.
  1756  type MockSegmentsBuilder struct {
  1757  	ctrl     *gomock.Controller
  1758  	recorder *MockSegmentsBuilderMockRecorder
  1759  }
  1760  
  1761  // MockSegmentsBuilderMockRecorder is the mock recorder for MockSegmentsBuilder.
  1762  type MockSegmentsBuilderMockRecorder struct {
  1763  	mock *MockSegmentsBuilder
  1764  }
  1765  
  1766  // NewMockSegmentsBuilder creates a new mock instance.
  1767  func NewMockSegmentsBuilder(ctrl *gomock.Controller) *MockSegmentsBuilder {
  1768  	mock := &MockSegmentsBuilder{ctrl: ctrl}
  1769  	mock.recorder = &MockSegmentsBuilderMockRecorder{mock}
  1770  	return mock
  1771  }
  1772  
  1773  // EXPECT returns an object that allows the caller to indicate expected use.
  1774  func (m *MockSegmentsBuilder) EXPECT() *MockSegmentsBuilderMockRecorder {
  1775  	return m.recorder
  1776  }
  1777  
  1778  // AddSegments mocks base method.
  1779  func (m *MockSegmentsBuilder) AddSegments(segments []Segment) error {
  1780  	m.ctrl.T.Helper()
  1781  	ret := m.ctrl.Call(m, "AddSegments", segments)
  1782  	ret0, _ := ret[0].(error)
  1783  	return ret0
  1784  }
  1785  
  1786  // AddSegments indicates an expected call of AddSegments.
  1787  func (mr *MockSegmentsBuilderMockRecorder) AddSegments(segments interface{}) *gomock.Call {
  1788  	mr.mock.ctrl.T.Helper()
  1789  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddSegments", reflect.TypeOf((*MockSegmentsBuilder)(nil).AddSegments), segments)
  1790  }
  1791  
  1792  // AllDocs mocks base method.
  1793  func (m *MockSegmentsBuilder) AllDocs() (index.IDDocIterator, error) {
  1794  	m.ctrl.T.Helper()
  1795  	ret := m.ctrl.Call(m, "AllDocs")
  1796  	ret0, _ := ret[0].(index.IDDocIterator)
  1797  	ret1, _ := ret[1].(error)
  1798  	return ret0, ret1
  1799  }
  1800  
  1801  // AllDocs indicates an expected call of AllDocs.
  1802  func (mr *MockSegmentsBuilderMockRecorder) AllDocs() *gomock.Call {
  1803  	mr.mock.ctrl.T.Helper()
  1804  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AllDocs", reflect.TypeOf((*MockSegmentsBuilder)(nil).AllDocs))
  1805  }
  1806  
  1807  // Docs mocks base method.
  1808  func (m *MockSegmentsBuilder) Docs() []doc.Metadata {
  1809  	m.ctrl.T.Helper()
  1810  	ret := m.ctrl.Call(m, "Docs")
  1811  	ret0, _ := ret[0].([]doc.Metadata)
  1812  	return ret0
  1813  }
  1814  
  1815  // Docs indicates an expected call of Docs.
  1816  func (mr *MockSegmentsBuilderMockRecorder) Docs() *gomock.Call {
  1817  	mr.mock.ctrl.T.Helper()
  1818  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Docs", reflect.TypeOf((*MockSegmentsBuilder)(nil).Docs))
  1819  }
  1820  
  1821  // FieldsPostingsList mocks base method.
  1822  func (m *MockSegmentsBuilder) FieldsPostingsList() (FieldsPostingsListIterator, error) {
  1823  	m.ctrl.T.Helper()
  1824  	ret := m.ctrl.Call(m, "FieldsPostingsList")
  1825  	ret0, _ := ret[0].(FieldsPostingsListIterator)
  1826  	ret1, _ := ret[1].(error)
  1827  	return ret0, ret1
  1828  }
  1829  
  1830  // FieldsPostingsList indicates an expected call of FieldsPostingsList.
  1831  func (mr *MockSegmentsBuilderMockRecorder) FieldsPostingsList() *gomock.Call {
  1832  	mr.mock.ctrl.T.Helper()
  1833  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FieldsPostingsList", reflect.TypeOf((*MockSegmentsBuilder)(nil).FieldsPostingsList))
  1834  }
  1835  
  1836  // Reset mocks base method.
  1837  func (m *MockSegmentsBuilder) Reset() {
  1838  	m.ctrl.T.Helper()
  1839  	m.ctrl.Call(m, "Reset")
  1840  }
  1841  
  1842  // Reset indicates an expected call of Reset.
  1843  func (mr *MockSegmentsBuilderMockRecorder) Reset() *gomock.Call {
  1844  	mr.mock.ctrl.T.Helper()
  1845  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Reset", reflect.TypeOf((*MockSegmentsBuilder)(nil).Reset))
  1846  }
  1847  
  1848  // SegmentMetadatas mocks base method.
  1849  func (m *MockSegmentsBuilder) SegmentMetadatas() ([]SegmentsBuilderSegmentMetadata, error) {
  1850  	m.ctrl.T.Helper()
  1851  	ret := m.ctrl.Call(m, "SegmentMetadatas")
  1852  	ret0, _ := ret[0].([]SegmentsBuilderSegmentMetadata)
  1853  	ret1, _ := ret[1].(error)
  1854  	return ret0, ret1
  1855  }
  1856  
  1857  // SegmentMetadatas indicates an expected call of SegmentMetadatas.
  1858  func (mr *MockSegmentsBuilderMockRecorder) SegmentMetadatas() *gomock.Call {
  1859  	mr.mock.ctrl.T.Helper()
  1860  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SegmentMetadatas", reflect.TypeOf((*MockSegmentsBuilder)(nil).SegmentMetadatas))
  1861  }
  1862  
  1863  // SetFilter mocks base method.
  1864  func (m *MockSegmentsBuilder) SetFilter(keep DocumentsFilter) {
  1865  	m.ctrl.T.Helper()
  1866  	m.ctrl.Call(m, "SetFilter", keep)
  1867  }
  1868  
  1869  // SetFilter indicates an expected call of SetFilter.
  1870  func (mr *MockSegmentsBuilderMockRecorder) SetFilter(keep interface{}) *gomock.Call {
  1871  	mr.mock.ctrl.T.Helper()
  1872  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetFilter", reflect.TypeOf((*MockSegmentsBuilder)(nil).SetFilter), keep)
  1873  }
  1874  
  1875  // Terms mocks base method.
  1876  func (m *MockSegmentsBuilder) Terms(field []byte) (TermsIterator, error) {
  1877  	m.ctrl.T.Helper()
  1878  	ret := m.ctrl.Call(m, "Terms", field)
  1879  	ret0, _ := ret[0].(TermsIterator)
  1880  	ret1, _ := ret[1].(error)
  1881  	return ret0, ret1
  1882  }
  1883  
  1884  // Terms indicates an expected call of Terms.
  1885  func (mr *MockSegmentsBuilderMockRecorder) Terms(field interface{}) *gomock.Call {
  1886  	mr.mock.ctrl.T.Helper()
  1887  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Terms", reflect.TypeOf((*MockSegmentsBuilder)(nil).Terms), field)
  1888  }
  1889  
  1890  // MockDocumentsFilter is a mock of DocumentsFilter interface.
  1891  type MockDocumentsFilter struct {
  1892  	ctrl     *gomock.Controller
  1893  	recorder *MockDocumentsFilterMockRecorder
  1894  }
  1895  
  1896  // MockDocumentsFilterMockRecorder is the mock recorder for MockDocumentsFilter.
  1897  type MockDocumentsFilterMockRecorder struct {
  1898  	mock *MockDocumentsFilter
  1899  }
  1900  
  1901  // NewMockDocumentsFilter creates a new mock instance.
  1902  func NewMockDocumentsFilter(ctrl *gomock.Controller) *MockDocumentsFilter {
  1903  	mock := &MockDocumentsFilter{ctrl: ctrl}
  1904  	mock.recorder = &MockDocumentsFilterMockRecorder{mock}
  1905  	return mock
  1906  }
  1907  
  1908  // EXPECT returns an object that allows the caller to indicate expected use.
  1909  func (m *MockDocumentsFilter) EXPECT() *MockDocumentsFilterMockRecorder {
  1910  	return m.recorder
  1911  }
  1912  
  1913  // ContainsDoc mocks base method.
  1914  func (m *MockDocumentsFilter) ContainsDoc(d doc.Metadata) bool {
  1915  	m.ctrl.T.Helper()
  1916  	ret := m.ctrl.Call(m, "ContainsDoc", d)
  1917  	ret0, _ := ret[0].(bool)
  1918  	return ret0
  1919  }
  1920  
  1921  // ContainsDoc indicates an expected call of ContainsDoc.
  1922  func (mr *MockDocumentsFilterMockRecorder) ContainsDoc(d interface{}) *gomock.Call {
  1923  	mr.mock.ctrl.T.Helper()
  1924  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainsDoc", reflect.TypeOf((*MockDocumentsFilter)(nil).ContainsDoc), d)
  1925  }
  1926  
  1927  // OnDuplicateDoc mocks base method.
  1928  func (m *MockDocumentsFilter) OnDuplicateDoc(d doc.Metadata) {
  1929  	m.ctrl.T.Helper()
  1930  	m.ctrl.Call(m, "OnDuplicateDoc", d)
  1931  }
  1932  
  1933  // OnDuplicateDoc indicates an expected call of OnDuplicateDoc.
  1934  func (mr *MockDocumentsFilterMockRecorder) OnDuplicateDoc(d interface{}) *gomock.Call {
  1935  	mr.mock.ctrl.T.Helper()
  1936  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OnDuplicateDoc", reflect.TypeOf((*MockDocumentsFilter)(nil).OnDuplicateDoc), d)
  1937  }