org.apache.nutch.searcher
Class Query.Clause
java.lang.Object
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.
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)
|
DEFAULT_FIELD
public static final String DEFAULT_FIELD
- See Also:
- Constant Field Values
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)
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