n
. Define the current document k
associated with this document iterator as follows:
If k
is larger than or equal to n
, then this method does nothing and returns k
. Otherwise, a call to this method is equivalent to
while( ( k = nextDocument() ) < n && k != -1 ); return k == -1 ? Integer.MAX_VALUE : k;
Thus, when a result k
≠ {@link Integer#MAX_VALUE}is returned, the state of this iterator will be exactly the same as after a call to {@link #nextDocument()} that returned k
. In particular, the first document larger than or equal to n
(when returned by this method) will not be returned by the next call to {@link #nextDocument()}.
@param n a document pointer.
@return a document pointer larger than or equal to n
if available, {@link Integer#MAX_VALUE}otherwise.
This operation can be performed in O(1). @param index the index in the sequence to skip to @return the i-th point in the Sobol sequence @throws NotPositiveException if index < 0
Returns true iff there is such an entry.
Behaves as if written:
boolean skipTo(int target) { do { if (!next()) return false; } while (target > doc()); return true; }Some implementations are considerably more efficient than that.
Returns true iff there is such an entry.
Behaves as if written:
public boolean skipTo(Term target) { do { if (!next()) return false; } while (target > term()); return true; }Some implementations are considerably more efficient than that.
Returns true iff there is such an entry.
Behaves as if written:
boolean skipTo(int target) { do { if (!next()) return false; } while (target > doc()); return true; }Some implementations are considerably more efficient than that.
Behaves as if written:
boolean skipTo(int target) { do { if (!next()) return false; } while (target > doc()); return true; }Most implementations are considerably more efficient than that.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|