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,
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)
|
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,
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)
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