package
0.0.0-20191121140916-9649366ff4b2
Repository: https://github.com/chronosphereiox/m3.git
Documentation: pkg.go.dev
# Packages
Package segment is a generated GoMock package.
# Functions
AllowPartialUpdates permits an index to continue indexing documents in a batch even if it encountered an error inserting a prior document.
CompileRegex compiles the provided regexp into an object that can be used to query the various segment implementations.
DotStarCompiledRegex returns a regexp which matches ".*".
IsBatchPartialError returns a bool indicating whether err is a BatchPartialError or not.
NewBatch returns a Batch of documents.
NewBatchMatcher returns a new BatchMatcher.
NewBatchPartialError returns a new BatchPartialError.
NewIDDocIterator returns a new NewIDDocIterator.
NewMockDocRetriever creates a new mock instance.
NewMockReader creates a new mock instance.
# Variables
ErrDocNotFound is the error returned when there is no document for a given postings ID.
ErrDuplicateID is the error returned when a batch contains duplicate IDs.
# Structs
Batch represents a batch of documents that should be inserted into the index.
BatchError is an error that occurred for a document being inserted.
BatchPartialError indicates an error was encountered inserting some documents in a batch.
CompiledRegex is a collection of regexp compiled structs to allow amortisation of regexp construction costs.
MockDocRetriever is a mock of DocRetriever interface.
MockDocRetrieverMockRecorder is the mock recorder for MockDocRetriever.
MockReader is a mock of Reader interface.
MockReaderMockRecorder is the mock recorder for MockReader.
# Interfaces
BatchMatcher matches a `Batch`.
BatchOption is an option for a Batch.
DocRetriever returns the document associated with a postings ID.
IDDocIterator is an extented documents Iterator which can also return the postings ID of the current document.
IDIterator is a document ID iterator.
Index is a collection of searchable documents.
Readable provides a point-in-time accessor to the documents in an index.
Reader provides a point-in-time accessor to the documents in an index.
Writer is used to insert documents into an index.
# Type aliases
Readers is a slice of Reader.