Package org.apache.lucene.search.spans
Class SpanContainQuery
- java.lang.Object
-
- org.apache.lucene.search.Query
-
- org.apache.lucene.search.spans.SpanQuery
-
- org.apache.lucene.search.spans.SpanContainQuery
-
- All Implemented Interfaces:
java.lang.Cloneable
- Direct Known Subclasses:
SpanContainingQuery,SpanWithinQuery
abstract class SpanContainQuery extends SpanQuery implements java.lang.Cloneable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classSpanContainQuery.SpanContainWeight
-
Constructor Summary
Constructors Constructor Description SpanContainQuery(SpanQuery big, SpanQuery little)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object other)Override and implement query instance equivalence properly in a subclass.private booleanequalsTo(SpanContainQuery other)SpanQuerygetBig()java.lang.StringgetField()Returns the name of the field matched by this query.SpanQuerygetLittle()inthashCode()Override and implement query hash code properly in a subclass.Queryrewrite(IndexReader reader)Expert: called to re-write queries into primitive queries.(package private) java.lang.StringtoString(java.lang.String field, java.lang.String name)voidvisit(QueryVisitor visitor)Recurse through the query tree, visiting any child queries-
Methods inherited from class org.apache.lucene.search.spans.SpanQuery
createWeight, getTermStates, getTermStates
-
Methods inherited from class org.apache.lucene.search.Query
classHash, sameClassAs, toString, toString
-
-
-
-
Method Detail
-
getField
public java.lang.String getField()
Description copied from class:SpanQueryReturns the name of the field matched by this query.
-
getBig
public SpanQuery getBig()
-
getLittle
public SpanQuery getLittle()
-
toString
java.lang.String toString(java.lang.String field, java.lang.String name)
-
rewrite
public Query rewrite(IndexReader reader) throws java.io.IOException
Description copied from class:QueryExpert: called to re-write queries into primitive queries. For example, a PrefixQuery will be rewritten into a BooleanQuery that consists of TermQuerys.
-
visit
public void visit(QueryVisitor visitor)
Description copied from class:QueryRecurse through the query tree, visiting any child queries
-
equals
public boolean equals(java.lang.Object other)
Description copied from class:QueryOverride and implement query instance equivalence properly in a subclass. This is required so thatQueryCacheworks properly. Typically a query will be equal to another only if it's an instance of the same class and its document-filtering properties are identical that other instance. Utility methods are provided for certain repetitive code.- Specified by:
equalsin classQuery- See Also:
Query.sameClassAs(Object),Query.classHash()
-
equalsTo
private boolean equalsTo(SpanContainQuery other)
-
hashCode
public int hashCode()
Description copied from class:QueryOverride and implement query hash code properly in a subclass. This is required so thatQueryCacheworks properly.- Specified by:
hashCodein classQuery- See Also:
Query.equals(Object)
-
-