Constructor and Description |
---|
Posting()
Creates a new empty posting.
|
Posting(int docno,
short tf)
Creates a new posting with a specific docno and term frequency.
|
Modifier and Type | Method and Description |
---|---|
Posting |
clone()
Clones this posting.
|
int |
getDocno()
Returns the docno of this posting.
|
short |
getTf()
Returns the term frequency of this posting.
|
void |
readFields(DataInput in)
Deserializes this posting.
|
void |
setDocno(int docno)
Sets the docno of this posting.
|
void |
setTf(short score)
Sets the term frequency of this posting.
|
String |
toString()
Generates a human-readable String representation of this object.
|
void |
write(DataOutput out)
Serializes this posting.
|
public Posting()
public Posting(int docno, short tf)
public int getDocno()
public short getTf()
public void readFields(DataInput in) throws IOException
readFields
in interface Writable
IOException
public void setDocno(int docno)
public void setTf(short score)
public String toString()
public void write(DataOutput out) throws IOException
write
in interface Writable
IOException