@InterfaceAudience.Public @InterfaceStability.Evolving public class KuduScanner extends Object
AsyncKuduScanner
. Offers the same API but with blocking methods.Modifier and Type | Class and Description |
---|---|
static class |
KuduScanner.KuduScannerBuilder
A Builder class to build
KuduScanner . |
Modifier and Type | Method and Description |
---|---|
RowResultIterator |
close()
Closes this scanner (don't forget to call this when you're done with it!).
|
boolean |
hasMoreRows()
Tells if the last rpc returned that there might be more rows to scan.
|
RowResultIterator |
nextRows()
Scans a number of rows.
|
public boolean hasMoreRows()
public RowResultIterator nextRows() throws Exception
Once this method returns null
once (which indicates that this
Scanner
is done scanning), calling it again leads to an undefined
behavior.
Exception
public RowResultIterator close() throws Exception
Closing a scanner already closed has no effect.
Exception
Copyright © 2015. All rights reserved.