|
Lucene example source code file (BufferingTermFreqIteratorWrapper.java)
The Lucene BufferingTermFreqIteratorWrapper.java source codepackage org.apache.lucene.search.suggest; import java.util.ArrayList; import java.util.List; import org.apache.lucene.search.spell.TermFreqIterator; /** * This wrapper buffers incoming elements. */ public class BufferingTermFreqIteratorWrapper implements TermFreqIterator { /** Entry in the buffer. */ public static final class Entry implements Comparable<Entry> { String word; float freq; public Entry(String word, float freq) { this.word = word; this.freq = freq; } public int compareTo(Entry o) { return word.compareTo(o.word); } } protected ArrayList<Entry> entries = new ArrayList Other Lucene examples (source code examples)Here is a short list of links related to this Lucene BufferingTermFreqIteratorWrapper.java source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.