Class LocalNameQuery
- java.lang.Object
-
- org.apache.lucene.search.Query
-
- org.apache.jackrabbit.core.query.lucene.LocalNameQuery
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class LocalNameQuery extends Query
LocalNameQuery
implements a query for the local name of a node.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LocalNameQuery(String localName, IndexFormatVersion version)
Creates a newLocalNameQuery
for the givenlocalName
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
extractTerms(Set<Term> terms)
Query
rewrite(IndexReader reader)
String
toString(String field)
-
Methods inherited from class org.apache.lucene.search.Query
clone, combine, createWeight, equals, getBoost, getSimilarity, hashCode, mergeBooleanQueries, setBoost, toString, weight
-
-
-
-
Constructor Detail
-
LocalNameQuery
public LocalNameQuery(String localName, IndexFormatVersion version)
Creates a newLocalNameQuery
for the givenlocalName
.- Parameters:
localName
- the local name of a node.version
- the version of the index.
-
-
Method Detail
-
rewrite
public Query rewrite(IndexReader reader) throws IOException
- Overrides:
rewrite
in classQuery
- Throws:
IOException
-
extractTerms
public void extractTerms(Set<Term> terms)
- Overrides:
extractTerms
in classQuery
-
-