Documentation ¶
Overview ¶
Copyright (c) 2013 Couchbase, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright (c) 2013 Couchbase, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright (c) 2013 Couchbase, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Constants
- Variables
- type BackIndexEntry
- type BackIndexRow
- type FieldRow
- type TermFrequencyRow
- func NewTermFrequencyRow(term []byte, field uint16, doc []byte, freq uint64, norm float32) *TermFrequencyRow
- func NewTermFrequencyRowKV(key, value []byte) *TermFrequencyRow
- func NewTermFrequencyRowWithTermVectors(term []byte, field uint16, doc []byte, freq uint64, norm float32, ...) *TermFrequencyRow
- type TermVector
- type UpsideDownCouch
- func (udc *UpsideDownCouch) Close()
- func (udc *UpsideDownCouch) Delete(id []byte) error
- func (udc *UpsideDownCouch) DocCount() uint64
- func (udc *UpsideDownCouch) Dump()
- func (udc *UpsideDownCouch) Open() (err error)
- func (udc *UpsideDownCouch) TermFieldReader(term []byte, fieldName string) (index.TermFieldReader, error)
- func (udc *UpsideDownCouch) Update(key, doc []byte) error
- type UpsideDownCouchRow
- type UpsideDownCouchRowStream
- type UpsideDownCouchTermFieldReader
- type VersionRow
Constants ¶
const BYTE_SEPARATOR byte = 0xff
const VERSION uint8 = 1
Variables ¶
var VERSION_KEY []byte = []byte{'v'}
Functions ¶
This section is empty.
Types ¶
type BackIndexEntry ¶
type BackIndexEntry struct {
// contains filtered or unexported fields
}
func (*BackIndexEntry) String ¶
func (bie *BackIndexEntry) String() string
type BackIndexRow ¶
type BackIndexRow struct {
// contains filtered or unexported fields
}
func NewBackIndexRow ¶
func NewBackIndexRow(doc []byte, entries []*BackIndexEntry) *BackIndexRow
func NewBackIndexRowKV ¶
func NewBackIndexRowKV(key, value []byte) *BackIndexRow
func (*BackIndexRow) Key ¶
func (br *BackIndexRow) Key() []byte
func (*BackIndexRow) String ¶
func (br *BackIndexRow) String() string
func (*BackIndexRow) Value ¶
func (br *BackIndexRow) Value() []byte
type FieldRow ¶
type FieldRow struct {
// contains filtered or unexported fields
}
func NewFieldRow ¶
func NewFieldRowKV ¶
type TermFrequencyRow ¶
type TermFrequencyRow struct {
// contains filtered or unexported fields
}
func NewTermFrequencyRow ¶
func NewTermFrequencyRowKV ¶
func NewTermFrequencyRowKV(key, value []byte) *TermFrequencyRow
func NewTermFrequencyRowWithTermVectors ¶
func NewTermFrequencyRowWithTermVectors(term []byte, field uint16, doc []byte, freq uint64, norm float32, vectors []*TermVector) *TermFrequencyRow
func (*TermFrequencyRow) Key ¶
func (tfr *TermFrequencyRow) Key() []byte
func (*TermFrequencyRow) String ¶
func (tfr *TermFrequencyRow) String() string
func (*TermFrequencyRow) Value ¶
func (tfr *TermFrequencyRow) Value() []byte
type TermVector ¶
type TermVector struct {
// contains filtered or unexported fields
}
func (*TermVector) String ¶
func (tv *TermVector) String() string
type UpsideDownCouch ¶
type UpsideDownCouch struct {
// contains filtered or unexported fields
}
func NewUpsideDownCouch ¶
func NewUpsideDownCouch(path string, schema []*index.Field) *UpsideDownCouch
func (*UpsideDownCouch) Close ¶
func (udc *UpsideDownCouch) Close()
func (*UpsideDownCouch) Delete ¶
func (udc *UpsideDownCouch) Delete(id []byte) error
func (*UpsideDownCouch) DocCount ¶
func (udc *UpsideDownCouch) DocCount() uint64
func (*UpsideDownCouch) Dump ¶
func (udc *UpsideDownCouch) Dump()
func (*UpsideDownCouch) Open ¶
func (udc *UpsideDownCouch) Open() (err error)
func (*UpsideDownCouch) TermFieldReader ¶
func (udc *UpsideDownCouch) TermFieldReader(term []byte, fieldName string) (index.TermFieldReader, error)
func (*UpsideDownCouch) Update ¶
func (udc *UpsideDownCouch) Update(key, doc []byte) error
type UpsideDownCouchRow ¶
func ParseFromKeyValue ¶
func ParseFromKeyValue(key, value []byte) UpsideDownCouchRow
type UpsideDownCouchRowStream ¶
type UpsideDownCouchRowStream chan UpsideDownCouchRow
type UpsideDownCouchTermFieldReader ¶
type UpsideDownCouchTermFieldReader struct {
// contains filtered or unexported fields
}
func (*UpsideDownCouchTermFieldReader) Advance ¶
func (r *UpsideDownCouchTermFieldReader) Advance(docId []byte) (*index.TermFieldDoc, error)
func (*UpsideDownCouchTermFieldReader) Close ¶
func (r *UpsideDownCouchTermFieldReader) Close()
func (*UpsideDownCouchTermFieldReader) Count ¶
func (r *UpsideDownCouchTermFieldReader) Count() uint64
func (*UpsideDownCouchTermFieldReader) Next ¶
func (r *UpsideDownCouchTermFieldReader) Next() (*index.TermFieldDoc, error)
type VersionRow ¶
type VersionRow struct {
// contains filtered or unexported fields
}
func NewVersionRow ¶
func NewVersionRow(version uint8) *VersionRow
func NewVersionRowKV ¶
func NewVersionRowKV(key, value []byte) *VersionRow
func (*VersionRow) Key ¶
func (v *VersionRow) Key() []byte
func (*VersionRow) String ¶
func (v *VersionRow) String() string
func (*VersionRow) Value ¶
func (v *VersionRow) Value() []byte