org.apache.nutch.searcher
Class Query.Clause

java.lang.Object
  extended byorg.apache.nutch.searcher.Query.Clause
All Implemented Interfaces:
Cloneable
Enclosing class:
Query

public static class Query.Clause
extends Object
implements Cloneable

A query clause.


Field Summary
static String DEFAULT_FIELD
           
 
Constructor Summary
Query.Clause(Query.Phrase phrase, boolean isRequired, boolean isProhibited)
           
Query.Clause(Query.Phrase phrase, String field, boolean isRequired, boolean isProhibited)
           
Query.Clause(Query.Term term, boolean isRequired, boolean isProhibited)
           
Query.Clause(Query.Term term, String field, boolean isRequired, boolean isProhibited)
           
 
Method Summary
 Object clone()
           
 boolean equals(Object o)
           
 String getField()
           
 Query.Phrase getPhrase()
           
 Query.Term getTerm()
           
 float getWeight()
           
 int hashCode()
           
 boolean isPhrase()
           
 boolean isProhibited()
           
 boolean isRequired()
           
static Query.Clause read(DataInput in)
           
 void setWeight(float weight)
           
 String toString()
           
 void write(DataOutput out)
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_FIELD

public static final String DEFAULT_FIELD
See Also:
Constant Field Values
Constructor Detail

Query.Clause

public Query.Clause(Query.Term term,
                    String field,
                    boolean isRequired,
                    boolean isProhibited)

Query.Clause

public Query.Clause(Query.Term term,
                    boolean isRequired,
                    boolean isProhibited)

Query.Clause

public Query.Clause(Query.Phrase phrase,
                    String field,
                    boolean isRequired,
                    boolean isProhibited)

Query.Clause

public Query.Clause(Query.Phrase phrase,
                    boolean isRequired,
                    boolean isProhibited)
Method Detail

isRequired

public boolean isRequired()

isProhibited

public boolean isProhibited()

getField

public String getField()

getWeight

public float getWeight()

setWeight

public void setWeight(float weight)

isPhrase

public boolean isPhrase()

getPhrase

public Query.Phrase getPhrase()

getTerm

public Query.Term getTerm()

write

public void write(DataOutput out)
           throws IOException
Throws:
IOException

read

public static Query.Clause read(DataInput in)
                         throws IOException
Throws:
IOException

toString

public String toString()

equals

public boolean equals(Object o)

hashCode

public int hashCode()

clone

public Object clone()


Copyright © 2006 The Apache Software Foundation