Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-1623

BatchCursor callback should allow implementations of AsyncBatchCursor

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • 3.0.0
    • Affects Version/s: None
    • Component/s: 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 Unassigned
            Reporter:
            ross@mongodb.com Ross Lawley
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: