public class MarkLogicCursorResult extends CursorResult<com.marklogic.xcc.ResultSequence,com.marklogic.xcc.ResultItem>
CursorResult
for MarkLogic which handles the session close.Modifier and Type | Field and Description |
---|---|
protected com.marklogic.xcc.Session |
session |
batchSize, cursor, keepAliveSeconds, lastCallTimestamp
Constructor and Description |
---|
MarkLogicCursorResult(com.marklogic.xcc.Session session,
com.marklogic.xcc.ResultSequence cursor,
int batchSize,
int keepAliveSeconds) |
Modifier and Type | Method and Description |
---|---|
void |
close()
CAUTION: if your cursor doesn't implement
Closeable , we just set the field to null |
boolean |
hasNext() |
com.marklogic.xcc.ResultItem |
next() |
getBatchSize, getCursor, timedOut, touch
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining, remove
protected final com.marklogic.xcc.Session session
public MarkLogicCursorResult(com.marklogic.xcc.Session session, com.marklogic.xcc.ResultSequence cursor, int batchSize, int keepAliveSeconds)
public boolean hasNext()
hasNext
in interface Iterator<com.marklogic.xcc.ResultItem>
hasNext
in class CursorResult<com.marklogic.xcc.ResultSequence,com.marklogic.xcc.ResultItem>
public com.marklogic.xcc.ResultItem next()
next
in interface Iterator<com.marklogic.xcc.ResultItem>
next
in class CursorResult<com.marklogic.xcc.ResultSequence,com.marklogic.xcc.ResultItem>
public void close()
CursorResult
Closeable
, we just set the field to nullclose
in interface Closeable
close
in interface AutoCloseable
close
in class CursorResult<com.marklogic.xcc.ResultSequence,com.marklogic.xcc.ResultItem>
Copyright © 2018 Nuxeo. All rights reserved.