package
0.0.0-20181015185059-61d62eb9aa4d
Repository: https://github.com/m3db/m3ninx.git
Documentation: pkg.go.dev

# Packages

Package segment is a generated GoMock package.
No description provided by the author

# Functions

AllowPartialUpdates permits an index to continue indexing documents in a batch even if it encountered an error inserting a prior document.
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.
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.
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.