Class VitamMongoCursor<T>
- java.lang.Object
-
- fr.gouv.vitam.common.database.server.mongodb.VitamMongoCursor<T>
-
- All Implemented Interfaces:
com.mongodb.client.MongoCursor<T>
,java.io.Closeable
,java.lang.AutoCloseable
,java.util.Iterator<T>
public class VitamMongoCursor<T> extends java.lang.Object implements com.mongodb.client.MongoCursor<T>
-
-
Constructor Summary
Constructors Constructor Description VitamMongoCursor(com.mongodb.client.MongoCursor<T> cursor)
VitamMongoCursor(com.mongodb.client.MongoCursor<T> cursor, long total, java.lang.String scrollId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
java.lang.String
getScrollId()
com.mongodb.ServerAddress
getServerAddress()
com.mongodb.ServerCursor
getServerCursor()
long
getTotal()
boolean
hasNext()
T
next()
T
tryNext()
-
-
-
Method Detail
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Specified by:
close
in interfacecom.mongodb.client.MongoCursor<T>
-
hasNext
public boolean hasNext()
-
next
@Nonnull public T next()
-
getServerCursor
public com.mongodb.ServerCursor getServerCursor()
- Specified by:
getServerCursor
in interfacecom.mongodb.client.MongoCursor<T>
-
getServerAddress
@Nonnull public com.mongodb.ServerAddress getServerAddress()
- Specified by:
getServerAddress
in interfacecom.mongodb.client.MongoCursor<T>
-
getTotal
public long getTotal()
-
getScrollId
public java.lang.String getScrollId()
-
-