Class ScannerCallback

  • All Implemented Interfaces:
    com.stumbleupon.async.Callback<com.stumbleupon.async.Deferred<Void>,​org.apache.kudu.client.RowResultIterator>

    public final class ScannerCallback
    extends Object
    implements com.stumbleupon.async.Callback<com.stumbleupon.async.Deferred<Void>,​org.apache.kudu.client.RowResultIterator>
    Scanner Callback that produces CalciteScannerMessage into a BlockingQueue. This will contain rows from Kudu in Scanner order which is different from sorted order. To get sorted order out of this Callback it needs to be used on a AsyncKuduScanner over exactly one Partition
    • Method Detail

      • nextBatch

        public void nextBatch()
        After an Batch is completed, this method should be called to fetch the next
      • call

        public com.stumbleupon.async.Deferred<Void> call​(org.apache.kudu.client.RowResultIterator nextBatch)
        Specified by:
        call in interface com.stumbleupon.async.Callback<com.stumbleupon.async.Deferred<Void>,​org.apache.kudu.client.RowResultIterator>