Package org.terrier.structures.postings
Interface WritablePosting
-
- All Superinterfaces:
Posting
,java.io.Serializable
,org.apache.hadoop.io.Writable
- All Known Implementing Classes:
BasicIterablePosting
,BasicIterablePostingDocidOnly
,BasicPostingImpl
,BlockFieldIterablePosting
,BlockFieldPostingImpl
,BlockIterablePosting
,BlockPostingImpl
,FieldIterablePosting
,FieldPostingImpl
public interface WritablePosting extends Posting, org.apache.hadoop.io.Writable, java.io.Serializable
Allow aPosting
to be serialized to a DataOut.- Since:
- 3.0
- Author:
- Craig Macdonald
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
setDocumentLength(int l)
Set the length of the document of the current posting in tokens.void
setId(int id)
It may be of benefit to update the frequency of the id in some applications.-
Methods inherited from interface org.terrier.structures.postings.Posting
asWritablePosting, getDocumentLength, getFrequency, getId
-
-