Package org.apache.lucene.search
Class BooleanClause
- java.lang.Object
-
- org.apache.lucene.search.BooleanClause
-
public final class BooleanClause extends Object
A clause in a BooleanQuery.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBooleanClause.OccurSpecifies how clauses are to occur in matching documents.
-
Constructor Summary
Constructors Constructor Description BooleanClause(Query query, BooleanClause.Occur occur)Constructs a BooleanClause.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Returns true ifois equal to this.BooleanClause.OccurgetOccur()QuerygetQuery()inthashCode()Returns a hash code value for this object.booleanisProhibited()booleanisRequired()booleanisScoring()StringtoString()
-
-
-
Constructor Detail
-
BooleanClause
public BooleanClause(Query query, BooleanClause.Occur occur)
Constructs a BooleanClause.
-
-
Method Detail
-
getOccur
public BooleanClause.Occur getOccur()
-
getQuery
public Query getQuery()
-
isProhibited
public boolean isProhibited()
-
isRequired
public boolean isRequired()
-
isScoring
public boolean isScoring()
-
equals
public boolean equals(Object o)
Returns true ifois equal to this.
-
hashCode
public int hashCode()
Returns a hash code value for this object.
-
-