Kudu C++ client API
|
A batch of zero or more rows returned by a scan operation. More...
#include <scan_batch.h>
Classes | |
class | const_iterator |
Iterator to work with immutable KuduScanBatch instances. More... | |
class | RowPtr |
A handle for a single row in KuduScanBatch . More... |
Public Types | |
typedef RowPtr | value_type |
A handy typedef for the RowPtr. |
Public Member Functions | |
int | NumRows () const |
KuduScanBatch::RowPtr | Row (int idx) const |
const_iterator | begin () const |
const_iterator | end () const |
const KuduSchema * | projection_schema () const |
Advanced/Unstable API | |
There are no guarantees on the stability of the format returned by these methods, which might change at any given time.
| |
Slice | direct_data () const |
Slice | indirect_data () const |
A batch of zero or more rows returned by a scan operation.
Every call to KuduScanner::NextBatch() returns a batch of zero or more rows. You can iterate over the rows in the batch using:
range-foreach loop (C++11):
regular for loop (C++03):
or
|
inline |
Slice kudu::client::KuduScanBatch::direct_data | ( | ) | const |
Return a slice that points to the direct row data received from the server. Users of this API must have knowledge of the data format in order to decode the data.
|
inline |
Slice kudu::client::KuduScanBatch::indirect_data | ( | ) | const |
Like the method above, but for indirect data.
int kudu::client::KuduScanBatch::NumRows | ( | ) | const |
const KuduSchema * kudu::client::KuduScanBatch::projection_schema | ( | ) | const |
KuduScanBatch::RowPtr kudu::client::KuduScanBatch::Row | ( | int | idx | ) | const |
Get a row at the specified index.
[in] | idx | The index of the row to return. |