Show / Hide Table of Contents

    Class BlockTermsReader

    Handles a terms dict, but decouples all details of doc/freqs/positions reading to an instance of PostingsReaderBase. This class is reusable for codecs that use a different format for docs/freqs/positions (though codecs are also free to make their own terms dict impl).

    This class also interacts with an instance of TermsIndexReaderBase, to abstract away the specific implementation of the terms dict index.

    This is a Lucene.NET EXPERIMENTAL API, use at your own risk
    Inheritance
    System.Object
    Fields
    FieldsProducer
    BlockTermsReader
    Implements
    IDisposable
    Inherited Members
    FieldsProducer.Dispose()
    Fields.UniqueTermCount
    Fields.EMPTY_ARRAY
    Namespace: Lucene.Net.Codecs.BlockTerms
    Assembly: Lucene.Net.Codecs.dll
    Syntax
    public class BlockTermsReader : FieldsProducer, IDisposable

    Constructors

    | Improve this Doc View Source

    BlockTermsReader(TermsIndexReaderBase, Directory, FieldInfos, SegmentInfo, PostingsReaderBase, IOContext, String)

    Declaration
    public BlockTermsReader(TermsIndexReaderBase indexReader, Directory dir, FieldInfos fieldInfos, SegmentInfo info, PostingsReaderBase postingsReader, IOContext context, string segmentSuffix)
    Parameters
    Type Name Description
    TermsIndexReaderBase indexReader
    Directory dir
    FieldInfos fieldInfos
    SegmentInfo info
    PostingsReaderBase postingsReader
    IOContext context
    System.String segmentSuffix

    Properties

    | Improve this Doc View Source

    Count

    Declaration
    public override int Count { get; }
    Property Value
    Type Description
    System.Int32
    Overrides
    Fields.Count

    Methods

    | Improve this Doc View Source

    CheckIntegrity()

    Declaration
    public override void CheckIntegrity()
    Overrides
    FieldsProducer.CheckIntegrity()
    | Improve this Doc View Source

    Dispose(Boolean)

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing
    | Improve this Doc View Source

    GetEnumerator()

    Declaration
    public override IEnumerator<string> GetEnumerator()
    Returns
    Type Description
    IEnumerator<System.String>
    Overrides
    Fields.GetEnumerator()
    | Improve this Doc View Source

    GetTerms(String)

    Declaration
    public override Terms GetTerms(string field)
    Parameters
    Type Name Description
    System.String field
    Returns
    Type Description
    Terms
    | Improve this Doc View Source

    RamBytesUsed()

    Declaration
    public override long RamBytesUsed()
    Returns
    Type Description
    System.Int64
    Overrides
    FieldsProducer.RamBytesUsed()

    Implements

    IDisposable
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)