github.com/matrixorigin/matrixone@v1.2.0/pkg/frontend/test/engine_mock.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: ../../../pkg/vm/engine/types.go
     3  
     4  // Package mock_frontend is a generated GoMock package.
     5  package mock_frontend
     6  
     7  import (
     8  	context "context"
     9  	reflect "reflect"
    10  
    11  	gomock "github.com/golang/mock/gomock"
    12  	mpool "github.com/matrixorigin/matrixone/pkg/common/mpool"
    13  	batch "github.com/matrixorigin/matrixone/pkg/container/batch"
    14  	types "github.com/matrixorigin/matrixone/pkg/container/types"
    15  	vector "github.com/matrixorigin/matrixone/pkg/container/vector"
    16  	objectio "github.com/matrixorigin/matrixone/pkg/objectio"
    17  	api "github.com/matrixorigin/matrixone/pkg/pb/api"
    18  	plan "github.com/matrixorigin/matrixone/pkg/pb/plan"
    19  	statsinfo "github.com/matrixorigin/matrixone/pkg/pb/statsinfo"
    20  	timestamp "github.com/matrixorigin/matrixone/pkg/pb/timestamp"
    21  	client "github.com/matrixorigin/matrixone/pkg/txn/client"
    22  	engine "github.com/matrixorigin/matrixone/pkg/vm/engine"
    23  )
    24  
    25  // MockStatistics is a mock of Statistics interface.
    26  type MockStatistics struct {
    27  	ctrl     *gomock.Controller
    28  	recorder *MockStatisticsMockRecorder
    29  }
    30  
    31  // MockStatisticsMockRecorder is the mock recorder for MockStatistics.
    32  type MockStatisticsMockRecorder struct {
    33  	mock *MockStatistics
    34  }
    35  
    36  // NewMockStatistics creates a new mock instance.
    37  func NewMockStatistics(ctrl *gomock.Controller) *MockStatistics {
    38  	mock := &MockStatistics{ctrl: ctrl}
    39  	mock.recorder = &MockStatisticsMockRecorder{mock}
    40  	return mock
    41  }
    42  
    43  // EXPECT returns an object that allows the caller to indicate expected use.
    44  func (m *MockStatistics) EXPECT() *MockStatisticsMockRecorder {
    45  	return m.recorder
    46  }
    47  
    48  // Rows mocks base method.
    49  func (m *MockStatistics) Rows(ctx context.Context) (uint64, error) {
    50  	m.ctrl.T.Helper()
    51  	ret := m.ctrl.Call(m, "Rows", ctx)
    52  	ret0, _ := ret[0].(uint64)
    53  	ret1, _ := ret[1].(error)
    54  	return ret0, ret1
    55  }
    56  
    57  // Rows indicates an expected call of Rows.
    58  func (mr *MockStatisticsMockRecorder) Rows(ctx interface{}) *gomock.Call {
    59  	mr.mock.ctrl.T.Helper()
    60  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Rows", reflect.TypeOf((*MockStatistics)(nil).Rows), ctx)
    61  }
    62  
    63  // Size mocks base method.
    64  func (m *MockStatistics) Size(ctx context.Context, columnName string) (uint64, error) {
    65  	m.ctrl.T.Helper()
    66  	ret := m.ctrl.Call(m, "Size", ctx, columnName)
    67  	ret0, _ := ret[0].(uint64)
    68  	ret1, _ := ret[1].(error)
    69  	return ret0, ret1
    70  }
    71  
    72  // Size indicates an expected call of Size.
    73  func (mr *MockStatisticsMockRecorder) Size(ctx, columnName interface{}) *gomock.Call {
    74  	mr.mock.ctrl.T.Helper()
    75  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Size", reflect.TypeOf((*MockStatistics)(nil).Size), ctx, columnName)
    76  }
    77  
    78  // Stats mocks base method.
    79  func (m *MockStatistics) Stats(ctx context.Context, sync bool) (*statsinfo.StatsInfo, error) {
    80  	m.ctrl.T.Helper()
    81  	ret := m.ctrl.Call(m, "Stats", ctx, sync)
    82  	ret0, _ := ret[0].(*statsinfo.StatsInfo)
    83  	ret1, _ := ret[1].(error)
    84  	return ret0, ret1
    85  }
    86  
    87  // Stats indicates an expected call of Stats.
    88  func (mr *MockStatisticsMockRecorder) Stats(ctx, sync interface{}) *gomock.Call {
    89  	mr.mock.ctrl.T.Helper()
    90  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Stats", reflect.TypeOf((*MockStatistics)(nil).Stats), ctx, sync)
    91  }
    92  
    93  // MockTableDef is a mock of TableDef interface.
    94  type MockTableDef struct {
    95  	ctrl     *gomock.Controller
    96  	recorder *MockTableDefMockRecorder
    97  }
    98  
    99  // MockTableDefMockRecorder is the mock recorder for MockTableDef.
   100  type MockTableDefMockRecorder struct {
   101  	mock *MockTableDef
   102  }
   103  
   104  // NewMockTableDef creates a new mock instance.
   105  func NewMockTableDef(ctrl *gomock.Controller) *MockTableDef {
   106  	mock := &MockTableDef{ctrl: ctrl}
   107  	mock.recorder = &MockTableDefMockRecorder{mock}
   108  	return mock
   109  }
   110  
   111  // EXPECT returns an object that allows the caller to indicate expected use.
   112  func (m *MockTableDef) EXPECT() *MockTableDefMockRecorder {
   113  	return m.recorder
   114  }
   115  
   116  // ToPBVersion mocks base method.
   117  func (m *MockTableDef) ToPBVersion() engine.TableDefPB {
   118  	m.ctrl.T.Helper()
   119  	ret := m.ctrl.Call(m, "ToPBVersion")
   120  	ret0, _ := ret[0].(engine.TableDefPB)
   121  	return ret0
   122  }
   123  
   124  // ToPBVersion indicates an expected call of ToPBVersion.
   125  func (mr *MockTableDefMockRecorder) ToPBVersion() *gomock.Call {
   126  	mr.mock.ctrl.T.Helper()
   127  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ToPBVersion", reflect.TypeOf((*MockTableDef)(nil).ToPBVersion))
   128  }
   129  
   130  // tableDef mocks base method.
   131  func (m *MockTableDef) tableDef() {
   132  	m.ctrl.T.Helper()
   133  	m.ctrl.Call(m, "tableDef")
   134  }
   135  
   136  // tableDef indicates an expected call of tableDef.
   137  func (mr *MockTableDefMockRecorder) tableDef() *gomock.Call {
   138  	mr.mock.ctrl.T.Helper()
   139  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "tableDef", reflect.TypeOf((*MockTableDef)(nil).tableDef))
   140  }
   141  
   142  // MockConstraint is a mock of Constraint interface.
   143  type MockConstraint struct {
   144  	ctrl     *gomock.Controller
   145  	recorder *MockConstraintMockRecorder
   146  }
   147  
   148  // MockConstraintMockRecorder is the mock recorder for MockConstraint.
   149  type MockConstraintMockRecorder struct {
   150  	mock *MockConstraint
   151  }
   152  
   153  // NewMockConstraint creates a new mock instance.
   154  func NewMockConstraint(ctrl *gomock.Controller) *MockConstraint {
   155  	mock := &MockConstraint{ctrl: ctrl}
   156  	mock.recorder = &MockConstraintMockRecorder{mock}
   157  	return mock
   158  }
   159  
   160  // EXPECT returns an object that allows the caller to indicate expected use.
   161  func (m *MockConstraint) EXPECT() *MockConstraintMockRecorder {
   162  	return m.recorder
   163  }
   164  
   165  // ToPBVersion mocks base method.
   166  func (m *MockConstraint) ToPBVersion() engine.ConstraintPB {
   167  	m.ctrl.T.Helper()
   168  	ret := m.ctrl.Call(m, "ToPBVersion")
   169  	ret0, _ := ret[0].(engine.ConstraintPB)
   170  	return ret0
   171  }
   172  
   173  // ToPBVersion indicates an expected call of ToPBVersion.
   174  func (mr *MockConstraintMockRecorder) ToPBVersion() *gomock.Call {
   175  	mr.mock.ctrl.T.Helper()
   176  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ToPBVersion", reflect.TypeOf((*MockConstraint)(nil).ToPBVersion))
   177  }
   178  
   179  // constraint mocks base method.
   180  func (m *MockConstraint) constraint() {
   181  	m.ctrl.T.Helper()
   182  	m.ctrl.Call(m, "constraint")
   183  }
   184  
   185  // constraint indicates an expected call of constraint.
   186  func (mr *MockConstraintMockRecorder) constraint() *gomock.Call {
   187  	mr.mock.ctrl.T.Helper()
   188  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "constraint", reflect.TypeOf((*MockConstraint)(nil).constraint))
   189  }
   190  
   191  // MockRanges is a mock of Ranges interface.
   192  type MockRanges struct {
   193  	ctrl     *gomock.Controller
   194  	recorder *MockRangesMockRecorder
   195  }
   196  
   197  // MockRangesMockRecorder is the mock recorder for MockRanges.
   198  type MockRangesMockRecorder struct {
   199  	mock *MockRanges
   200  }
   201  
   202  // NewMockRanges creates a new mock instance.
   203  func NewMockRanges(ctrl *gomock.Controller) *MockRanges {
   204  	mock := &MockRanges{ctrl: ctrl}
   205  	mock.recorder = &MockRangesMockRecorder{mock}
   206  	return mock
   207  }
   208  
   209  // EXPECT returns an object that allows the caller to indicate expected use.
   210  func (m *MockRanges) EXPECT() *MockRangesMockRecorder {
   211  	return m.recorder
   212  }
   213  
   214  // Append mocks base method.
   215  func (m *MockRanges) Append(arg0 []byte) {
   216  	m.ctrl.T.Helper()
   217  	m.ctrl.Call(m, "Append", arg0)
   218  }
   219  
   220  // Append indicates an expected call of Append.
   221  func (mr *MockRangesMockRecorder) Append(arg0 interface{}) *gomock.Call {
   222  	mr.mock.ctrl.T.Helper()
   223  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Append", reflect.TypeOf((*MockRanges)(nil).Append), arg0)
   224  }
   225  
   226  // GetAllBytes mocks base method.
   227  func (m *MockRanges) GetAllBytes() []byte {
   228  	m.ctrl.T.Helper()
   229  	ret := m.ctrl.Call(m, "GetAllBytes")
   230  	ret0, _ := ret[0].([]byte)
   231  	return ret0
   232  }
   233  
   234  // GetAllBytes indicates an expected call of GetAllBytes.
   235  func (mr *MockRangesMockRecorder) GetAllBytes() *gomock.Call {
   236  	mr.mock.ctrl.T.Helper()
   237  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAllBytes", reflect.TypeOf((*MockRanges)(nil).GetAllBytes))
   238  }
   239  
   240  // GetBytes mocks base method.
   241  func (m *MockRanges) GetBytes(i int) []byte {
   242  	m.ctrl.T.Helper()
   243  	ret := m.ctrl.Call(m, "GetBytes", i)
   244  	ret0, _ := ret[0].([]byte)
   245  	return ret0
   246  }
   247  
   248  // GetBytes indicates an expected call of GetBytes.
   249  func (mr *MockRangesMockRecorder) GetBytes(i interface{}) *gomock.Call {
   250  	mr.mock.ctrl.T.Helper()
   251  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBytes", reflect.TypeOf((*MockRanges)(nil).GetBytes), i)
   252  }
   253  
   254  // Len mocks base method.
   255  func (m *MockRanges) Len() int {
   256  	m.ctrl.T.Helper()
   257  	ret := m.ctrl.Call(m, "Len")
   258  	ret0, _ := ret[0].(int)
   259  	return ret0
   260  }
   261  
   262  // Len indicates an expected call of Len.
   263  func (mr *MockRangesMockRecorder) Len() *gomock.Call {
   264  	mr.mock.ctrl.T.Helper()
   265  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Len", reflect.TypeOf((*MockRanges)(nil).Len))
   266  }
   267  
   268  // SetBytes mocks base method.
   269  func (m *MockRanges) SetBytes(arg0 []byte) {
   270  	m.ctrl.T.Helper()
   271  	m.ctrl.Call(m, "SetBytes", arg0)
   272  }
   273  
   274  // SetBytes indicates an expected call of SetBytes.
   275  func (mr *MockRangesMockRecorder) SetBytes(arg0 interface{}) *gomock.Call {
   276  	mr.mock.ctrl.T.Helper()
   277  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetBytes", reflect.TypeOf((*MockRanges)(nil).SetBytes), arg0)
   278  }
   279  
   280  // Size mocks base method.
   281  func (m *MockRanges) Size() int {
   282  	m.ctrl.T.Helper()
   283  	ret := m.ctrl.Call(m, "Size")
   284  	ret0, _ := ret[0].(int)
   285  	return ret0
   286  }
   287  
   288  // Size indicates an expected call of Size.
   289  func (mr *MockRangesMockRecorder) Size() *gomock.Call {
   290  	mr.mock.ctrl.T.Helper()
   291  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Size", reflect.TypeOf((*MockRanges)(nil).Size))
   292  }
   293  
   294  // Slice mocks base method.
   295  func (m *MockRanges) Slice(i, j int) []byte {
   296  	m.ctrl.T.Helper()
   297  	ret := m.ctrl.Call(m, "Slice", i, j)
   298  	ret0, _ := ret[0].([]byte)
   299  	return ret0
   300  }
   301  
   302  // Slice indicates an expected call of Slice.
   303  func (mr *MockRangesMockRecorder) Slice(i, j interface{}) *gomock.Call {
   304  	mr.mock.ctrl.T.Helper()
   305  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Slice", reflect.TypeOf((*MockRanges)(nil).Slice), i, j)
   306  }
   307  
   308  // MockRelation is a mock of Relation interface.
   309  type MockRelation struct {
   310  	ctrl     *gomock.Controller
   311  	recorder *MockRelationMockRecorder
   312  }
   313  
   314  // MockRelationMockRecorder is the mock recorder for MockRelation.
   315  type MockRelationMockRecorder struct {
   316  	mock *MockRelation
   317  }
   318  
   319  // NewMockRelation creates a new mock instance.
   320  func NewMockRelation(ctrl *gomock.Controller) *MockRelation {
   321  	mock := &MockRelation{ctrl: ctrl}
   322  	mock.recorder = &MockRelationMockRecorder{mock}
   323  	return mock
   324  }
   325  
   326  // EXPECT returns an object that allows the caller to indicate expected use.
   327  func (m *MockRelation) EXPECT() *MockRelationMockRecorder {
   328  	return m.recorder
   329  }
   330  
   331  // AddTableDef mocks base method.
   332  func (m *MockRelation) AddTableDef(arg0 context.Context, arg1 engine.TableDef) error {
   333  	m.ctrl.T.Helper()
   334  	ret := m.ctrl.Call(m, "AddTableDef", arg0, arg1)
   335  	ret0, _ := ret[0].(error)
   336  	return ret0
   337  }
   338  
   339  // AddTableDef indicates an expected call of AddTableDef.
   340  func (mr *MockRelationMockRecorder) AddTableDef(arg0, arg1 interface{}) *gomock.Call {
   341  	mr.mock.ctrl.T.Helper()
   342  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddTableDef", reflect.TypeOf((*MockRelation)(nil).AddTableDef), arg0, arg1)
   343  }
   344  
   345  // AlterTable mocks base method.
   346  func (m *MockRelation) AlterTable(ctx context.Context, c *engine.ConstraintDef, constraint [][]byte) error {
   347  	m.ctrl.T.Helper()
   348  	ret := m.ctrl.Call(m, "AlterTable", ctx, c, constraint)
   349  	ret0, _ := ret[0].(error)
   350  	return ret0
   351  }
   352  
   353  // AlterTable indicates an expected call of AlterTable.
   354  func (mr *MockRelationMockRecorder) AlterTable(ctx, c, constraint interface{}) *gomock.Call {
   355  	mr.mock.ctrl.T.Helper()
   356  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AlterTable", reflect.TypeOf((*MockRelation)(nil).AlterTable), ctx, c, constraint)
   357  }
   358  
   359  // ApproxObjectsNum mocks base method.
   360  func (m *MockRelation) ApproxObjectsNum(ctx context.Context) int {
   361  	m.ctrl.T.Helper()
   362  	ret := m.ctrl.Call(m, "ApproxObjectsNum", ctx)
   363  	ret0, _ := ret[0].(int)
   364  	return ret0
   365  }
   366  
   367  // ApproxObjectsNum indicates an expected call of ApproxObjectsNum.
   368  func (mr *MockRelationMockRecorder) ApproxObjectsNum(ctx interface{}) *gomock.Call {
   369  	mr.mock.ctrl.T.Helper()
   370  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApproxObjectsNum", reflect.TypeOf((*MockRelation)(nil).ApproxObjectsNum), ctx)
   371  }
   372  
   373  // CopyTableDef mocks base method.
   374  func (m *MockRelation) CopyTableDef(arg0 context.Context) *plan.TableDef {
   375  	m.ctrl.T.Helper()
   376  	ret := m.ctrl.Call(m, "CopyTableDef", arg0)
   377  	ret0, _ := ret[0].(*plan.TableDef)
   378  	return ret0
   379  }
   380  
   381  // CopyTableDef indicates an expected call of CopyTableDef.
   382  func (mr *MockRelationMockRecorder) CopyTableDef(arg0 interface{}) *gomock.Call {
   383  	mr.mock.ctrl.T.Helper()
   384  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CopyTableDef", reflect.TypeOf((*MockRelation)(nil).CopyTableDef), arg0)
   385  }
   386  
   387  // DelTableDef mocks base method.
   388  func (m *MockRelation) DelTableDef(arg0 context.Context, arg1 engine.TableDef) error {
   389  	m.ctrl.T.Helper()
   390  	ret := m.ctrl.Call(m, "DelTableDef", arg0, arg1)
   391  	ret0, _ := ret[0].(error)
   392  	return ret0
   393  }
   394  
   395  // DelTableDef indicates an expected call of DelTableDef.
   396  func (mr *MockRelationMockRecorder) DelTableDef(arg0, arg1 interface{}) *gomock.Call {
   397  	mr.mock.ctrl.T.Helper()
   398  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DelTableDef", reflect.TypeOf((*MockRelation)(nil).DelTableDef), arg0, arg1)
   399  }
   400  
   401  // Delete mocks base method.
   402  func (m *MockRelation) Delete(arg0 context.Context, arg1 *batch.Batch, arg2 string) error {
   403  	m.ctrl.T.Helper()
   404  	ret := m.ctrl.Call(m, "Delete", arg0, arg1, arg2)
   405  	ret0, _ := ret[0].(error)
   406  	return ret0
   407  }
   408  
   409  // Delete indicates an expected call of Delete.
   410  func (mr *MockRelationMockRecorder) Delete(arg0, arg1, arg2 interface{}) *gomock.Call {
   411  	mr.mock.ctrl.T.Helper()
   412  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockRelation)(nil).Delete), arg0, arg1, arg2)
   413  }
   414  
   415  // GetColumMetadataScanInfo mocks base method.
   416  func (m *MockRelation) GetColumMetadataScanInfo(ctx context.Context, name string) ([]*plan.MetadataScanInfo, error) {
   417  	m.ctrl.T.Helper()
   418  	ret := m.ctrl.Call(m, "GetColumMetadataScanInfo", ctx, name)
   419  	ret0, _ := ret[0].([]*plan.MetadataScanInfo)
   420  	ret1, _ := ret[1].(error)
   421  	return ret0, ret1
   422  }
   423  
   424  // GetColumMetadataScanInfo indicates an expected call of GetColumMetadataScanInfo.
   425  func (mr *MockRelationMockRecorder) GetColumMetadataScanInfo(ctx, name interface{}) *gomock.Call {
   426  	mr.mock.ctrl.T.Helper()
   427  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetColumMetadataScanInfo", reflect.TypeOf((*MockRelation)(nil).GetColumMetadataScanInfo), ctx, name)
   428  }
   429  
   430  // GetDBID mocks base method.
   431  func (m *MockRelation) GetDBID(arg0 context.Context) uint64 {
   432  	m.ctrl.T.Helper()
   433  	ret := m.ctrl.Call(m, "GetDBID", arg0)
   434  	ret0, _ := ret[0].(uint64)
   435  	return ret0
   436  }
   437  
   438  // GetDBID indicates an expected call of GetDBID.
   439  func (mr *MockRelationMockRecorder) GetDBID(arg0 interface{}) *gomock.Call {
   440  	mr.mock.ctrl.T.Helper()
   441  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDBID", reflect.TypeOf((*MockRelation)(nil).GetDBID), arg0)
   442  }
   443  
   444  // GetEngineType mocks base method.
   445  func (m *MockRelation) GetEngineType() engine.EngineType {
   446  	m.ctrl.T.Helper()
   447  	ret := m.ctrl.Call(m, "GetEngineType")
   448  	ret0, _ := ret[0].(engine.EngineType)
   449  	return ret0
   450  }
   451  
   452  // GetEngineType indicates an expected call of GetEngineType.
   453  func (mr *MockRelationMockRecorder) GetEngineType() *gomock.Call {
   454  	mr.mock.ctrl.T.Helper()
   455  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetEngineType", reflect.TypeOf((*MockRelation)(nil).GetEngineType))
   456  }
   457  
   458  // GetHideKeys mocks base method.
   459  func (m *MockRelation) GetHideKeys(arg0 context.Context) ([]*engine.Attribute, error) {
   460  	m.ctrl.T.Helper()
   461  	ret := m.ctrl.Call(m, "GetHideKeys", arg0)
   462  	ret0, _ := ret[0].([]*engine.Attribute)
   463  	ret1, _ := ret[1].(error)
   464  	return ret0, ret1
   465  }
   466  
   467  // GetHideKeys indicates an expected call of GetHideKeys.
   468  func (mr *MockRelationMockRecorder) GetHideKeys(arg0 interface{}) *gomock.Call {
   469  	mr.mock.ctrl.T.Helper()
   470  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetHideKeys", reflect.TypeOf((*MockRelation)(nil).GetHideKeys), arg0)
   471  }
   472  
   473  // GetPrimaryKeys mocks base method.
   474  func (m *MockRelation) GetPrimaryKeys(arg0 context.Context) ([]*engine.Attribute, error) {
   475  	m.ctrl.T.Helper()
   476  	ret := m.ctrl.Call(m, "GetPrimaryKeys", arg0)
   477  	ret0, _ := ret[0].([]*engine.Attribute)
   478  	ret1, _ := ret[1].(error)
   479  	return ret0, ret1
   480  }
   481  
   482  // GetPrimaryKeys indicates an expected call of GetPrimaryKeys.
   483  func (mr *MockRelationMockRecorder) GetPrimaryKeys(arg0 interface{}) *gomock.Call {
   484  	mr.mock.ctrl.T.Helper()
   485  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPrimaryKeys", reflect.TypeOf((*MockRelation)(nil).GetPrimaryKeys), arg0)
   486  }
   487  
   488  // GetTableDef mocks base method.
   489  func (m *MockRelation) GetTableDef(arg0 context.Context) *plan.TableDef {
   490  	m.ctrl.T.Helper()
   491  	ret := m.ctrl.Call(m, "GetTableDef", arg0)
   492  	ret0, _ := ret[0].(*plan.TableDef)
   493  	return ret0
   494  }
   495  
   496  // GetTableDef indicates an expected call of GetTableDef.
   497  func (mr *MockRelationMockRecorder) GetTableDef(arg0 interface{}) *gomock.Call {
   498  	mr.mock.ctrl.T.Helper()
   499  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTableDef", reflect.TypeOf((*MockRelation)(nil).GetTableDef), arg0)
   500  }
   501  
   502  // GetTableID mocks base method.
   503  func (m *MockRelation) GetTableID(arg0 context.Context) uint64 {
   504  	m.ctrl.T.Helper()
   505  	ret := m.ctrl.Call(m, "GetTableID", arg0)
   506  	ret0, _ := ret[0].(uint64)
   507  	return ret0
   508  }
   509  
   510  // GetTableID indicates an expected call of GetTableID.
   511  func (mr *MockRelationMockRecorder) GetTableID(arg0 interface{}) *gomock.Call {
   512  	mr.mock.ctrl.T.Helper()
   513  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTableID", reflect.TypeOf((*MockRelation)(nil).GetTableID), arg0)
   514  }
   515  
   516  // GetTableName mocks base method.
   517  func (m *MockRelation) GetTableName() string {
   518  	m.ctrl.T.Helper()
   519  	ret := m.ctrl.Call(m, "GetTableName")
   520  	ret0, _ := ret[0].(string)
   521  	return ret0
   522  }
   523  
   524  // GetTableName indicates an expected call of GetTableName.
   525  func (mr *MockRelationMockRecorder) GetTableName() *gomock.Call {
   526  	mr.mock.ctrl.T.Helper()
   527  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTableName", reflect.TypeOf((*MockRelation)(nil).GetTableName))
   528  }
   529  
   530  // MaxAndMinValues mocks base method.
   531  func (m *MockRelation) MaxAndMinValues(ctx context.Context) ([][2]any, []uint8, error) {
   532  	m.ctrl.T.Helper()
   533  	ret := m.ctrl.Call(m, "MaxAndMinValues", ctx)
   534  	ret0, _ := ret[0].([][2]any)
   535  	ret1, _ := ret[1].([]uint8)
   536  	ret2, _ := ret[2].(error)
   537  	return ret0, ret1, ret2
   538  }
   539  
   540  // MaxAndMinValues indicates an expected call of MaxAndMinValues.
   541  func (mr *MockRelationMockRecorder) MaxAndMinValues(ctx interface{}) *gomock.Call {
   542  	mr.mock.ctrl.T.Helper()
   543  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MaxAndMinValues", reflect.TypeOf((*MockRelation)(nil).MaxAndMinValues), ctx)
   544  }
   545  
   546  // MergeObjects mocks base method.
   547  func (m *MockRelation) MergeObjects(ctx context.Context, objstats []objectio.ObjectStats, policyName string, targetObjSize uint32) (*api.MergeCommitEntry, error) {
   548  	m.ctrl.T.Helper()
   549  	ret := m.ctrl.Call(m, "MergeObjects", ctx, objstats, policyName, targetObjSize)
   550  	ret0, _ := ret[0].(*api.MergeCommitEntry)
   551  	ret1, _ := ret[1].(error)
   552  	return ret0, ret1
   553  }
   554  
   555  // MergeObjects indicates an expected call of MergeObjects.
   556  func (mr *MockRelationMockRecorder) MergeObjects(ctx, objstats, policyName, targetObjSize interface{}) *gomock.Call {
   557  	mr.mock.ctrl.T.Helper()
   558  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MergeObjects", reflect.TypeOf((*MockRelation)(nil).MergeObjects), ctx, objstats, policyName, targetObjSize)
   559  }
   560  
   561  // NewReader mocks base method.
   562  func (m *MockRelation) NewReader(arg0 context.Context, arg1 int, arg2 *plan.Expr, arg3 []byte, arg4 bool) ([]engine.Reader, error) {
   563  	m.ctrl.T.Helper()
   564  	ret := m.ctrl.Call(m, "NewReader", arg0, arg1, arg2, arg3, arg4)
   565  	ret0, _ := ret[0].([]engine.Reader)
   566  	ret1, _ := ret[1].(error)
   567  	return ret0, ret1
   568  }
   569  
   570  // NewReader indicates an expected call of NewReader.
   571  func (mr *MockRelationMockRecorder) NewReader(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call {
   572  	mr.mock.ctrl.T.Helper()
   573  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewReader", reflect.TypeOf((*MockRelation)(nil).NewReader), arg0, arg1, arg2, arg3, arg4)
   574  }
   575  
   576  // PrimaryKeysMayBeModified mocks base method.
   577  func (m *MockRelation) PrimaryKeysMayBeModified(ctx context.Context, from, to types.TS, keyVector *vector.Vector) (bool, error) {
   578  	m.ctrl.T.Helper()
   579  	ret := m.ctrl.Call(m, "PrimaryKeysMayBeModified", ctx, from, to, keyVector)
   580  	ret0, _ := ret[0].(bool)
   581  	ret1, _ := ret[1].(error)
   582  	return ret0, ret1
   583  }
   584  
   585  // PrimaryKeysMayBeModified indicates an expected call of PrimaryKeysMayBeModified.
   586  func (mr *MockRelationMockRecorder) PrimaryKeysMayBeModified(ctx, from, to, keyVector interface{}) *gomock.Call {
   587  	mr.mock.ctrl.T.Helper()
   588  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PrimaryKeysMayBeModified", reflect.TypeOf((*MockRelation)(nil).PrimaryKeysMayBeModified), ctx, from, to, keyVector)
   589  }
   590  
   591  // Ranges mocks base method.
   592  func (m *MockRelation) Ranges(arg0 context.Context, arg1 []*plan.Expr) (engine.Ranges, error) {
   593  	m.ctrl.T.Helper()
   594  	ret := m.ctrl.Call(m, "Ranges", arg0, arg1)
   595  	ret0, _ := ret[0].(engine.Ranges)
   596  	ret1, _ := ret[1].(error)
   597  	return ret0, ret1
   598  }
   599  
   600  // Ranges indicates an expected call of Ranges.
   601  func (mr *MockRelationMockRecorder) Ranges(arg0, arg1 interface{}) *gomock.Call {
   602  	mr.mock.ctrl.T.Helper()
   603  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Ranges", reflect.TypeOf((*MockRelation)(nil).Ranges), arg0, arg1)
   604  }
   605  
   606  // Rows mocks base method.
   607  func (m *MockRelation) Rows(ctx context.Context) (uint64, error) {
   608  	m.ctrl.T.Helper()
   609  	ret := m.ctrl.Call(m, "Rows", ctx)
   610  	ret0, _ := ret[0].(uint64)
   611  	ret1, _ := ret[1].(error)
   612  	return ret0, ret1
   613  }
   614  
   615  // Rows indicates an expected call of Rows.
   616  func (mr *MockRelationMockRecorder) Rows(ctx interface{}) *gomock.Call {
   617  	mr.mock.ctrl.T.Helper()
   618  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Rows", reflect.TypeOf((*MockRelation)(nil).Rows), ctx)
   619  }
   620  
   621  // Size mocks base method.
   622  func (m *MockRelation) Size(ctx context.Context, columnName string) (uint64, error) {
   623  	m.ctrl.T.Helper()
   624  	ret := m.ctrl.Call(m, "Size", ctx, columnName)
   625  	ret0, _ := ret[0].(uint64)
   626  	ret1, _ := ret[1].(error)
   627  	return ret0, ret1
   628  }
   629  
   630  // Size indicates an expected call of Size.
   631  func (mr *MockRelationMockRecorder) Size(ctx, columnName interface{}) *gomock.Call {
   632  	mr.mock.ctrl.T.Helper()
   633  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Size", reflect.TypeOf((*MockRelation)(nil).Size), ctx, columnName)
   634  }
   635  
   636  // Stats mocks base method.
   637  func (m *MockRelation) Stats(ctx context.Context, sync bool) (*statsinfo.StatsInfo, error) {
   638  	m.ctrl.T.Helper()
   639  	ret := m.ctrl.Call(m, "Stats", ctx, sync)
   640  	ret0, _ := ret[0].(*statsinfo.StatsInfo)
   641  	ret1, _ := ret[1].(error)
   642  	return ret0, ret1
   643  }
   644  
   645  // Stats indicates an expected call of Stats.
   646  func (mr *MockRelationMockRecorder) Stats(ctx, sync interface{}) *gomock.Call {
   647  	mr.mock.ctrl.T.Helper()
   648  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Stats", reflect.TypeOf((*MockRelation)(nil).Stats), ctx, sync)
   649  }
   650  
   651  // TableColumns mocks base method.
   652  func (m *MockRelation) TableColumns(ctx context.Context) ([]*engine.Attribute, error) {
   653  	m.ctrl.T.Helper()
   654  	ret := m.ctrl.Call(m, "TableColumns", ctx)
   655  	ret0, _ := ret[0].([]*engine.Attribute)
   656  	ret1, _ := ret[1].(error)
   657  	return ret0, ret1
   658  }
   659  
   660  // TableColumns indicates an expected call of TableColumns.
   661  func (mr *MockRelationMockRecorder) TableColumns(ctx interface{}) *gomock.Call {
   662  	mr.mock.ctrl.T.Helper()
   663  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TableColumns", reflect.TypeOf((*MockRelation)(nil).TableColumns), ctx)
   664  }
   665  
   666  // TableDefs mocks base method.
   667  func (m *MockRelation) TableDefs(arg0 context.Context) ([]engine.TableDef, error) {
   668  	m.ctrl.T.Helper()
   669  	ret := m.ctrl.Call(m, "TableDefs", arg0)
   670  	ret0, _ := ret[0].([]engine.TableDef)
   671  	ret1, _ := ret[1].(error)
   672  	return ret0, ret1
   673  }
   674  
   675  // TableDefs indicates an expected call of TableDefs.
   676  func (mr *MockRelationMockRecorder) TableDefs(arg0 interface{}) *gomock.Call {
   677  	mr.mock.ctrl.T.Helper()
   678  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TableDefs", reflect.TypeOf((*MockRelation)(nil).TableDefs), arg0)
   679  }
   680  
   681  // TableRenameInTxn mocks base method.
   682  func (m *MockRelation) TableRenameInTxn(ctx context.Context, constraint [][]byte) error {
   683  	m.ctrl.T.Helper()
   684  	ret := m.ctrl.Call(m, "TableRenameInTxn", ctx, constraint)
   685  	ret0, _ := ret[0].(error)
   686  	return ret0
   687  }
   688  
   689  // TableRenameInTxn indicates an expected call of TableRenameInTxn.
   690  func (mr *MockRelationMockRecorder) TableRenameInTxn(ctx, constraint interface{}) *gomock.Call {
   691  	mr.mock.ctrl.T.Helper()
   692  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TableRenameInTxn", reflect.TypeOf((*MockRelation)(nil).TableRenameInTxn), ctx, constraint)
   693  }
   694  
   695  // Update mocks base method.
   696  func (m *MockRelation) Update(arg0 context.Context, arg1 *batch.Batch) error {
   697  	m.ctrl.T.Helper()
   698  	ret := m.ctrl.Call(m, "Update", arg0, arg1)
   699  	ret0, _ := ret[0].(error)
   700  	return ret0
   701  }
   702  
   703  // Update indicates an expected call of Update.
   704  func (mr *MockRelationMockRecorder) Update(arg0, arg1 interface{}) *gomock.Call {
   705  	mr.mock.ctrl.T.Helper()
   706  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockRelation)(nil).Update), arg0, arg1)
   707  }
   708  
   709  // UpdateConstraint mocks base method.
   710  func (m *MockRelation) UpdateConstraint(arg0 context.Context, arg1 *engine.ConstraintDef) error {
   711  	m.ctrl.T.Helper()
   712  	ret := m.ctrl.Call(m, "UpdateConstraint", arg0, arg1)
   713  	ret0, _ := ret[0].(error)
   714  	return ret0
   715  }
   716  
   717  // UpdateConstraint indicates an expected call of UpdateConstraint.
   718  func (mr *MockRelationMockRecorder) UpdateConstraint(arg0, arg1 interface{}) *gomock.Call {
   719  	mr.mock.ctrl.T.Helper()
   720  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateConstraint", reflect.TypeOf((*MockRelation)(nil).UpdateConstraint), arg0, arg1)
   721  }
   722  
   723  // Write mocks base method.
   724  func (m *MockRelation) Write(arg0 context.Context, arg1 *batch.Batch) error {
   725  	m.ctrl.T.Helper()
   726  	ret := m.ctrl.Call(m, "Write", arg0, arg1)
   727  	ret0, _ := ret[0].(error)
   728  	return ret0
   729  }
   730  
   731  // Write indicates an expected call of Write.
   732  func (mr *MockRelationMockRecorder) Write(arg0, arg1 interface{}) *gomock.Call {
   733  	mr.mock.ctrl.T.Helper()
   734  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Write", reflect.TypeOf((*MockRelation)(nil).Write), arg0, arg1)
   735  }
   736  
   737  // MockReader is a mock of Reader interface.
   738  type MockReader struct {
   739  	ctrl     *gomock.Controller
   740  	recorder *MockReaderMockRecorder
   741  }
   742  
   743  // MockReaderMockRecorder is the mock recorder for MockReader.
   744  type MockReaderMockRecorder struct {
   745  	mock *MockReader
   746  }
   747  
   748  // NewMockReader creates a new mock instance.
   749  func NewMockReader(ctrl *gomock.Controller) *MockReader {
   750  	mock := &MockReader{ctrl: ctrl}
   751  	mock.recorder = &MockReaderMockRecorder{mock}
   752  	return mock
   753  }
   754  
   755  // EXPECT returns an object that allows the caller to indicate expected use.
   756  func (m *MockReader) EXPECT() *MockReaderMockRecorder {
   757  	return m.recorder
   758  }
   759  
   760  // Close mocks base method.
   761  func (m *MockReader) Close() error {
   762  	m.ctrl.T.Helper()
   763  	ret := m.ctrl.Call(m, "Close")
   764  	ret0, _ := ret[0].(error)
   765  	return ret0
   766  }
   767  
   768  // Close indicates an expected call of Close.
   769  func (mr *MockReaderMockRecorder) Close() *gomock.Call {
   770  	mr.mock.ctrl.T.Helper()
   771  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockReader)(nil).Close))
   772  }
   773  
   774  // GetOrderBy mocks base method.
   775  func (m *MockReader) GetOrderBy() []*plan.OrderBySpec {
   776  	m.ctrl.T.Helper()
   777  	ret := m.ctrl.Call(m, "GetOrderBy")
   778  	ret0, _ := ret[0].([]*plan.OrderBySpec)
   779  	return ret0
   780  }
   781  
   782  // GetOrderBy indicates an expected call of GetOrderBy.
   783  func (mr *MockReaderMockRecorder) GetOrderBy() *gomock.Call {
   784  	mr.mock.ctrl.T.Helper()
   785  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOrderBy", reflect.TypeOf((*MockReader)(nil).GetOrderBy))
   786  }
   787  
   788  // Read mocks base method.
   789  func (m *MockReader) Read(arg0 context.Context, arg1 []string, arg2 *plan.Expr, arg3 *mpool.MPool, arg4 engine.VectorPool) (*batch.Batch, error) {
   790  	m.ctrl.T.Helper()
   791  	ret := m.ctrl.Call(m, "Read", arg0, arg1, arg2, arg3, arg4)
   792  	ret0, _ := ret[0].(*batch.Batch)
   793  	ret1, _ := ret[1].(error)
   794  	return ret0, ret1
   795  }
   796  
   797  // Read indicates an expected call of Read.
   798  func (mr *MockReaderMockRecorder) Read(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call {
   799  	mr.mock.ctrl.T.Helper()
   800  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockReader)(nil).Read), arg0, arg1, arg2, arg3, arg4)
   801  }
   802  
   803  // SetFilterZM mocks base method.
   804  func (m *MockReader) SetFilterZM(arg0 objectio.ZoneMap) {
   805  	m.ctrl.T.Helper()
   806  	m.ctrl.Call(m, "SetFilterZM", arg0)
   807  }
   808  
   809  // SetFilterZM indicates an expected call of SetFilterZM.
   810  func (mr *MockReaderMockRecorder) SetFilterZM(arg0 interface{}) *gomock.Call {
   811  	mr.mock.ctrl.T.Helper()
   812  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetFilterZM", reflect.TypeOf((*MockReader)(nil).SetFilterZM), arg0)
   813  }
   814  
   815  // SetOrderBy mocks base method.
   816  func (m *MockReader) SetOrderBy(arg0 []*plan.OrderBySpec) {
   817  	m.ctrl.T.Helper()
   818  	m.ctrl.Call(m, "SetOrderBy", arg0)
   819  }
   820  
   821  // SetOrderBy indicates an expected call of SetOrderBy.
   822  func (mr *MockReaderMockRecorder) SetOrderBy(arg0 interface{}) *gomock.Call {
   823  	mr.mock.ctrl.T.Helper()
   824  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetOrderBy", reflect.TypeOf((*MockReader)(nil).SetOrderBy), arg0)
   825  }
   826  
   827  // MockDatabase is a mock of Database interface.
   828  type MockDatabase struct {
   829  	ctrl     *gomock.Controller
   830  	recorder *MockDatabaseMockRecorder
   831  }
   832  
   833  // MockDatabaseMockRecorder is the mock recorder for MockDatabase.
   834  type MockDatabaseMockRecorder struct {
   835  	mock *MockDatabase
   836  }
   837  
   838  // NewMockDatabase creates a new mock instance.
   839  func NewMockDatabase(ctrl *gomock.Controller) *MockDatabase {
   840  	mock := &MockDatabase{ctrl: ctrl}
   841  	mock.recorder = &MockDatabaseMockRecorder{mock}
   842  	return mock
   843  }
   844  
   845  // EXPECT returns an object that allows the caller to indicate expected use.
   846  func (m *MockDatabase) EXPECT() *MockDatabaseMockRecorder {
   847  	return m.recorder
   848  }
   849  
   850  // Create mocks base method.
   851  func (m *MockDatabase) Create(arg0 context.Context, arg1 string, arg2 []engine.TableDef) error {
   852  	m.ctrl.T.Helper()
   853  	ret := m.ctrl.Call(m, "Create", arg0, arg1, arg2)
   854  	ret0, _ := ret[0].(error)
   855  	return ret0
   856  }
   857  
   858  // Create indicates an expected call of Create.
   859  func (mr *MockDatabaseMockRecorder) Create(arg0, arg1, arg2 interface{}) *gomock.Call {
   860  	mr.mock.ctrl.T.Helper()
   861  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockDatabase)(nil).Create), arg0, arg1, arg2)
   862  }
   863  
   864  // Delete mocks base method.
   865  func (m *MockDatabase) Delete(arg0 context.Context, arg1 string) error {
   866  	m.ctrl.T.Helper()
   867  	ret := m.ctrl.Call(m, "Delete", arg0, arg1)
   868  	ret0, _ := ret[0].(error)
   869  	return ret0
   870  }
   871  
   872  // Delete indicates an expected call of Delete.
   873  func (mr *MockDatabaseMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call {
   874  	mr.mock.ctrl.T.Helper()
   875  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockDatabase)(nil).Delete), arg0, arg1)
   876  }
   877  
   878  // GetCreateSql mocks base method.
   879  func (m *MockDatabase) GetCreateSql(arg0 context.Context) string {
   880  	m.ctrl.T.Helper()
   881  	ret := m.ctrl.Call(m, "GetCreateSql", arg0)
   882  	ret0, _ := ret[0].(string)
   883  	return ret0
   884  }
   885  
   886  // GetCreateSql indicates an expected call of GetCreateSql.
   887  func (mr *MockDatabaseMockRecorder) GetCreateSql(arg0 interface{}) *gomock.Call {
   888  	mr.mock.ctrl.T.Helper()
   889  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCreateSql", reflect.TypeOf((*MockDatabase)(nil).GetCreateSql), arg0)
   890  }
   891  
   892  // GetDatabaseId mocks base method.
   893  func (m *MockDatabase) GetDatabaseId(arg0 context.Context) string {
   894  	m.ctrl.T.Helper()
   895  	ret := m.ctrl.Call(m, "GetDatabaseId", arg0)
   896  	ret0, _ := ret[0].(string)
   897  	return ret0
   898  }
   899  
   900  // GetDatabaseId indicates an expected call of GetDatabaseId.
   901  func (mr *MockDatabaseMockRecorder) GetDatabaseId(arg0 interface{}) *gomock.Call {
   902  	mr.mock.ctrl.T.Helper()
   903  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDatabaseId", reflect.TypeOf((*MockDatabase)(nil).GetDatabaseId), arg0)
   904  }
   905  
   906  // IsSubscription mocks base method.
   907  func (m *MockDatabase) IsSubscription(arg0 context.Context) bool {
   908  	m.ctrl.T.Helper()
   909  	ret := m.ctrl.Call(m, "IsSubscription", arg0)
   910  	ret0, _ := ret[0].(bool)
   911  	return ret0
   912  }
   913  
   914  // IsSubscription indicates an expected call of IsSubscription.
   915  func (mr *MockDatabaseMockRecorder) IsSubscription(arg0 interface{}) *gomock.Call {
   916  	mr.mock.ctrl.T.Helper()
   917  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsSubscription", reflect.TypeOf((*MockDatabase)(nil).IsSubscription), arg0)
   918  }
   919  
   920  // Relation mocks base method.
   921  func (m *MockDatabase) Relation(arg0 context.Context, arg1 string, arg2 any) (engine.Relation, error) {
   922  	m.ctrl.T.Helper()
   923  	ret := m.ctrl.Call(m, "Relation", arg0, arg1, arg2)
   924  	ret0, _ := ret[0].(engine.Relation)
   925  	ret1, _ := ret[1].(error)
   926  	return ret0, ret1
   927  }
   928  
   929  // Relation indicates an expected call of Relation.
   930  func (mr *MockDatabaseMockRecorder) Relation(arg0, arg1, arg2 interface{}) *gomock.Call {
   931  	mr.mock.ctrl.T.Helper()
   932  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Relation", reflect.TypeOf((*MockDatabase)(nil).Relation), arg0, arg1, arg2)
   933  }
   934  
   935  // Relations mocks base method.
   936  func (m *MockDatabase) Relations(arg0 context.Context) ([]string, error) {
   937  	m.ctrl.T.Helper()
   938  	ret := m.ctrl.Call(m, "Relations", arg0)
   939  	ret0, _ := ret[0].([]string)
   940  	ret1, _ := ret[1].(error)
   941  	return ret0, ret1
   942  }
   943  
   944  // Relations indicates an expected call of Relations.
   945  func (mr *MockDatabaseMockRecorder) Relations(arg0 interface{}) *gomock.Call {
   946  	mr.mock.ctrl.T.Helper()
   947  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Relations", reflect.TypeOf((*MockDatabase)(nil).Relations), arg0)
   948  }
   949  
   950  // Truncate mocks base method.
   951  func (m *MockDatabase) Truncate(arg0 context.Context, arg1 string) (uint64, error) {
   952  	m.ctrl.T.Helper()
   953  	ret := m.ctrl.Call(m, "Truncate", arg0, arg1)
   954  	ret0, _ := ret[0].(uint64)
   955  	ret1, _ := ret[1].(error)
   956  	return ret0, ret1
   957  }
   958  
   959  // Truncate indicates an expected call of Truncate.
   960  func (mr *MockDatabaseMockRecorder) Truncate(arg0, arg1 interface{}) *gomock.Call {
   961  	mr.mock.ctrl.T.Helper()
   962  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Truncate", reflect.TypeOf((*MockDatabase)(nil).Truncate), arg0, arg1)
   963  }
   964  
   965  // MockLogtailEngine is a mock of LogtailEngine interface.
   966  type MockLogtailEngine struct {
   967  	ctrl     *gomock.Controller
   968  	recorder *MockLogtailEngineMockRecorder
   969  }
   970  
   971  // MockLogtailEngineMockRecorder is the mock recorder for MockLogtailEngine.
   972  type MockLogtailEngineMockRecorder struct {
   973  	mock *MockLogtailEngine
   974  }
   975  
   976  // NewMockLogtailEngine creates a new mock instance.
   977  func NewMockLogtailEngine(ctrl *gomock.Controller) *MockLogtailEngine {
   978  	mock := &MockLogtailEngine{ctrl: ctrl}
   979  	mock.recorder = &MockLogtailEngineMockRecorder{mock}
   980  	return mock
   981  }
   982  
   983  // EXPECT returns an object that allows the caller to indicate expected use.
   984  func (m *MockLogtailEngine) EXPECT() *MockLogtailEngineMockRecorder {
   985  	return m.recorder
   986  }
   987  
   988  // TryToSubscribeTable mocks base method.
   989  func (m *MockLogtailEngine) TryToSubscribeTable(arg0 context.Context, arg1, arg2 uint64) error {
   990  	m.ctrl.T.Helper()
   991  	ret := m.ctrl.Call(m, "TryToSubscribeTable", arg0, arg1, arg2)
   992  	ret0, _ := ret[0].(error)
   993  	return ret0
   994  }
   995  
   996  // TryToSubscribeTable indicates an expected call of TryToSubscribeTable.
   997  func (mr *MockLogtailEngineMockRecorder) TryToSubscribeTable(arg0, arg1, arg2 interface{}) *gomock.Call {
   998  	mr.mock.ctrl.T.Helper()
   999  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TryToSubscribeTable", reflect.TypeOf((*MockLogtailEngine)(nil).TryToSubscribeTable), arg0, arg1, arg2)
  1000  }
  1001  
  1002  // UnsubscribeTable mocks base method.
  1003  func (m *MockLogtailEngine) UnsubscribeTable(arg0 context.Context, arg1, arg2 uint64) error {
  1004  	m.ctrl.T.Helper()
  1005  	ret := m.ctrl.Call(m, "UnsubscribeTable", arg0, arg1, arg2)
  1006  	ret0, _ := ret[0].(error)
  1007  	return ret0
  1008  }
  1009  
  1010  // UnsubscribeTable indicates an expected call of UnsubscribeTable.
  1011  func (mr *MockLogtailEngineMockRecorder) UnsubscribeTable(arg0, arg1, arg2 interface{}) *gomock.Call {
  1012  	mr.mock.ctrl.T.Helper()
  1013  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UnsubscribeTable", reflect.TypeOf((*MockLogtailEngine)(nil).UnsubscribeTable), arg0, arg1, arg2)
  1014  }
  1015  
  1016  // MockEngine is a mock of Engine interface.
  1017  type MockEngine struct {
  1018  	ctrl     *gomock.Controller
  1019  	recorder *MockEngineMockRecorder
  1020  }
  1021  
  1022  // MockEngineMockRecorder is the mock recorder for MockEngine.
  1023  type MockEngineMockRecorder struct {
  1024  	mock *MockEngine
  1025  }
  1026  
  1027  // NewMockEngine creates a new mock instance.
  1028  func NewMockEngine(ctrl *gomock.Controller) *MockEngine {
  1029  	mock := &MockEngine{ctrl: ctrl}
  1030  	mock.recorder = &MockEngineMockRecorder{mock}
  1031  	return mock
  1032  }
  1033  
  1034  // EXPECT returns an object that allows the caller to indicate expected use.
  1035  func (m *MockEngine) EXPECT() *MockEngineMockRecorder {
  1036  	return m.recorder
  1037  }
  1038  
  1039  // AllocateIDByKey mocks base method.
  1040  func (m *MockEngine) AllocateIDByKey(ctx context.Context, key string) (uint64, error) {
  1041  	m.ctrl.T.Helper()
  1042  	ret := m.ctrl.Call(m, "AllocateIDByKey", ctx, key)
  1043  	ret0, _ := ret[0].(uint64)
  1044  	ret1, _ := ret[1].(error)
  1045  	return ret0, ret1
  1046  }
  1047  
  1048  // AllocateIDByKey indicates an expected call of AllocateIDByKey.
  1049  func (mr *MockEngineMockRecorder) AllocateIDByKey(ctx, key interface{}) *gomock.Call {
  1050  	mr.mock.ctrl.T.Helper()
  1051  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AllocateIDByKey", reflect.TypeOf((*MockEngine)(nil).AllocateIDByKey), ctx, key)
  1052  }
  1053  
  1054  // Create mocks base method.
  1055  func (m *MockEngine) Create(ctx context.Context, databaseName string, op client.TxnOperator) error {
  1056  	m.ctrl.T.Helper()
  1057  	ret := m.ctrl.Call(m, "Create", ctx, databaseName, op)
  1058  	ret0, _ := ret[0].(error)
  1059  	return ret0
  1060  }
  1061  
  1062  // Create indicates an expected call of Create.
  1063  func (mr *MockEngineMockRecorder) Create(ctx, databaseName, op interface{}) *gomock.Call {
  1064  	mr.mock.ctrl.T.Helper()
  1065  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockEngine)(nil).Create), ctx, databaseName, op)
  1066  }
  1067  
  1068  // Database mocks base method.
  1069  func (m *MockEngine) Database(ctx context.Context, databaseName string, op client.TxnOperator) (engine.Database, error) {
  1070  	m.ctrl.T.Helper()
  1071  	ret := m.ctrl.Call(m, "Database", ctx, databaseName, op)
  1072  	ret0, _ := ret[0].(engine.Database)
  1073  	ret1, _ := ret[1].(error)
  1074  	return ret0, ret1
  1075  }
  1076  
  1077  // Database indicates an expected call of Database.
  1078  func (mr *MockEngineMockRecorder) Database(ctx, databaseName, op interface{}) *gomock.Call {
  1079  	mr.mock.ctrl.T.Helper()
  1080  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Database", reflect.TypeOf((*MockEngine)(nil).Database), ctx, databaseName, op)
  1081  }
  1082  
  1083  // Databases mocks base method.
  1084  func (m *MockEngine) Databases(ctx context.Context, op client.TxnOperator) ([]string, error) {
  1085  	m.ctrl.T.Helper()
  1086  	ret := m.ctrl.Call(m, "Databases", ctx, op)
  1087  	ret0, _ := ret[0].([]string)
  1088  	ret1, _ := ret[1].(error)
  1089  	return ret0, ret1
  1090  }
  1091  
  1092  // Databases indicates an expected call of Databases.
  1093  func (mr *MockEngineMockRecorder) Databases(ctx, op interface{}) *gomock.Call {
  1094  	mr.mock.ctrl.T.Helper()
  1095  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Databases", reflect.TypeOf((*MockEngine)(nil).Databases), ctx, op)
  1096  }
  1097  
  1098  // Delete mocks base method.
  1099  func (m *MockEngine) Delete(ctx context.Context, databaseName string, op client.TxnOperator) error {
  1100  	m.ctrl.T.Helper()
  1101  	ret := m.ctrl.Call(m, "Delete", ctx, databaseName, op)
  1102  	ret0, _ := ret[0].(error)
  1103  	return ret0
  1104  }
  1105  
  1106  // Delete indicates an expected call of Delete.
  1107  func (mr *MockEngineMockRecorder) Delete(ctx, databaseName, op interface{}) *gomock.Call {
  1108  	mr.mock.ctrl.T.Helper()
  1109  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockEngine)(nil).Delete), ctx, databaseName, op)
  1110  }
  1111  
  1112  // GetNameById mocks base method.
  1113  func (m *MockEngine) GetNameById(ctx context.Context, op client.TxnOperator, tableId uint64) (string, string, error) {
  1114  	m.ctrl.T.Helper()
  1115  	ret := m.ctrl.Call(m, "GetNameById", ctx, op, tableId)
  1116  	ret0, _ := ret[0].(string)
  1117  	ret1, _ := ret[1].(string)
  1118  	ret2, _ := ret[2].(error)
  1119  	return ret0, ret1, ret2
  1120  }
  1121  
  1122  // GetNameById indicates an expected call of GetNameById.
  1123  func (mr *MockEngineMockRecorder) GetNameById(ctx, op, tableId interface{}) *gomock.Call {
  1124  	mr.mock.ctrl.T.Helper()
  1125  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetNameById", reflect.TypeOf((*MockEngine)(nil).GetNameById), ctx, op, tableId)
  1126  }
  1127  
  1128  // GetRelationById mocks base method.
  1129  func (m *MockEngine) GetRelationById(ctx context.Context, op client.TxnOperator, tableId uint64) (string, string, engine.Relation, error) {
  1130  	m.ctrl.T.Helper()
  1131  	ret := m.ctrl.Call(m, "GetRelationById", ctx, op, tableId)
  1132  	ret0, _ := ret[0].(string)
  1133  	ret1, _ := ret[1].(string)
  1134  	ret2, _ := ret[2].(engine.Relation)
  1135  	ret3, _ := ret[3].(error)
  1136  	return ret0, ret1, ret2, ret3
  1137  }
  1138  
  1139  // GetRelationById indicates an expected call of GetRelationById.
  1140  func (mr *MockEngineMockRecorder) GetRelationById(ctx, op, tableId interface{}) *gomock.Call {
  1141  	mr.mock.ctrl.T.Helper()
  1142  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRelationById", reflect.TypeOf((*MockEngine)(nil).GetRelationById), ctx, op, tableId)
  1143  }
  1144  
  1145  // Hints mocks base method.
  1146  func (m *MockEngine) Hints() engine.Hints {
  1147  	m.ctrl.T.Helper()
  1148  	ret := m.ctrl.Call(m, "Hints")
  1149  	ret0, _ := ret[0].(engine.Hints)
  1150  	return ret0
  1151  }
  1152  
  1153  // Hints indicates an expected call of Hints.
  1154  func (mr *MockEngineMockRecorder) Hints() *gomock.Call {
  1155  	mr.mock.ctrl.T.Helper()
  1156  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Hints", reflect.TypeOf((*MockEngine)(nil).Hints))
  1157  }
  1158  
  1159  // New mocks base method.
  1160  func (m *MockEngine) New(ctx context.Context, op client.TxnOperator) error {
  1161  	m.ctrl.T.Helper()
  1162  	ret := m.ctrl.Call(m, "New", ctx, op)
  1163  	ret0, _ := ret[0].(error)
  1164  	return ret0
  1165  }
  1166  
  1167  // New indicates an expected call of New.
  1168  func (mr *MockEngineMockRecorder) New(ctx, op interface{}) *gomock.Call {
  1169  	mr.mock.ctrl.T.Helper()
  1170  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "New", reflect.TypeOf((*MockEngine)(nil).New), ctx, op)
  1171  }
  1172  
  1173  // NewBlockReader mocks base method.
  1174  func (m *MockEngine) NewBlockReader(ctx context.Context, num int, ts timestamp.Timestamp, expr *plan.Expr, ranges []byte, tblDef *plan.TableDef, proc any) ([]engine.Reader, error) {
  1175  	m.ctrl.T.Helper()
  1176  	ret := m.ctrl.Call(m, "NewBlockReader", ctx, num, ts, expr, ranges, tblDef, proc)
  1177  	ret0, _ := ret[0].([]engine.Reader)
  1178  	ret1, _ := ret[1].(error)
  1179  	return ret0, ret1
  1180  }
  1181  
  1182  // NewBlockReader indicates an expected call of NewBlockReader.
  1183  func (mr *MockEngineMockRecorder) NewBlockReader(ctx, num, ts, expr, ranges, tblDef, proc interface{}) *gomock.Call {
  1184  	mr.mock.ctrl.T.Helper()
  1185  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewBlockReader", reflect.TypeOf((*MockEngine)(nil).NewBlockReader), ctx, num, ts, expr, ranges, tblDef, proc)
  1186  }
  1187  
  1188  // Nodes mocks base method.
  1189  func (m *MockEngine) Nodes(isInternal bool, tenant, username string, cnLabel map[string]string) (engine.Nodes, error) {
  1190  	m.ctrl.T.Helper()
  1191  	ret := m.ctrl.Call(m, "Nodes", isInternal, tenant, username, cnLabel)
  1192  	ret0, _ := ret[0].(engine.Nodes)
  1193  	ret1, _ := ret[1].(error)
  1194  	return ret0, ret1
  1195  }
  1196  
  1197  // Nodes indicates an expected call of Nodes.
  1198  func (mr *MockEngineMockRecorder) Nodes(isInternal, tenant, username, cnLabel interface{}) *gomock.Call {
  1199  	mr.mock.ctrl.T.Helper()
  1200  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Nodes", reflect.TypeOf((*MockEngine)(nil).Nodes), isInternal, tenant, username, cnLabel)
  1201  }
  1202  
  1203  // Stats mocks base method.
  1204  func (m *MockEngine) Stats(ctx context.Context, key statsinfo.StatsInfoKey, sync bool) *statsinfo.StatsInfo {
  1205  	m.ctrl.T.Helper()
  1206  	ret := m.ctrl.Call(m, "Stats", ctx, key, sync)
  1207  	ret0, _ := ret[0].(*statsinfo.StatsInfo)
  1208  	return ret0
  1209  }
  1210  
  1211  // Stats indicates an expected call of Stats.
  1212  func (mr *MockEngineMockRecorder) Stats(ctx, key, sync interface{}) *gomock.Call {
  1213  	mr.mock.ctrl.T.Helper()
  1214  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Stats", reflect.TypeOf((*MockEngine)(nil).Stats), ctx, key, sync)
  1215  }
  1216  
  1217  // TryToSubscribeTable mocks base method.
  1218  func (m *MockEngine) TryToSubscribeTable(arg0 context.Context, arg1, arg2 uint64) error {
  1219  	m.ctrl.T.Helper()
  1220  	ret := m.ctrl.Call(m, "TryToSubscribeTable", arg0, arg1, arg2)
  1221  	ret0, _ := ret[0].(error)
  1222  	return ret0
  1223  }
  1224  
  1225  // TryToSubscribeTable indicates an expected call of TryToSubscribeTable.
  1226  func (mr *MockEngineMockRecorder) TryToSubscribeTable(arg0, arg1, arg2 interface{}) *gomock.Call {
  1227  	mr.mock.ctrl.T.Helper()
  1228  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TryToSubscribeTable", reflect.TypeOf((*MockEngine)(nil).TryToSubscribeTable), arg0, arg1, arg2)
  1229  }
  1230  
  1231  // UnsubscribeTable mocks base method.
  1232  func (m *MockEngine) UnsubscribeTable(arg0 context.Context, arg1, arg2 uint64) error {
  1233  	m.ctrl.T.Helper()
  1234  	ret := m.ctrl.Call(m, "UnsubscribeTable", arg0, arg1, arg2)
  1235  	ret0, _ := ret[0].(error)
  1236  	return ret0
  1237  }
  1238  
  1239  // UnsubscribeTable indicates an expected call of UnsubscribeTable.
  1240  func (mr *MockEngineMockRecorder) UnsubscribeTable(arg0, arg1, arg2 interface{}) *gomock.Call {
  1241  	mr.mock.ctrl.T.Helper()
  1242  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UnsubscribeTable", reflect.TypeOf((*MockEngine)(nil).UnsubscribeTable), arg0, arg1, arg2)
  1243  }
  1244  
  1245  // MockVectorPool is a mock of VectorPool interface.
  1246  type MockVectorPool struct {
  1247  	ctrl     *gomock.Controller
  1248  	recorder *MockVectorPoolMockRecorder
  1249  }
  1250  
  1251  // MockVectorPoolMockRecorder is the mock recorder for MockVectorPool.
  1252  type MockVectorPoolMockRecorder struct {
  1253  	mock *MockVectorPool
  1254  }
  1255  
  1256  // NewMockVectorPool creates a new mock instance.
  1257  func NewMockVectorPool(ctrl *gomock.Controller) *MockVectorPool {
  1258  	mock := &MockVectorPool{ctrl: ctrl}
  1259  	mock.recorder = &MockVectorPoolMockRecorder{mock}
  1260  	return mock
  1261  }
  1262  
  1263  // EXPECT returns an object that allows the caller to indicate expected use.
  1264  func (m *MockVectorPool) EXPECT() *MockVectorPoolMockRecorder {
  1265  	return m.recorder
  1266  }
  1267  
  1268  // GetVector mocks base method.
  1269  func (m *MockVectorPool) GetVector(typ types.Type) *vector.Vector {
  1270  	m.ctrl.T.Helper()
  1271  	ret := m.ctrl.Call(m, "GetVector", typ)
  1272  	ret0, _ := ret[0].(*vector.Vector)
  1273  	return ret0
  1274  }
  1275  
  1276  // GetVector indicates an expected call of GetVector.
  1277  func (mr *MockVectorPoolMockRecorder) GetVector(typ interface{}) *gomock.Call {
  1278  	mr.mock.ctrl.T.Helper()
  1279  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetVector", reflect.TypeOf((*MockVectorPool)(nil).GetVector), typ)
  1280  }
  1281  
  1282  // PutBatch mocks base method.
  1283  func (m *MockVectorPool) PutBatch(bat *batch.Batch) {
  1284  	m.ctrl.T.Helper()
  1285  	m.ctrl.Call(m, "PutBatch", bat)
  1286  }
  1287  
  1288  // PutBatch indicates an expected call of PutBatch.
  1289  func (mr *MockVectorPoolMockRecorder) PutBatch(bat interface{}) *gomock.Call {
  1290  	mr.mock.ctrl.T.Helper()
  1291  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutBatch", reflect.TypeOf((*MockVectorPool)(nil).PutBatch), bat)
  1292  }