org.apache.nutch.searcher
Class Query.Clause

java.lang.Object
  extended by org.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, Configuration conf)
           
Query.Clause(Query.Phrase phrase, String field, boolean isRequired, boolean isProhibited, Configuration conf)
           
Query.Clause(Query.Term term, boolean isRequired, boolean isProhibited, Configuration conf)
           
Query.Clause(Query.Term term, String field, boolean isRequired, boolean isProhibited, Configuration conf)
           
 
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, Configuration conf)
           
 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,
                    Configuration conf)

Query.Clause

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

Query.Clause

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

Query.Clause

public Query.Clause(Query.Phrase phrase,
                    boolean isRequired,
                    boolean isProhibited,
                    Configuration conf)
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,
                                Configuration conf)
                         throws IOException
Throws:
IOException

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

clone

public Object clone()
Overrides:
clone in class Object


Copyright © 2006 The Apache Software Foundation