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
ConstructorsConstructorDescriptionVitamMongoCursor(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, waitMethods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Constructor Details
-
VitamMongoCursor
-
VitamMongoCursor
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfacecom.mongodb.client.MongoCursor<T>
-
hasNext
public boolean hasNext() -
next
-
available
public int available()- Specified by:
availablein interfacecom.mongodb.client.MongoCursor<T>
-
tryNext
- Specified by:
tryNextin interfacecom.mongodb.client.MongoCursor<T>
-
getServerCursor
public com.mongodb.ServerCursor getServerCursor()- Specified by:
getServerCursorin interfacecom.mongodb.client.MongoCursor<T>
-
getServerAddress
@NotNull public @NotNull com.mongodb.ServerAddress getServerAddress()- Specified by:
getServerAddressin interfacecom.mongodb.client.MongoCursor<T>
-
getTotal
public long getTotal() -
getScrollId
-