@Override protected IterablePosting createFinalPostingIterator( List<IterablePosting> postings, List<EntryStatistics> pointers) throws IOException { return new PhraseIterablePosting( postings.toArray(new IterablePosting[postings.size()]), pointers.toArray(new EntryStatistics[pointers.size()]), false); }
@Override protected IterablePosting createFinalPostingIterator( List<IterablePosting> postings, List<EntryStatistics> pointers) throws IOException { return new PhraseIterablePosting( postings.toArray(new IterablePosting[postings.size()]), pointers.toArray(new EntryStatistics[pointers.size()]), false); }
public static IterablePosting createPhrasePostingList(Pointer[] ps, PostingIndex<Pointer> invIndex, boolean savePositions) throws IOException { int phraseLength = ps.length; IterablePosting[] ips = new IterablePosting[phraseLength]; for(int i=0;i<phraseLength;i++) { ips[i] = invIndex.getPostings(ps[i]); } return new PhraseIterablePosting(ips, ps, savePositions); }
public static IterablePosting createPhrasePostingList(Pointer[] ps, PostingIndex<Pointer> invIndex, boolean savePositions) throws IOException { int phraseLength = ps.length; IterablePosting[] ips = new IterablePosting[phraseLength]; for(int i=0;i<phraseLength;i++) { ips[i] = invIndex.getPostings(ps[i]); } return new PhraseIterablePosting(ips, ps, savePositions); }
public static IterablePosting createPhrasePostingList(String[] terms, Lexicon<String> lex, PostingIndex<Pointer> invIndex, boolean savePositions) throws IOException { int phraseLength = terms.length; IterablePosting[] ips = new IterablePosting[phraseLength]; Pointer[] ps = new Pointer[phraseLength]; for(int i=0;i<phraseLength;i++) { LexiconEntry le = lex.getLexiconEntry(terms[i]); ips[i] = invIndex.getPostings(ps[i] = (Pointer) le); } return new PhraseIterablePosting(ips, ps, savePositions); } }
public static IterablePosting createPhrasePostingList(String[] terms, Lexicon<String> lex, PostingIndex<Pointer> invIndex, boolean savePositions) throws IOException { int phraseLength = terms.length; IterablePosting[] ips = new IterablePosting[phraseLength]; Pointer[] ps = new Pointer[phraseLength]; for(int i=0;i<phraseLength;i++) { LexiconEntry le = lex.getLexiconEntry(terms[i]); ips[i] = invIndex.getPostings(ps[i] = (Pointer) le); } return new PhraseIterablePosting(ips, ps, savePositions); } }