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, indiceEOL| 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, setIdnextprotected 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 PostinggetFrequency in class ArrayOfIdsIterablePostingpublic int getDocumentLength()
ArrayOfIdsIterablePostinggetDocumentLength in interface PostinggetDocumentLength in class ArrayOfIdsIterablePostingTerrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow