public final class BooleanClause
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
BooleanClause.Occur
Specifies how clauses are to occur in matching documents.
|
Modifier and Type | Field and Description |
---|---|
private BooleanClause.Occur |
occur |
private Query |
query
The query whose matching documents are combined by the boolean query.
|
Constructor and Description |
---|
BooleanClause(Query query,
BooleanClause.Occur occur)
Constructs a BooleanClause.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Returns true if
o is equal to this. |
BooleanClause.Occur |
getOccur() |
Query |
getQuery() |
int |
hashCode()
Returns a hash code value for this object.
|
boolean |
isProhibited() |
boolean |
isRequired() |
boolean |
isScoring() |
java.lang.String |
toString() |
private final Query query
private final BooleanClause.Occur occur
public BooleanClause(Query query, BooleanClause.Occur occur)
public BooleanClause.Occur getOccur()
public Query getQuery()
public boolean isProhibited()
public boolean isRequired()
public boolean isScoring()
public boolean equals(java.lang.Object o)
o
is equal to this.equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object