Class NameQuery

  • All Implemented Interfaces:
    Serializable, Cloneable

    public class NameQuery
    extends org.apache.lucene.search.Query
    NameQuery implements a query for the name of a node.
    See Also:
    Serialized Form
    • Constructor Detail

      • NameQuery

        public NameQuery​(Name nodeName,
                         IndexFormatVersion version,
                         NamespaceMappings nsMappings)
        Creates a new NameQuery.
        Parameters:
        nodeName - the name of the nodes to return.
        version - the version of the index.
        nsMappings - the namespace mappings of the index.
    • Method Detail

      • getName

        public Name getName()
        Returns:
        the name of the nodes to return.
      • rewrite

        public org.apache.lucene.search.Query rewrite​(org.apache.lucene.index.IndexReader reader)
                                               throws IOException
        Overrides:
        rewrite in class org.apache.lucene.search.Query
        Throws:
        IOException
      • extractTerms

        public void extractTerms​(Set<org.apache.lucene.index.Term> terms)
        Overrides:
        extractTerms in class org.apache.lucene.search.Query
      • toString

        public String toString​(String field)
        Specified by:
        toString in class org.apache.lucene.search.Query