public class PseudoQuery extends Object implements WritableComparable<PseudoQuery>
| Constructor and Description |
|---|
PseudoQuery()
Constructs a pseudo query with no text and a quality score of zero.
|
PseudoQuery(String query,
float score)
Initializes a pseudo query object with the given setting.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(PseudoQuery other) |
boolean |
equals(Object obj) |
String |
getQuery()
Retrieves the text of the pseudo query.
|
float |
getScore()
Retrieves the quality score.
|
int |
hashCode() |
void |
readFields(DataInput in) |
void |
set(String query,
float score)
Sets the text and quality score to the given
text and quality score.
|
String |
toString() |
void |
write(DataOutput out) |
public PseudoQuery()
public PseudoQuery(String query, float score)
query - Text of the pseudo query.score - Quality score of the pseudo query.public int compareTo(PseudoQuery other)
compareTo in interface Comparable<PseudoQuery>public String getQuery()
public float getScore()
public void readFields(DataInput in) throws IOException
readFields in interface WritableIOExceptionpublic void set(String query, float score)
query - Text of the pseudo query.score - Quality score of the pseudo query.public void write(DataOutput out) throws IOException
write in interface WritableIOException