public class PhraseIterablePosting extends ANDIterablePosting implements BlockPosting
currentId, frequency, ips, termCount
EOL
Constructor and Description |
---|
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, setId
next
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDocumentLength, getFrequency, getId, setId
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 Platform4.1. Copyright © 2004-2015, University of Glasgow