Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class AssertingTerms

    Wraps a Lucene.Net.Index.Terms but with additional asserts

    Inheritance
    object
    Terms
    FilterAtomicReader.FilterTerms
    AssertingTerms
    Inherited Members
    FilterAtomicReader.FilterTerms.m_input
    FilterAtomicReader.FilterTerms.Comparer
    FilterAtomicReader.FilterTerms.Count
    FilterAtomicReader.FilterTerms.SumTotalTermFreq
    FilterAtomicReader.FilterTerms.SumDocFreq
    FilterAtomicReader.FilterTerms.DocCount
    FilterAtomicReader.FilterTerms.HasFreqs
    FilterAtomicReader.FilterTerms.HasOffsets
    FilterAtomicReader.FilterTerms.HasPositions
    FilterAtomicReader.FilterTerms.HasPayloads
    Terms.EMPTY_ARRAY
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Lucene.Net.Index
    Assembly: Lucene.Net.TestFramework.dll
    Syntax
    public class AssertingTerms : FilterAtomicReader.FilterTerms

    Constructors

    AssertingTerms(Terms)

    Wraps a Lucene.Net.Index.Terms but with additional asserts

    Declaration
    public AssertingTerms(Terms input)
    Parameters
    Type Name Description
    Terms input

    Methods

    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
    Lucene.Net.Index.FilterAtomicReader.FilterTerms.GetEnumerator()

    GetEnumerator(TermsEnum)

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

    Declaration
    public override TermsEnum GetEnumerator(TermsEnum reuse)
    Parameters
    Type Name Description
    TermsEnum reuse

    If you have a previous Lucene.Net.Index.TermsEnum, for example from a different field, you can pass it for possible reuse if the implementation can do so.

    Returns
    Type Description
    TermsEnum
    Overrides
    Lucene.Net.Index.FilterAtomicReader.FilterTerms.GetEnumerator(Lucene.Net.Index.TermsEnum)

    Intersect(CompiledAutomaton, BytesRef)

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

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

    NOTE: the returned Lucene.Net.Index.TermsEnum cannot seek

    .
    Declaration
    public override TermsEnum Intersect(CompiledAutomaton automaton, BytesRef bytes)
    Parameters
    Type Name Description
    CompiledAutomaton automaton
    BytesRef bytes
    Returns
    Type Description
    TermsEnum
    Overrides
    Lucene.Net.Index.Terms.Intersect(Lucene.Net.Util.Automaton.CompiledAutomaton, Lucene.Net.Util.BytesRef)
    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.