search

package
v0.15.0-rc.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2020 License: Apache-2.0 Imports: 7 Imported by: 12

Documentation

Overview

Package search is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Executor

type Executor interface {
	// Execute executes a query over the Executor's snapshot.
	Execute(q Query) (doc.Iterator, error)

	// Close closes the iterator.
	Close() error
}

Executor is responsible for executing queries over a snapshot.

type MockExecutor

type MockExecutor struct {
	// contains filtered or unexported fields
}

MockExecutor is a mock of Executor interface

func NewMockExecutor

func NewMockExecutor(ctrl *gomock.Controller) *MockExecutor

NewMockExecutor creates a new mock instance

func (*MockExecutor) Close

func (m *MockExecutor) Close() error

Close mocks base method

func (*MockExecutor) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockExecutor) Execute

func (m *MockExecutor) Execute(q Query) (doc.Iterator, error)

Execute mocks base method

type MockExecutorMockRecorder

type MockExecutorMockRecorder struct {
	// contains filtered or unexported fields
}

MockExecutorMockRecorder is the mock recorder for MockExecutor

func (*MockExecutorMockRecorder) Close

func (mr *MockExecutorMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close

func (*MockExecutorMockRecorder) Execute

func (mr *MockExecutorMockRecorder) Execute(q interface{}) *gomock.Call

Execute indicates an expected call of Execute

type MockQuery

type MockQuery struct {
	// contains filtered or unexported fields
}

MockQuery is a mock of Query interface

func NewMockQuery

func NewMockQuery(ctrl *gomock.Controller) *MockQuery

NewMockQuery creates a new mock instance

func (*MockQuery) EXPECT

func (m *MockQuery) EXPECT() *MockQueryMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockQuery) Equal

func (m *MockQuery) Equal(q Query) bool

Equal mocks base method

func (*MockQuery) Searcher

func (m *MockQuery) Searcher() (Searcher, error)

Searcher mocks base method

func (*MockQuery) String

func (m *MockQuery) String() string

String mocks base method

func (*MockQuery) ToProto

func (m *MockQuery) ToProto() *querypb.Query

ToProto mocks base method

type MockQueryMockRecorder

type MockQueryMockRecorder struct {
	// contains filtered or unexported fields
}

MockQueryMockRecorder is the mock recorder for MockQuery

func (*MockQueryMockRecorder) Equal

func (mr *MockQueryMockRecorder) Equal(q interface{}) *gomock.Call

Equal indicates an expected call of Equal

func (*MockQueryMockRecorder) Searcher

func (mr *MockQueryMockRecorder) Searcher() *gomock.Call

Searcher indicates an expected call of Searcher

func (*MockQueryMockRecorder) String

func (mr *MockQueryMockRecorder) String() *gomock.Call

String indicates an expected call of String

func (*MockQueryMockRecorder) ToProto

func (mr *MockQueryMockRecorder) ToProto() *gomock.Call

ToProto indicates an expected call of ToProto

type MockSearcher

type MockSearcher struct {
	// contains filtered or unexported fields
}

MockSearcher is a mock of Searcher interface

func NewMockSearcher

func NewMockSearcher(ctrl *gomock.Controller) *MockSearcher

NewMockSearcher creates a new mock instance

func (*MockSearcher) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockSearcher) Search added in v0.4.3

func (m *MockSearcher) Search(arg0 index.Reader) (postings.List, error)

Search mocks base method

type MockSearcherMockRecorder

type MockSearcherMockRecorder struct {
	// contains filtered or unexported fields
}

MockSearcherMockRecorder is the mock recorder for MockSearcher

func (*MockSearcherMockRecorder) Search added in v0.4.3

func (mr *MockSearcherMockRecorder) Search(arg0 interface{}) *gomock.Call

Search indicates an expected call of Search

type Query

type Query interface {
	fmt.Stringer

	// Searcher returns a Searcher for executing the query.
	Searcher() (Searcher, error)

	// Equal reports whether two queries are equivalent.
	Equal(q Query) bool

	// ToProto returns the Protobuf query struct corresponding to this query.
	ToProto() *querypb.Query
}

Query is a search query for documents.

type Searcher

type Searcher interface {
	// Search executes a configured query against the given Reader.
	Search(index.Reader) (postings.List, error)
}

Searcher executes a query against a given Reader. It returns the postings lists of the documents it matches for the given segment.

type Searchers

type Searchers []Searcher

Searchers is a slice of Searcher.

Directories

Path Synopsis
Package proptest contains a collection of generative tests to validate query behaviour in a variety of situations.
Package proptest contains a collection of generative tests to validate query behaviour in a variety of situations.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL