public class PhraseIterablePosting extends ANDIterablePosting implements BlockPosting
currentId, frequency, ips, termCount
END_OF_LIST, EOL
Constructor and Description |
---|
PhraseIterablePosting(IterablePosting[] _ips,
EntryStatistics[] _p,
boolean recordPositions) |
PhraseIterablePosting(IterablePosting[] _ips,
Pointer[] _p,
boolean recordPositions) |
Modifier and Type | Method and Description |
---|---|
WritablePosting |
asWritablePosting()
Copies this posting to one free of an iterator.
|
protected boolean |
calculateFrequency()
returns true if the document matches
|
static IterablePosting |
createPhrasePostingList(Pointer[] ps,
PostingIndex<Pointer> invIndex,
boolean savePositions) |
static IterablePosting |
createPhrasePostingList(String[] terms,
Lexicon<String> lex,
PostingIndex<Pointer> invIndex,
boolean savePositions) |
int[] |
getPositions()
Return positions of occurrences
|
close, endOfPostings, getDocumentLength, getFrequency, getId, next, next, setId
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDocumentLength, getFrequency, getId, setId
public PhraseIterablePosting(IterablePosting[] _ips, EntryStatistics[] _p, boolean recordPositions) throws IOException
IOException
public PhraseIterablePosting(IterablePosting[] _ips, Pointer[] _p, boolean recordPositions) throws IOException
IOException
public WritablePosting asWritablePosting()
Posting
asWritablePosting
in interface Posting
asWritablePosting
in class ANDIterablePosting
protected boolean calculateFrequency()
ANDIterablePosting
calculateFrequency
in class ANDIterablePosting
public int[] getPositions()
BlockPosting
getPositions
in interface BlockPosting
public static IterablePosting createPhrasePostingList(Pointer[] ps, PostingIndex<Pointer> invIndex, boolean savePositions) throws IOException
IOException
public static IterablePosting createPhrasePostingList(String[] terms, Lexicon<String> lex, PostingIndex<Pointer> invIndex, boolean savePositions) throws IOException
IOException
Terrier Information Retrieval Platform 5.1. Copyright © 2004-2019, University of Glasgow