Class ScannerCallback

java.lang.Object
com.twilio.kudu.sql.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
  • Constructor Details

  • Method Details

    • 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>