Show / Hide Table of Contents

    Class MemoryPostingsFormat

    Stores terms & postings (docs, positions, payloads) in RAM, using an FST.

    Note that this codec implements advance as a linear scan! This means if you store large fields in here, queries that rely on advance will (AND BooleanQuery, PhraseQuery) will be relatively slow!

    @lucene.experimental

    Inheritance
    System.Object
    PostingsFormat
    MemoryPostingsFormat
    Inherited Members
    PostingsFormat.EMPTY
    PostingsFormat.SetPostingsFormatFactory(IPostingsFormatFactory)
    PostingsFormat.GetPostingsFormatFactory()
    PostingsFormat.Name
    PostingsFormat.ForName(String)
    PostingsFormat.AvailablePostingsFormats
    Namespace: Lucene.Net.Codecs.Memory
    Assembly: Lucene.Net.Codecs.dll
    Syntax
    public sealed class MemoryPostingsFormat : PostingsFormat

    Constructors

    | Improve this Doc View Source

    MemoryPostingsFormat()

    Declaration
    public MemoryPostingsFormat()
    | Improve this Doc View Source

    MemoryPostingsFormat(Boolean, Single)

    Create MemoryPostingsFormat, specifying advanced FST options.

    Declaration
    public MemoryPostingsFormat(bool doPackFST, float acceptableOverheadRatio)
    Parameters
    Type Name Description
    System.Boolean doPackFST

    true if a packed FST should be built. NOTE: packed FSTs are limited to ~2.1 GB of postings.

    System.Single acceptableOverheadRatio

    Allowable overhead for packed s during FST construction.

    Methods

    | Improve this Doc View Source

    FieldsConsumer(SegmentWriteState)

    Declaration
    public override FieldsConsumer FieldsConsumer(SegmentWriteState state)
    Parameters
    Type Name Description
    SegmentWriteState state
    Returns
    Type Description
    FieldsConsumer
    Overrides
    PostingsFormat.FieldsConsumer(SegmentWriteState)
    | Improve this Doc View Source

    FieldsProducer(SegmentReadState)

    Declaration
    public override FieldsProducer FieldsProducer(SegmentReadState state)
    Parameters
    Type Name Description
    SegmentReadState state
    Returns
    Type Description
    FieldsProducer
    Overrides
    PostingsFormat.FieldsProducer(SegmentReadState)
    | Improve this Doc View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    PostingsFormat.ToString()
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)