Kudu C++ client API
|
Builder for Partitioner instances. More...
#include <client.h>
Public Member Functions | |
KuduPartitionerBuilder (sp::shared_ptr< KuduTable > table) | |
KuduPartitionerBuilder * | SetBuildTimeout (MonoDelta timeout) |
Status | Build (KuduPartitioner **partitioner) |
Builder for Partitioner instances.
|
explicit |
Construct an instance of the class.
[in] | table | The table whose rows should be partitioned. |
Status kudu::client::KuduPartitionerBuilder::Build | ( | KuduPartitioner ** | partitioner | ) |
Create a KuduPartitioner object for the specified table.
This fetches all of the partitioning information up front if it is not already cached by the associated KuduClient object. Thus, it may time out or have an error if the Kudu master is not accessible.
[out] | partitioner | The resulting KuduPartitioner instance; caller gets ownership. |
KuduPartitionerBuilder* kudu::client::KuduPartitionerBuilder::SetBuildTimeout | ( | MonoDelta | timeout | ) |
Set the timeout used for building the Partitioner object.
[in] | timeout | The timeout to set. |