perfield

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PER_FIELD_FORMAT_KEY = "PerFieldPostingsFormat.format"
	PER_FIELD_SUFFIX_KEY = "PerFieldPostingsFormat.suffix"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FieldsConsumerAndSuffix

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

func (*FieldsConsumerAndSuffix) Close

func (fcas *FieldsConsumerAndSuffix) Close() error

type PerFieldDocValuesFormat

type PerFieldDocValuesFormat struct {
}

Enables per field docvalues support,

Note, when extending this class, the name Name() is written into the index. In order for the field to be read, the name must resolve to your implementation via LoadXYZ(). This method use hard-coded map to resolve codec names.

Files written by each docvalues format have an additional suffix containing the format name. For example, in a per-field configuration instead of _1.dat fielnames would look like _1_Lucene40_0.dat.

func NewPerFieldDocValuesFormat

func NewPerFieldDocValuesFormat(f func(field string) DocValuesFormat) *PerFieldDocValuesFormat

func (*PerFieldDocValuesFormat) FieldsConsumer

func (pf *PerFieldDocValuesFormat) FieldsConsumer(state *SegmentWriteState) (w DocValuesConsumer, err error)

func (*PerFieldDocValuesFormat) FieldsProducer

func (pf *PerFieldDocValuesFormat) FieldsProducer(state SegmentReadState) (r DocValuesProducer, err error)

func (*PerFieldDocValuesFormat) Name

func (pf *PerFieldDocValuesFormat) Name() string

type PerFieldDocValuesReader

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

func (*PerFieldDocValuesReader) Binary

func (dvp *PerFieldDocValuesReader) Binary(field *FieldInfo) (v BinaryDocValues, err error)

func (*PerFieldDocValuesReader) Close

func (dvp *PerFieldDocValuesReader) Close() error

func (*PerFieldDocValuesReader) Numeric

func (dvp *PerFieldDocValuesReader) Numeric(field *FieldInfo) (v NumericDocValues, err error)

func (*PerFieldDocValuesReader) Sorted

func (dvp *PerFieldDocValuesReader) Sorted(field *FieldInfo) (v SortedDocValues, err error)

func (*PerFieldDocValuesReader) SortedSet

func (dvp *PerFieldDocValuesReader) SortedSet(field *FieldInfo) (v SortedSetDocValues, err error)

type PerFieldPostingsFormat

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

Enables per field postings support.

Note, when extending this class, the name Name() is written into the index. In order for the field to be read, the name must resolve to your implementation via LoadXYZ(). This method use hard-coded map to resolve codec names.

Files written by each posting format have an additional suffix containing the format name. For example, in a per-field configuration instead of _1.prx fielnames would look like _1_Lucene40_0.prx.

func NewPerFieldPostingsFormat

func NewPerFieldPostingsFormat(f func(field string) PostingsFormat) *PerFieldPostingsFormat

func (*PerFieldPostingsFormat) FieldsConsumer

func (pf *PerFieldPostingsFormat) FieldsConsumer(state *SegmentWriteState) (FieldsConsumer, error)

func (*PerFieldPostingsFormat) FieldsProducer

func (pf *PerFieldPostingsFormat) FieldsProducer(state SegmentReadState) (FieldsProducer, error)

func (*PerFieldPostingsFormat) Name

func (pf *PerFieldPostingsFormat) Name() string

type PerFieldPostingsReader

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

func (*PerFieldPostingsReader) Close

func (r *PerFieldPostingsReader) Close() error

func (*PerFieldPostingsReader) Terms

func (r *PerFieldPostingsReader) Terms(field string) Terms

type PerFieldPostingsWriter

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

func (*PerFieldPostingsWriter) AddField

func (w *PerFieldPostingsWriter) AddField(field *FieldInfo) (TermsConsumer, error)

func (*PerFieldPostingsWriter) Close

func (w *PerFieldPostingsWriter) Close() error

Jump to

Keyboard shortcuts

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