Versions in this module Expand all Collapse all v0 v0.4.0 Aug 10, 2018 v0.3.0 Jul 16, 2018 Changes in this version + const MajorVersion + const MinorVersion + type MockSegment struct + func NewMockSegment(ctrl *gomock.Controller) *MockSegment + func (m *MockSegment) AllDocs() (index.IDDocIterator, error) + func (m *MockSegment) Close() error + func (m *MockSegment) ContainsID(arg0 []byte) (bool, error) + func (m *MockSegment) Doc(arg0 postings.ID) (doc.Document, error) + func (m *MockSegment) Docs(arg0 postings.List) (doc.Iterator, error) + func (m *MockSegment) EXPECT() *MockSegmentMockRecorder + func (m *MockSegment) Fields() ([][]byte, error) + func (m *MockSegment) MatchAll() (postings.MutableList, error) + func (m *MockSegment) MatchRegexp(arg0, arg1 []byte, arg2 *regexp.Regexp) (postings.List, error) + func (m *MockSegment) MatchTerm(arg0, arg1 []byte) (postings.List, error) + func (m *MockSegment) Reader() (index.Reader, error) + func (m *MockSegment) Size() int64 + func (m *MockSegment) Terms(arg0 []byte) ([][]byte, error) + type MockSegmentMockRecorder struct + func (mr *MockSegmentMockRecorder) AllDocs() *gomock.Call + func (mr *MockSegmentMockRecorder) Close() *gomock.Call + func (mr *MockSegmentMockRecorder) ContainsID(arg0 interface{}) *gomock.Call + func (mr *MockSegmentMockRecorder) Doc(arg0 interface{}) *gomock.Call + func (mr *MockSegmentMockRecorder) Docs(arg0 interface{}) *gomock.Call + func (mr *MockSegmentMockRecorder) Fields() *gomock.Call + func (mr *MockSegmentMockRecorder) MatchAll() *gomock.Call + func (mr *MockSegmentMockRecorder) MatchRegexp(arg0, arg1, arg2 interface{}) *gomock.Call + func (mr *MockSegmentMockRecorder) MatchTerm(arg0, arg1 interface{}) *gomock.Call + func (mr *MockSegmentMockRecorder) Reader() *gomock.Call + func (mr *MockSegmentMockRecorder) Size() *gomock.Call + func (mr *MockSegmentMockRecorder) Terms(arg0 interface{}) *gomock.Call + type MockWriter struct + func NewMockWriter(ctrl *gomock.Controller) *MockWriter + func (m *MockWriter) EXPECT() *MockWriterMockRecorder + func (m *MockWriter) MajorVersion() int + func (m *MockWriter) Metadata() []byte + func (m *MockWriter) MinorVersion() int + func (m *MockWriter) Reset(arg0 segment.MutableSegment) error + func (m *MockWriter) WriteDocumentsData(arg0 io.Writer) error + func (m *MockWriter) WriteDocumentsIndex(arg0 io.Writer) error + func (m *MockWriter) WriteFSTFields(arg0 io.Writer) error + func (m *MockWriter) WriteFSTTerms(arg0 io.Writer) error + func (m *MockWriter) WritePostingsOffsets(arg0 io.Writer) error + type MockWriterMockRecorder struct + func (mr *MockWriterMockRecorder) MajorVersion() *gomock.Call + func (mr *MockWriterMockRecorder) Metadata() *gomock.Call + func (mr *MockWriterMockRecorder) MinorVersion() *gomock.Call + func (mr *MockWriterMockRecorder) Reset(arg0 interface{}) *gomock.Call + func (mr *MockWriterMockRecorder) WriteDocumentsData(arg0 interface{}) *gomock.Call + func (mr *MockWriterMockRecorder) WriteDocumentsIndex(arg0 interface{}) *gomock.Call + func (mr *MockWriterMockRecorder) WriteFSTFields(arg0 interface{}) *gomock.Call + func (mr *MockWriterMockRecorder) WriteFSTTerms(arg0 interface{}) *gomock.Call + func (mr *MockWriterMockRecorder) WritePostingsOffsets(arg0 interface{}) *gomock.Call + type NewSegmentOpts struct + PostingsListPool postings.Pool + type Segment interface + func NewSegment(data SegmentData, opts NewSegmentOpts) (Segment, error) + type SegmentData struct + Closer io.Closer + DocsData []byte + DocsIdxData []byte + FSTFieldsData []byte + FSTTermsData []byte + MajorVersion int + Metadata []byte + MinorVersion int + PostingsData []byte + func (sd SegmentData) Validate() error + type Writer interface + MajorVersion func() int + Metadata func() []byte + MinorVersion func() int + Reset func(s sgmt.MutableSegment) error + WriteDocumentsData func(w io.Writer) error + WriteDocumentsIndex func(w io.Writer) error + WriteFSTFields func(w io.Writer) error + WriteFSTTerms func(w io.Writer) error + WritePostingsOffsets func(w io.Writer) error + func NewWriter() Writer