File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -645,6 +645,22 @@ public DBCollection getCollection(){
645
645
return _collection ;
646
646
}
647
647
648
+ @ Override
649
+ public String toString () {
650
+ StringBuilder sb = new StringBuilder ();
651
+ sb .append ("Cursor id=" ).append (getCursorId ());
652
+ sb .append (", ns=" ).append (getCollection ().getFullName ());
653
+ sb .append (", query=" ).append (getQuery ());
654
+ if (getKeysWanted () != null )
655
+ sb .append (", fields=" ).append (getKeysWanted ());
656
+ sb .append (", numIterated=" ).append (_num );
657
+ if (_numWanted > 0 )
658
+ sb .append (", numWanted=" ).append (_numWanted );
659
+ if (_skip > 0 )
660
+ sb .append (", skip=" ).append (_skip );
661
+ return sb .toString ();
662
+ }
663
+
648
664
// ---- query setup ----
649
665
private final DBCollection _collection ;
650
666
private final DBObject _query ;
You can’t perform that action at this time.
0 commit comments