public class ArrayOfBasicIterablePosting extends ArrayOfIdsIterablePosting
Modifier and Type | Field and Description |
---|---|
protected int[] |
doclens |
protected int[] |
frequencies
frequencies of all of the stored postings
|
ids, indice
EOL
Constructor and Description |
---|
ArrayOfBasicIterablePosting(int[] _ids,
int[] _freqs)
Make a new posting list with these ids and frequencies
|
ArrayOfBasicIterablePosting(int[] _ids,
int[] _freqs,
int[] _lens) |
Modifier and Type | Method and Description |
---|---|
int |
getDocumentLength()
Return the length of the document for this posting.
|
int |
getFrequency()
Return the frequency of the term in the current document
|
asWritablePosting, close, endOfPostings, getId, next, setId
next
protected int[] frequencies
protected int[] doclens
public ArrayOfBasicIterablePosting(int[] _ids, int[] _freqs)
public ArrayOfBasicIterablePosting(int[] _ids, int[] _freqs, int[] _lens)
public int getFrequency()
getFrequency
in interface Posting
getFrequency
in class ArrayOfIdsIterablePosting
public int getDocumentLength()
ArrayOfIdsIterablePosting
getDocumentLength
in interface Posting
getDocumentLength
in class ArrayOfIdsIterablePosting
Terrier 4.0. Copyright © 2004-2014 University of Glasgow