upside_down

package
v0.0.0-...-041b862 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2013 License: Apache-2.0 Imports: 10 Imported by: 0

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

View Source
const BYTE_SEPARATOR byte = 0xff
View Source
const VERSION uint8 = 1

Variables

View Source
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 NewFieldRow(index uint16, name, path, analyzer string, includeTermVectors bool) *FieldRow

func NewFieldRowKV

func NewFieldRowKV(key, value []byte) *FieldRow

func (*FieldRow) Field

func (f *FieldRow) Field() *index.Field

func (*FieldRow) Key

func (f *FieldRow) Key() []byte

func (*FieldRow) String

func (f *FieldRow) String() string

func (*FieldRow) Value

func (f *FieldRow) Value() []byte

type TermFrequencyRow

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

func NewTermFrequencyRow

func NewTermFrequencyRow(term []byte, field uint16, doc []byte, freq uint64, norm float32) *TermFrequencyRow

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

type UpsideDownCouchRow interface {
	Key() []byte
	Value() []byte
}

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 (*UpsideDownCouchTermFieldReader) Close

func (r *UpsideDownCouchTermFieldReader) Close()

func (*UpsideDownCouchTermFieldReader) Count

func (*UpsideDownCouchTermFieldReader) Next

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

Directories

Path Synopsis
utils

Jump to

Keyboard shortcuts

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