lucene49

package
v0.0.0-...-309f818 Latest Latest
Warning

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

Go to latest
Published: May 2, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DATA_CODEC         = "Lucene49NormsData"
	DATA_EXTENSION     = "nvd"
	METADATA_CODEC     = "Lucene49NormsMetadata"
	METADATA_EXTENSION = "nvm"
	VERSION_START      = 0
	VERSION_CURRENT    = VERSION_START
)
View Source
const (
	DELTA_COMPRESSED = 0
	TABLE_COMPRESSED = 1
	CONST_COMPRESSED = 2
	UNCOMPRESSED     = 3
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Longs

type Longs []int64

func (Longs) Len

func (a Longs) Len() int

func (Longs) Less

func (a Longs) Less(i, j int) bool

func (Longs) Swap

func (a Longs) Swap(i, j int)

type Lucene49Codec

type Lucene49Codec struct {
	*CodecImpl
}

Implements the Lucene 4.9 index format, with configurable per-field postings and docvalues formats.

If you want to reuse functionality of this codec in another codec, extend FilterCodec.

type Lucene49NormsFormat

type Lucene49NormsFormat struct {
}

func (*Lucene49NormsFormat) NormsConsumer

func (f *Lucene49NormsFormat) NormsConsumer(state *SegmentWriteState) (w DocValuesConsumer, err error)

func (*Lucene49NormsFormat) NormsProducer

func (f *Lucene49NormsFormat) NormsProducer(state SegmentReadState) (r DocValuesProducer, err error)

type NormMap

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

Specialized deduplication of long-ord for norms: 99.99999% of the time this will be a single-byte range.

type NormsConsumer

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

func (*NormsConsumer) AddNumericField

func (nc *NormsConsumer) AddNumericField(field *FieldInfo,
	iter func() func() (interface{}, bool)) (err error)

func (*NormsConsumer) Close

func (nc *NormsConsumer) Close() (err error)

type NormsEntry

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

type NormsProducer

type NormsProducer struct {
	sync.Locker
	// contains filtered or unexported fields
}

func (*NormsProducer) Binary

func (np *NormsProducer) Binary(field *FieldInfo) (BinaryDocValues, error)

func (*NormsProducer) Close

func (np *NormsProducer) Close() error

func (*NormsProducer) Numeric

func (np *NormsProducer) Numeric(field *FieldInfo) (NumericDocValues, error)

func (*NormsProducer) Sorted

func (np *NormsProducer) Sorted(field *FieldInfo) (SortedDocValues, error)

func (*NormsProducer) SortedSet

func (np *NormsProducer) SortedSet(field *FieldInfo) (SortedSetDocValues, error)

Jump to

Keyboard shortcuts

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