Class VitamMongoCursor<T>
java.lang.Object
fr.gouv.vitam.common.database.server.mongodb.VitamMongoCursor<T>
- All Implemented Interfaces:
com.mongodb.client.MongoCursor<T>
,Closeable
,AutoCloseable
,Iterator<T>
-
Constructor Summary
ConstructorDescriptionVitamMongoCursor
(com.mongodb.client.MongoCursor<T> cursor) VitamMongoCursor
(com.mongodb.client.MongoCursor<T> cursor, long total, String scrollId) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Constructor Details
-
VitamMongoCursor
-
VitamMongoCursor
-
-
Method Details
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfacecom.mongodb.client.MongoCursor<T>
-
hasNext
public boolean hasNext() -
next
-
available
public int available()- Specified by:
available
in interfacecom.mongodb.client.MongoCursor<T>
-
tryNext
- Specified by:
tryNext
in interfacecom.mongodb.client.MongoCursor<T>
-
getServerCursor
public com.mongodb.ServerCursor getServerCursor()- Specified by:
getServerCursor
in interfacecom.mongodb.client.MongoCursor<T>
-
getServerAddress
@NotNull public @NotNull com.mongodb.ServerAddress getServerAddress()- Specified by:
getServerAddress
in interfacecom.mongodb.client.MongoCursor<T>
-
getTotal
public long getTotal() -
getScrollId
-