public class

BooleanClause

extends Object
implements Serializable
java.lang.Object
   ↳ org.apache.lucene.search.BooleanClause

Class Overview

A clause in a BooleanQuery.

Summary

Nested Classes
enum BooleanClause.Occur Specifies how clauses are to occur in matching documents. 
Public Constructors
BooleanClause(Query query, BooleanClause.Occur occur)
Constructs a BooleanClause.
Public Methods
boolean equals(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()
void setOccur(BooleanClause.Occur occur)
void setQuery(Query query)
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public BooleanClause (Query query, BooleanClause.Occur occur)

Constructs a BooleanClause.

Public Methods

public boolean equals (Object o)

Returns true if o is equal to this.

public BooleanClause.Occur getOccur ()

public Query getQuery ()

public int hashCode ()

Returns a hash code value for this object.

public boolean isProhibited ()

public boolean isRequired ()

public void setOccur (BooleanClause.Occur occur)

public void setQuery (Query query)

public String toString ()