mirror of https://github.com/apache/lucene.git
LUCENE-1592: deprecate TermsEnum.skipTo()
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@783747 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2099947cdf
commit
fd63593d66
|
@ -37,8 +37,6 @@ public abstract class TermEnum {
|
||||||
/** Closes the enumeration to further activity, freeing resources. */
|
/** Closes the enumeration to further activity, freeing resources. */
|
||||||
public abstract void close() throws IOException;
|
public abstract void close() throws IOException;
|
||||||
|
|
||||||
// Term Vector support
|
|
||||||
|
|
||||||
/** Skips terms to the first beyond the current whose value is
|
/** Skips terms to the first beyond the current whose value is
|
||||||
* greater or equal to <i>target</i>. <p>Returns true iff there is such
|
* greater or equal to <i>target</i>. <p>Returns true iff there is such
|
||||||
* an entry. <p>Behaves as if written: <pre>
|
* an entry. <p>Behaves as if written: <pre>
|
||||||
|
@ -52,6 +50,9 @@ public abstract class TermEnum {
|
||||||
* </pre>
|
* </pre>
|
||||||
* Some implementations *could* be considerably more efficient than a linear scan.
|
* Some implementations *could* be considerably more efficient than a linear scan.
|
||||||
* Check the implementation to be sure.
|
* Check the implementation to be sure.
|
||||||
|
* @deprecated This method is not performant and will be removed in Lucene 3.0.
|
||||||
|
* Use {@link IndexReader#terms(Term)} to create a new TermEnum positioned at a
|
||||||
|
* given term.
|
||||||
*/
|
*/
|
||||||
public boolean skipTo(Term target) throws IOException {
|
public boolean skipTo(Term target) throws IOException {
|
||||||
do {
|
do {
|
||||||
|
|
Loading…
Reference in New Issue