public class ProximityIterablePosting extends ANDIterablePosting
Modifier and Type | Field and Description |
---|---|
protected int |
window |
currentId, frequency, ips, termCount
EOL
Constructor and Description |
---|
ProximityIterablePosting(IterablePosting[] _ips,
Pointer[] _p,
int window) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
calculateFrequency()
returns true if the document matches
|
static IterablePosting |
createProximityPostingList(Pointer[] ps,
PostingIndex<Pointer> invIndex,
int blockDistance) |
static IterablePosting |
createProximityPostingList(String[] terms,
Lexicon<String> lex,
PostingIndex<Pointer> invIndex,
int blockDistance) |
asWritablePosting, close, endOfPostings, getDocumentLength, getFrequency, getId, next, setId
next
public ProximityIterablePosting(IterablePosting[] _ips, Pointer[] _p, int window) throws IOException
IOException
protected boolean calculateFrequency()
ANDIterablePosting
calculateFrequency
in class ANDIterablePosting
public static IterablePosting createProximityPostingList(Pointer[] ps, PostingIndex<Pointer> invIndex, int blockDistance) throws IOException
IOException
public static IterablePosting createProximityPostingList(String[] terms, Lexicon<String> lex, PostingIndex<Pointer> invIndex, int blockDistance) throws IOException
IOException
Terrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow