public class AdaptingHits extends Object implements Hits
Constructor and Description |
---|
AdaptingHits() |
AdaptingHits(int threshold) |
Modifier and Type | Method and Description |
---|---|
int |
next()
Return the doc number of the next hit in the set.
|
void |
set(int doc)
Marks the document with doc number
doc as a hit. |
int |
skipTo(int target)
Skips to the first match beyond the current whose document number is
greater than or equal to the given target.
|
public AdaptingHits()
public AdaptingHits(int threshold)
public int next() throws IOException
next
in interface Hits
IOException
public void set(int doc)
doc
as a hit.
Implementations may throw an exception if you call set() after next() or
skipTo() has been called.public int skipTo(int target) throws IOException
skipTo
in interface Hits
IOException
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.