Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class BlockTermsReader

    Handles a terms dict, but decouples all details of doc/freqs/positions reading to an instance of Lucene.Net.Codecs.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.

    Note

    This API is experimental and might change in incompatible ways in the next release.

    Inheritance
    System.Object
    Lucene.Net.Index.Fields
    Lucene.Net.Codecs.FieldsProducer
    BlockTermsReader
    Implements
    System.Collections.Generic.IEnumerable<System.String>
    System.Collections.IEnumerable
    System.IDisposable
    Inherited Members
    Lucene.Net.Codecs.FieldsProducer.Dispose()
    Lucene.Net.Index.Fields.System.Collections.IEnumerable.GetEnumerator()
    Lucene.Net.Index.Fields.UniqueTermCount
    Lucene.Net.Index.Fields.EMPTY_ARRAY
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Lucene.Net.Codecs.BlockTerms
    Assembly: Lucene.Net.Codecs.dll
    Syntax
    public class BlockTermsReader : FieldsProducer, IEnumerable<string>, IEnumerable, 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
    Lucene.Net.Store.Directory dir
    Lucene.Net.Index.FieldInfos fieldInfos
    Lucene.Net.Index.SegmentInfo info
    Lucene.Net.Codecs.PostingsReaderBase postingsReader
    Lucene.Net.Store.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
    Lucene.Net.Index.Fields.Count

    Methods

    | Improve this Doc View Source

    CheckIntegrity()

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

    Dispose(Boolean)

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

    GetEnumerator()

    Declaration
    public override IEnumerator<string> GetEnumerator()
    Returns
    Type Description
    System.Collections.Generic.IEnumerator<System.String>
    Overrides
    Lucene.Net.Index.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
    Lucene.Net.Index.Terms
    Overrides
    Lucene.Net.Index.Fields.GetTerms(System.String)
    | Improve this Doc View Source

    RamBytesUsed()

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

    Implements

    System.Collections.Generic.IEnumerable<T>
    System.Collections.IEnumerable
    System.IDisposable
    • Improve this Doc
    • View Source
    Back to top Copyright © 2021 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.