Documentation of 'org.apache.lucene.search.FilteredTermEnum' Java class
FilteredTermEnum
org.apache.lucene.search

Class FilteredTermEnum

  • Direct Known Subclasses:
    FuzzyTermEnum, WildcardTermEnum


    public abstract class FilteredTermEnum
    extends TermEnum
    Abstract class for enumerating a subset of all terms.

    Term enumerations are always ordered by Term.compareTo(). Each term in the enumeration is greater than all that precede it.

    • Constructor Summary

      Constructors 
      Constructor and Description
      FilteredTermEnum() 
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method and Description
      void close()
      Closes the enumeration to further activity, freeing resources.
      abstract float difference()
      Equality measure on the term
      int docFreq()
      Returns the docFreq of the current Term in the enumeration.
      boolean next()
      Increments the enumeration to the next element.
      Term term()
      Returns the current Term in the enumeration.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FilteredTermEnum

        public FilteredTermEnum()
    • Method Detail

      • difference

        public abstract float difference()
        Equality measure on the term
      • docFreq

        public int docFreq()
        Returns the docFreq of the current Term in the enumeration. Returns -1 if no Term matches or all terms have been enumerated.
        Specified by:
        docFreq in class TermEnum
      • next

        public boolean next()
                     throws java.io.IOException
        Increments the enumeration to the next element. True if one exists.
        Specified by:
        next in class TermEnum
        Throws:
        java.io.IOException
      • term

        public Term term()
        Returns the current Term in the enumeration. Returns null if no Term matches or all terms have been enumerated.
        Specified by:
        term in class TermEnum
      • close

        public void close()
                   throws java.io.IOException
        Closes the enumeration to further activity, freeing resources.
        Specified by:
        close in class TermEnum
        Throws:
        java.io.IOException

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.