public class PhraseIterablePosting extends ANDIterablePosting implements BlockPosting
currentId, frequency, ips, termCountEOL| 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, setIdnextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDocumentLength, getFrequency, getId, setIdpublic PhraseIterablePosting(IterablePosting[] _ips, Pointer[] _p, boolean recordPositions) throws IOException
IOExceptionpublic WritablePosting asWritablePosting()
PostingasWritablePosting in interface PostingasWritablePosting in class ANDIterablePostingprotected boolean calculateFrequency()
ANDIterablePostingcalculateFrequency in class ANDIterablePostingpublic int[] getPositions()
BlockPostinggetPositions in interface BlockPostingpublic static IterablePosting createPhrasePostingList(Pointer[] ps, PostingIndex<Pointer> invIndex, boolean savePositions) throws IOException
IOExceptionpublic static IterablePosting createPhrasePostingList(String[] terms, Lexicon<String> lex, PostingIndex<Pointer> invIndex, boolean savePositions) throws IOException
IOExceptionTerrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow