abstract class SpanContainQuery extends SpanQuery implements java.lang.Cloneable
Modifier and Type | Class and Description |
---|---|
class |
SpanContainQuery.SpanContainWeight |
Modifier and Type | Field and Description |
---|---|
(package private) SpanQuery |
big |
(package private) SpanQuery |
little |
Constructor and Description |
---|
SpanContainQuery(SpanQuery big,
SpanQuery little) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other)
Override and implement query instance equivalence properly in a subclass.
|
private boolean |
equalsTo(SpanContainQuery other) |
SpanQuery |
getBig() |
java.lang.String |
getField()
Returns the name of the field matched by this query.
|
SpanQuery |
getLittle() |
int |
hashCode()
Override and implement query hash code properly in a subclass.
|
Query |
rewrite(IndexReader reader)
Expert: called to re-write queries into primitive queries.
|
(package private) java.lang.String |
toString(java.lang.String field,
java.lang.String name) |
void |
visit(QueryVisitor visitor)
Recurse through the query tree, visiting any child queries
|
createWeight, getTermStates, getTermStates
classHash, sameClassAs, toString, toString
public java.lang.String getField()
SpanQuery
public SpanQuery getBig()
public SpanQuery getLittle()
java.lang.String toString(java.lang.String field, java.lang.String name)
public Query rewrite(IndexReader reader) throws java.io.IOException
Query
public void visit(QueryVisitor visitor)
Query
public boolean equals(java.lang.Object other)
Query
QueryCache
works 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.equals
in class Query
Query.sameClassAs(Object)
,
Query.classHash()
private boolean equalsTo(SpanContainQuery other)
public int hashCode()
Query
QueryCache
works properly.hashCode
in class Query
Query.equals(Object)