Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class BlockTreeTermsReader<TSubclassState>.FieldReader

    BlockTree's implementation of GetTerms(string).

    Inheritance
    object
    Terms
    BlockTreeTermsReader<TSubclassState>.FieldReader
    Inherited Members
    Terms.GetEnumerator(TermsEnum)
    Terms.EMPTY_ARRAY
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Lucene.Net.Codecs
    Assembly: Lucene.Net.dll
    Syntax
    public sealed class BlockTreeTermsReader<TSubclassState>.FieldReader : Terms

    Properties

    Comparer

    Return the IComparer{BytesRef} used to sort terms provided by the iterator. This method may return null if there are no terms. This method may be invoked many times; it's best to cache a single instance & reuse it.

    Declaration
    public override IComparer<BytesRef> Comparer { get; }
    Property Value
    Type Description
    IComparer<BytesRef>
    Overrides
    Terms.Comparer

    Count

    Returns the number of terms for this field, or -1 if this measure isn't stored by the codec. Note that, just like other term measures, this measure does not take deleted documents into account. NOTE: This was size() in Lucene.

    Declaration
    public override long Count { get; }
    Property Value
    Type Description
    long
    Overrides
    Terms.Count

    DocCount

    Returns the number of documents that have at least one term for this field, or -1 if this measure isn't stored by the codec. Note that, just like other term measures, this measure does not take deleted documents into account.

    Declaration
    public override int DocCount { get; }
    Property Value
    Type Description
    int
    Overrides
    Terms.DocCount

    HasFreqs

    Returns true if documents in this field store per-document term frequency (Freq).

    Declaration
    public override bool HasFreqs { get; }
    Property Value
    Type Description
    bool
    Overrides
    Terms.HasFreqs

    HasOffsets

    Returns true if documents in this field store offsets.

    Declaration
    public override bool HasOffsets { get; }
    Property Value
    Type Description
    bool
    Overrides
    Terms.HasOffsets

    HasPayloads

    Returns true if documents in this field store payloads.

    Declaration
    public override bool HasPayloads { get; }
    Property Value
    Type Description
    bool
    Overrides
    Terms.HasPayloads

    HasPositions

    Returns true if documents in this field store positions.

    Declaration
    public override bool HasPositions { get; }
    Property Value
    Type Description
    bool
    Overrides
    Terms.HasPositions

    SumDocFreq

    Returns the sum of DocFreq for all terms in this field, or -1 if this measure isn't stored by the codec. Note that, just like other term measures, this measure does not take deleted documents into account.

    Declaration
    public override long SumDocFreq { get; }
    Property Value
    Type Description
    long
    Overrides
    Terms.SumDocFreq

    SumTotalTermFreq

    Returns the sum of TotalTermFreq for all terms in this field, or -1 if this measure isn't stored by the codec (or if this fields omits term freq and positions). Note that, just like other term measures, this measure does not take deleted documents into account.

    Declaration
    public override long SumTotalTermFreq { get; }
    Property Value
    Type Description
    long
    Overrides
    Terms.SumTotalTermFreq

    Methods

    ComputeStats()

    For debugging -- used by CheckIndex too

    Declaration
    public BlockTreeTermsReader<TSubclassState>.Stats ComputeStats()
    Returns
    Type Description
    BlockTreeTermsReader<TSubclassState>.Stats

    GetEnumerator()

    Returns an iterator that will step through all terms. This method will not return null.

    Declaration
    public override TermsEnum GetEnumerator()
    Returns
    Type Description
    TermsEnum
    Overrides
    Terms.GetEnumerator()

    Intersect(CompiledAutomaton, BytesRef)

    Returns a TermsEnum that iterates over all terms that are accepted by the provided CompiledAutomaton. If the startTerm is provided then the returned enum will only accept terms

    startTerm, but you still must call MoveNext() first to get to the first term. Note that the provided startTerm must be accepted by the automaton.

    NOTE: the returned TermsEnum cannot seek

    .
    Declaration
    public override TermsEnum Intersect(CompiledAutomaton compiled, BytesRef startTerm)
    Parameters
    Type Name Description
    CompiledAutomaton compiled
    BytesRef startTerm
    Returns
    Type Description
    TermsEnum
    Overrides
    Terms.Intersect(CompiledAutomaton, BytesRef)

    RamBytesUsed()

    Returns approximate RAM bytes used

    Declaration
    public long RamBytesUsed()
    Returns
    Type Description
    long
    Back to top Copyright © 2024 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.