org.apache.lucene.search

## Class PhraseWildcardQuery.TermData

- java.lang.Object
- - org.apache.lucene.search.PhraseWildcardQuery.TermData

- Enclosing class:
    PhraseWildcardQuery

      protected static class PhraseWildcardQuery.TermData
      extends Object

  Holds the `TermState` for all the collected `Term`, for a specific phrase term, for all segments.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected int` | `numSegments`
    `protected List<Term>` | `terms`
    `protected PhraseWildcardQuery.TermsData` | `termsData`
    `protected List<PhraseWildcardQuery.TermBytesTermState>[]` | `termStatesPerSegment`

  - ### Constructor Summary

    Constructors
    Modifier | Constructor and Description
    --- | ---
    `protected` | `TermData(int numSegments, PhraseWildcardQuery.TermsData termsData)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected List<PhraseWildcardQuery.TermBytesTermState>` | `getTermStatesForSegment(LeafReaderContext leafReaderContext)`
    `protected void` | `setTermStatesForSegment(LeafReaderContext leafReaderContext, List<PhraseWildcardQuery.TermBytesTermState> termStates)` Sets the collected list of `PhraseWildcardQuery.TermBytesTermState` for the given segment.
    `String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Field Detail

    - #### numSegments

          protected final int numSegments

    - #### termsData

          protected final PhraseWildcardQuery.TermsData termsData

    - #### termStatesPerSegment

          protected List<PhraseWildcardQuery.TermBytesTermState>[] termStatesPerSegment

    - #### terms

          protected final List<Term> terms

  - ### Constructor Detail

    - #### TermData

          protected TermData(int numSegments,
                             PhraseWildcardQuery.TermsData termsData)

  - ### Method Detail

    - #### setTermStatesForSegment

          protected void setTermStatesForSegment(LeafReaderContext leafReaderContext,
                                                 List<PhraseWildcardQuery.TermBytesTermState> termStates)

      Sets the collected list of `PhraseWildcardQuery.TermBytesTermState` for the given segment.

    - #### getTermStatesForSegment

          protected List<PhraseWildcardQuery.TermBytesTermState> getTermStatesForSegment(LeafReaderContext leafReaderContext)

      Returns:
        The collected list of `PhraseWildcardQuery.TermBytesTermState` for the given segment; or null if this phrase term does not match in the given segment.

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.