|
Terrier IR Platform 2.2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uk.ac.gla.terrier.structures.indexing.singlepass.PostingInRun
public abstract class PostingInRun
Base class for PostingInRun classes
Constructor Summary | |
---|---|
PostingInRun()
|
Method Summary | |
---|---|
int |
append(BitOut bos,
int last)
Writes the document data of this posting to a BitOut
It encodes the data with the right compression methods. |
abstract int |
append(BitOut bos,
int last,
int runShift)
Writes the document data of this posting to a BitOut
It encodes the data with the right compression methods. |
int |
getDf()
|
java.lang.String |
getTerm()
|
int |
getTF()
|
void |
setDf(int df)
Setter for the document frequency. |
void |
setPostingSource(BitIn source)
Set where the postings should be read from |
void |
setTerm(java.lang.String term)
Setter for the term. |
void |
setTF(int tf)
Setter for the term frequency. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PostingInRun()
Method Detail |
---|
public int getDf()
public void setDf(int df)
df
- int with the new document frequency.public java.lang.String getTerm()
public void setTerm(java.lang.String term)
term
- String containing the term for this posting list.public int getTF()
public void setTF(int tf)
tf
- the new term frequency.public void setPostingSource(BitIn source)
public abstract int append(BitOut bos, int last, int runShift) throws java.io.IOException
BitOut
It encodes the data with the right compression methods.
The stream is written as d1, idf(d1) , d2 - d1, idf(d2)
etc.
bos
- BitOut to be written.last
- int representing the last document written in timport uk.ac.gla.terrier.structures.indexing.singlepass.RunReader;his posting.
java.io.IOException
public int append(BitOut bos, int last) throws java.io.IOException
BitOut
It encodes the data with the right compression methods.
The stream is written as d1, idf(d1) , d2 - d1, idf(d2)
etc.
bos
- BitOut to be written.last
- int representing the last document written in this posting.
java.io.IOException
|
Terrier IR Platform 2.2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |