|
Lucene example source code file (TermFreqIterator.java)
The Lucene TermFreqIterator.java source codepackage org.apache.lucene.search.spell; import java.util.Iterator; public interface TermFreqIterator extends Iterator<String> { public float freq(); public static class TermFreqIteratorWrapper implements TermFreqIterator { private Iterator<String> wrapped; public TermFreqIteratorWrapper(Iterator<String> wrapped) { this.wrapped = wrapped; } public float freq() { return 1.0f; } public boolean hasNext() { return wrapped.hasNext(); } public String next() { return wrapped.next().toString(); } public void remove() { throw new UnsupportedOperationException(); } } } Other Lucene examples (source code examples)Here is a short list of links related to this Lucene TermFreqIterator.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.