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 int
available()
void
close()
java.lang.String
getScrollId()
@NotNull 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
@NotNull public T next()
-
available
public int available()
- Specified by:
available
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
public java.lang.String getScrollId()
-
-