BatchCursor callback should allow implementations of AsyncBatchCursor

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: Major - P3
    • 3.0.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Does not compile:

      collection.mapReduce("", "").batchCursor(new SingleResultCallback<MapReduceAsyncBatchCursor<Document>>() {
          @Override
          public void onResult(final MapReduceAsyncBatchCursor<Document> result, final Throwable t) {
              throw new UnsupportedOperationException("Not implemented yet!");
          }
      });
      

      Review the implementation the type checking also:
      https://github.com/rozza/mongo-java-driver/blob/52dd64229932ce83acdb9a63f47ce198e89fec94/driver-async/src/main/com/mongodb/async/client/OperationIterable.java#L120-L124

            Assignee:
            Unassigned
            Reporter:
            Ross Lawley
            None
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: