We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f8f032d commit 91fae06Copy full SHA for 91fae06
1 file changed
examples/ReadOplog.java
@@ -1,7 +1,7 @@
1
// ReadOplog.java
2
3
import com.mongodb.*;
4
-
+import org.bson.types.*;
5
import java.util.*;
6
7
public class ReadOplog {
@@ -24,7 +24,7 @@ public static void main(String[] args)
24
last = lastCursor.next();
25
}
26
27
- DBTimestamp ts = (DBTimestamp)last.get("ts");
+ BSONTimestamp ts = (BSONTimestamp)last.get("ts");
28
System.out.println( "starting point: " + ts );
29
30
while ( true ){
@@ -34,7 +34,7 @@ public static void main(String[] args)
34
cursor.addOption( Bytes.QUERYOPTION_AWAITDATA );
35
while ( cursor.hasNext() ){
36
DBObject x = cursor.next();
37
- ts = (DBTimestamp)x.get("ts");
+ ts = (BSONTimestamp)x.get("ts");
38
System.out.println( "\t" + x );
39
40
0 commit comments