Skip to content

Commit 91fae06

Browse files
committed
org.bson.types.BSONTimestamp
1 parent f8f032d commit 91fae06

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

examples/ReadOplog.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// ReadOplog.java
22

33
import com.mongodb.*;
4-
4+
import org.bson.types.*;
55
import java.util.*;
66

77
public class ReadOplog {
@@ -24,7 +24,7 @@ public static void main(String[] args)
2424
last = lastCursor.next();
2525
}
2626

27-
DBTimestamp ts = (DBTimestamp)last.get("ts");
27+
BSONTimestamp ts = (BSONTimestamp)last.get("ts");
2828
System.out.println( "starting point: " + ts );
2929

3030
while ( true ){
@@ -34,7 +34,7 @@ public static void main(String[] args)
3434
cursor.addOption( Bytes.QUERYOPTION_AWAITDATA );
3535
while ( cursor.hasNext() ){
3636
DBObject x = cursor.next();
37-
ts = (DBTimestamp)x.get("ts");
37+
ts = (BSONTimestamp)x.get("ts");
3838
System.out.println( "\t" + x );
3939
}
4040

0 commit comments

Comments
 (0)