25 #ifndef KUDU_CLIENT_CLIENT_H
26 #define KUDU_CLIENT_CLIENT_H
38 #include "kudu/client/row_result.h"
39 #include "kudu/client/scan_predicate.h"
40 #include "kudu/client/schema.h"
42 #ifdef KUDU_HEADERS_NO_STUBS
43 #include <gtest/gtest_prod.h>
45 #include "kudu/gutil/macros.h"
46 #include "kudu/gutil/port.h"
48 #include "kudu/client/stubs.h"
50 #include "kudu/util/kudu_export.h"
51 #include "kudu/util/slice.h"
58 class ClientStressTest_TestUniqueClientIds_Test;
59 class MetaCacheLookupStressTest_PerfSynthetic_Test;
60 class DisableWriteWhenExceedingQuotaTest;
64 class PartitionSchema;
65 class SecurityUnknownTskTest;
77 namespace transactions {
80 class TxnSystemClient;
84 class LeaderMasterProxy;
85 class RemoteKsckCluster;
92 class KuduColumnarScanBatch;
94 class KuduDeleteIgnore;
96 class KuduInsertIgnore;
97 class KuduLoggingCallback;
98 class KuduPartitioner;
101 class KuduStatusCallback;
102 class KuduTableAlterer;
103 class KuduTableCreator;
104 class KuduTableStatistics;
106 class KuduTabletServer;
108 class KuduUpdateIgnore;
111 class KuduWriteOperation;
112 class ResourceMetrics;
116 class ErrorCollector;
117 class GetTableSchemaRpc;
121 class RemoteTabletServer;
122 class ReplicaController;
123 class RetrieveAuthzTokenRpc;
124 class ScanBatchDataInterface;
126 template <
class ReqClass,
class RespClass>
128 template <
class ReqClass,
class RespClass>
152 void KUDU_EXPORT UninstallLoggingCallback();
169 void KUDU_EXPORT SetVerboseLogLevel(
int level);
180 Status KUDU_EXPORT SetInternalSignalNumber(
int signum) WARN_UNUSED_RESULT;
193 Status KUDU_EXPORT DisableSaslInitialization() WARN_UNUSED_RESULT;
218 Status KUDU_EXPORT DisableOpenSSLInitialization() WARN_UNUSED_RESULT;
222 std::
string KUDU_EXPORT GetShortVersionString();
226 std::
string KUDU_EXPORT GetAllVersionInfo();
381 class KUDU_NO_EXPORT Data;
383 friend class internal::ReplicaController;
409 public sp::enable_shared_from_this<KuduTransaction> {
488 Status IsCommitComplete(
bool* is_complete,
489 Status* completion_status) WARN_UNUSED_RESULT;
568 class KUDU_NO_EXPORT Data;
601 std::string* serialized_txn,
620 const std::
string& serialized_txn,
627 FRIEND_TEST(ClientTest, TxnIdOfTransactionalSession);
628 FRIEND_TEST(ClientTest, TxnToken);
630 class KUDU_NO_EXPORT Data;
681 bool* create_in_progress);
702 Status DeleteTableInCatalogs(
const std::string& table_name,
703 bool modify_external_catalogs) KUDU_NO_EXPORT;
723 bool* alter_in_progress);
750 const std::string& filter =
"");
778 sp::shared_ptr<KuduTable>* table);
826 Status GetTablet(
const std::string& tablet_id,
836 Status GetTableStatistics(
const std::string& table_name,
846 std::string GetMasterAddresses() const KUDU_NO_EXPORT;
928 std::string GetHiveMetastoreUris() const KUDU_NO_EXPORT;
935 bool GetHiveMetastoreSaslEnabled() const KUDU_NO_EXPORT;
946 std::
string GetHiveMetastoreUuid() const KUDU_NO_EXPORT;
954 std::
string location() const KUDU_NO_EXPORT;
959 std::
string cluster_id() const KUDU_NO_EXPORT;
963 class KUDU_NO_EXPORT Data;
965 template <class ReqClass, class RespClass>
966 friend class internal::AsyncLeaderMasterRpc;
967 template <class ReqClass, class RespClass>
968 friend class internal::AsyncRandomTxnManagerRpc;
970 friend class ClientTest;
971 friend class ConnectToClusterBaseTest;
982 friend class internal::Batcher;
983 friend class internal::GetTableSchemaRpc;
984 friend class internal::LookupRpc;
985 friend class internal::MetaCache;
986 friend class internal::RemoteTablet;
987 friend class internal::RemoteTabletServer;
988 friend class internal::RetrieveAuthzTokenRpc;
989 friend class internal::WriteRpc;
990 friend class kudu::AuthzTokenTest;
991 friend class kudu::DisableWriteWhenExceedingQuotaTest;
992 friend class kudu::SecurityUnknownTskTest;
993 friend class transactions::CoordinatorRpc;
994 friend class transactions::ParticipantRpc;
995 friend class transactions::TxnSystemClient;
996 friend class tools::LeaderMasterProxy;
997 friend class tools::RemoteKsckCluster;
998 friend class tools::TableLister;
1000 FRIEND_TEST(kudu::ClientStressTest, TestUniqueClientIds);
1001 FRIEND_TEST(kudu::MetaCacheLookupStressTest, PerfSynthetic);
1002 FRIEND_TEST(ClientTest, ClearCacheAndConcurrentWorkload);
1003 FRIEND_TEST(ClientTest, ConnectionNegotiationTimeout);
1004 FRIEND_TEST(ClientTest, TestBasicIdBasedLookup);
1005 FRIEND_TEST(ClientTest, TestCacheAuthzTokens);
1006 FRIEND_TEST(ClientTest, TestGetSecurityInfoFromMaster);
1007 FRIEND_TEST(ClientTest, TestGetTabletServerBlacklist);
1008 FRIEND_TEST(ClientTest, TestGetTabletServerDeterministic);
1009 FRIEND_TEST(ClientTest, TestMasterDown);
1010 FRIEND_TEST(ClientTest, TestMasterLookupPermits);
1011 FRIEND_TEST(ClientTest, TestMetaCacheExpiry);
1012 FRIEND_TEST(ClientTest, TestMetaCacheExpiryById);
1013 FRIEND_TEST(ClientTest, TestMetaCacheExpiryWithKeysAndIds);
1014 FRIEND_TEST(ClientTest, TestMetaCacheLookupNoLeaders);
1015 FRIEND_TEST(ClientTest, TestMetaCacheWithKeysAndIds);
1016 FRIEND_TEST(ClientTest, TestNonCoveringRangePartitions);
1017 FRIEND_TEST(ClientTest, TestRetrieveAuthzTokenInParallel);
1018 FRIEND_TEST(ClientTest, TestReplicatedTabletWritesWithLeaderElection);
1019 FRIEND_TEST(ClientTest, TestScanFaultTolerance);
1020 FRIEND_TEST(ClientTest, TestScanTimeout);
1021 FRIEND_TEST(ClientTest, TestWriteWithDeadMaster);
1022 FRIEND_TEST(MasterFailoverTest, TestPauseAfterCreateTableIssued);
1023 FRIEND_TEST(MultiTServerClientTest, TestSetReplicationFactor);
1056 const std::string& location() const KUDU_NO_EXPORT;
1060 class KUDU_NO_EXPORT Data;
1091 friend class internal::ReplicaController;
1093 class KUDU_NO_EXPORT Data;
1110 const std::string&
id()
const;
1117 const std::vector<const KuduReplica*>&
replicas()
const;
1123 class KUDU_NO_EXPORT Data;
1180 int32_t num_buckets);
1198 int32_t num_buckets,
1269 int32_t num_buckets,
1272 class KUDU_NO_EXPORT Data;
1367 ATTRIBUTE_DEPRECATED(
"use add_range_partition_split() instead");
1438 class KUDU_NO_EXPORT Data;
1441 friend class transactions::TxnSystemClient;
1491 class KUDU_NO_EXPORT Data;
1521 class KUDU_EXPORT
KuduTable :
public sp::enable_shared_from_this<KuduTable> {
1535 const std::string&
id()
const;
1643 std::vector<KuduBloomFilter*>* bloom_filters);
1686 const std::vector<Slice>& bloom_filters);
1713 std::vector<KuduValue*>* values);
1760 Status ListPartitions(std::vector<Partition>* partitions) KUDU_NO_EXPORT;
1765 class KUDU_NO_EXPORT Data;
1772 KuduTable(
const sp::shared_ptr<KuduClient>& client,
1773 const std::string& name,
1774 const std::string&
id,
1776 const std::string& owner,
1777 const std::string& comment,
1779 const PartitionSchema& partition_schema,
1780 const std::map<std::string, std::string>& extra_configs);
1928 const std::string& dimension_label,
2038 KuduTableAlterer* modify_external_catalogs(
bool modify_external_catalogs) KUDU_NO_EXPORT;
2049 class KUDU_NO_EXPORT Data;
2052 friend class tools::TableAlter;
2053 friend class kudu::AlterTableTest;
2055 FRIEND_TEST(MultiTServerClientTest, TestSetReplicationFactor);
2058 const std::string& name);
2103 class KUDU_NO_EXPORT Data;
2105 friend class internal::Batcher;
2106 friend class internal::ErrorCollector;
2176 class KUDU_EXPORT
KuduSession :
public sp::enable_shared_from_this<KuduSession> {
2488 bool HasPendingOperations() const;
2511 int CountBufferedOperations() const
2512 ATTRIBUTE_DEPRECATED("this method is experimental and will disappear "
2513 "in a future release");
2539 Status SetErrorBufferSpace(
size_t size_bytes);
2550 int CountPendingErrors() const;
2562 void GetPendingErrors(std::vector<
KuduError*>* errors,
bool* overflowed);
2568 class KUDU_NO_EXPORT Data;
2570 friend class ClientTest;
2573 friend class internal::Batcher;
2574 friend class tablet::FuzzTest;
2575 FRIEND_TEST(ClientTest, TestAutoFlushBackgroundAndErrorCollector);
2576 FRIEND_TEST(ClientTest, TestAutoFlushBackgroundApplyBlocks);
2577 FRIEND_TEST(ClientTest, TxnIdOfTransactionalSession);
2661 enum { kScanTimeoutMillis = 30000 };
2702 ATTRIBUTE_DEPRECATED(
"use SetProjectedColumnNames() instead");
2732 ATTRIBUTE_DEPRECATED(
"use AddLowerBound() instead");
2752 ATTRIBUTE_DEPRECATED(
"use AddExclusiveUpperBound() instead");
2837 ATTRIBUTE_DEPRECATED(
"use NextBatch(KuduScanBatch*) instead");
2909 ATTRIBUTE_DEPRECATED(
"use SetFaultTolerant() instead");
2930 Status SetSnapshotMicros(uint64_t snapshot_timestamp_micros) WARN_UNUSED_RESULT;
2941 Status SetSnapshotRaw(uint64_t snapshot_timestamp) WARN_UNUSED_RESULT;
2959 Status SetDiffScan(uint64_t start_timestamp, uint64_t end_timestamp)
2960 WARN_UNUSED_RESULT KUDU_NO_EXPORT;
2986 static const uint64_t NO_FLAGS = 0;
2993 static const uint64_t PAD_UNIXTIME_MICROS_TO_16_BYTES = 1 << 0;
3002 static const uint64_t COLUMNAR_LAYOUT = 1 << 1;
3039 Status SetLimit(int64_t limit) WARN_UNUSED_RESULT;
3046 std::
string ToString() const;
3049 class KUDU_NO_EXPORT Data;
3051 Status NextBatch(internal::ScanBatchDataInterface* batch);
3054 FRIEND_TEST(ClientTest, TestBlockScannerHijackingAttempts);
3055 FRIEND_TEST(ClientTest, TestScanCloseProxy);
3056 FRIEND_TEST(ClientTest, TestScanFaultTolerance);
3057 FRIEND_TEST(ClientTest, TestScanNoBlockCaching);
3058 FRIEND_TEST(ClientTest, TestScanTimeout);
3059 FRIEND_TEST(ClientTest, TestReadAtSnapshotNoTimestampSet);
3060 FRIEND_TEST(ConsistencyITest, TestSnapshotScanTimestampReuse);
3061 FRIEND_TEST(ScanTokenTest, TestScanTokens);
3131 const std::string& serialized_token,
3135 class KUDU_NO_EXPORT Data;
3221 Status SetSnapshotMicros(uint64_t snapshot_timestamp_micros)
3225 Status SetSnapshotRaw(uint64_t snapshot_timestamp) WARN_UNUSED_RESULT;
3230 Status SetDiffScan(uint64_t start_timestamp, uint64_t end_timestamp)
3231 WARN_UNUSED_RESULT KUDU_NO_EXPORT;
3235 Status SetTimeoutMillis(
int millis) WARN_UNUSED_RESULT;
3244 Status IncludeTableMetadata(
bool include_metadata) WARN_UNUSED_RESULT;
3253 Status IncludeTabletMetadata(
bool include_metadata) WARN_UNUSED_RESULT;
3266 class KUDU_NO_EXPORT Data;
3311 class KUDU_NO_EXPORT Data;
3351 class KUDU_NO_EXPORT Data;
Status Commit() WARN_UNUSED_RESULT
MonoDelta connection_negotiation_timeout() const
KuduWriteOperation * release_failed_op()
KuduTableCreator & extra_configs(const std::map< std::string, std::string > &extra_configs)
KuduTableAlterer * wait(bool wait)
This class represents an error which occurred in a write operation.
Definition: client.h:2071
Representation of a Kudu client session.
Definition: client.h:2176
Status CreateSession(sp::shared_ptr< KuduSession > *session) WARN_UNUSED_RESULT
KuduTableAlterer * NewTableAlterer(const std::string &table_name)
const std::string & id() const
const std::string & hostname() const
bool IsMultiMaster() const
KuduTableAlterer * DropRangePartition(KuduPartialRow *lower_bound, KuduPartialRow *upper_bound, KuduTableCreator::RangePartitionBound lower_bound_type=KuduTableCreator::INCLUSIVE_BOUND, KuduTableCreator::RangePartitionBound upper_bound_type=KuduTableCreator::EXCLUSIVE_BOUND)
In-memory representation of a remote tablet.
Definition: client.h:1104
Status AddExclusiveUpperBoundPartitionKeyRaw(const Slice &partition_key)
A single row delete ignore to be sent to the cluster.
Definition: write_op.h:300
KuduTableCreator & set_range_partition_columns(const std::vector< std::string > &columns)
Status IsCreateTableInProgress(const std::string &table_name, bool *create_in_progress)
KuduClientBuilder & master_server_addrs(const std::vector< std::string > &addrs)
KuduTableAlterer * SetOwner(const std::string &new_owner)
In-memory statistics of table.
Definition: client.h:1452
const std::string & id() const
KuduTableCreator & dimension_label(const std::string &dimension_label)
KuduPartitionerBuilder * SetBuildTimeout(MonoDelta timeout)
KuduInsertIgnore * NewInsertIgnore()
KuduTableAlterer * timeout(const MonoDelta &timeout)
RangePartitionBound
Range partition bound type.
Definition: client.h:1216
KuduTableCreator & split_rows(const std::vector< const KuduPartialRow * > &split_rows) ATTRIBUTE_DEPRECATED("use add_range_partition_split() instead")
Status ExportAuthenticationCredentials(std::string *authn_creds) const
Status TableExists(const std::string &table_name, bool *exists)
Status Build(KuduPartitioner **partitioner)
Smart pointer typedefs for externally-faced code.
KuduTableAlterer * AlterExtraConfig(const std::map< std::string, std::string > &extra_configs)
const KuduWriteOperation & failed_op() const
@ CLIENT_PROPAGATED
Definition: client.h:2261
bool was_possibly_successful() const
Status SetCacheBlocks(bool cache_blocks) WARN_UNUSED_RESULT
Status IsAlterTableInProgress(const std::string &table_name, bool *alter_in_progress)
const std::string & comment() const
KuduTableCreator & add_range_partition(KuduPartialRow *lower_bound, KuduPartialRow *upper_bound, RangePartitionBound lower_bound_type=INCLUSIVE_BOUND, RangePartitionBound upper_bound_type=EXCLUSIVE_BOUND)
A generic catalog of simple metrics.
Definition: resource_metrics.h:39
SerializationOptions & enable_keepalive(bool enable)
Status Serialize(std::string *serialized_txn, const SerializationOptions &options=SerializationOptions()) const WARN_UNUSED_RESULT
Status SetMutationBufferSpace(size_t size_bytes) WARN_UNUSED_RESULT
Status SetSelection(KuduClient::ReplicaSelection selection) WARN_UNUSED_RESULT
Definition: client.h:3329
Status Build(sp::shared_ptr< KuduClient > *client)
This class is a representation of a single scan.
Definition: client.h:2593
A constant cell value with a specific type.
Definition: value.h:37
const Status & status() const
const KuduTabletServer & ts() const
KuduTableAlterer * SetTableRowCountLimit(int64_t row_count_limit)
Status SetSelection(KuduClient::ReplicaSelection selection) WARN_UNUSED_RESULT
sp::shared_ptr< KuduSession > NewSession()
In-memory representation of a remote tablet server.
Definition: client.h:1034
KuduTableCreator & add_custom_range_partition(KuduRangePartition *partition)
KuduRangePartition(KuduPartialRow *lower_bound, KuduPartialRow *upper_bound, RangePartitionBound lower_bound_type=INCLUSIVE_BOUND, RangePartitionBound upper_bound_type=EXCLUSIVE_BOUND)
int64_t on_disk_size_limit() const
ReadMode
The read modes for scanners.
Definition: client.h:2596
KuduTableAlterer * AddRangePartition(KuduPartialRow *lower_bound, KuduPartialRow *upper_bound, KuduTableCreator::RangePartitionBound lower_bound_type=KuduTableCreator::INCLUSIVE_BOUND, KuduTableCreator::RangePartitionBound upper_bound_type=KuduTableCreator::EXCLUSIVE_BOUND)
Status SetMutationBufferMaxNum(unsigned int max_num) WARN_UNUSED_RESULT
KuduPredicate * NewIsNotNullPredicate(const Slice &col_name)
@ READ_AT_SNAPSHOT
Definition: client.h:2625
KuduClientBuilder & import_authentication_credentials(std::string authn_creds)
A row which may only contain values for a subset of the columns.
Definition: partial_row.h:72
Status SetMutationBufferFlushInterval(unsigned int millis) WARN_UNUSED_RESULT
KuduTableCreator & table_name(const std::string &name)
std::string ToString() const
Status GetCurrentServer(KuduTabletServer **server)
const MonoDelta & default_admin_operation_timeout() const
KuduTableCreator & add_range_partition_split(KuduPartialRow *split_row)
A batch of zero or more rows returned by a scan operation.
Definition: scan_batch.h:84
ExternalConsistencyMode
The possible external consistency modes on which Kudu operates.
Definition: client.h:2242
Status SetCacheBlocks(bool cache_blocks)
Status SetMutationBufferFlushWatermark(double watermark_pct) WARN_UNUSED_RESULT
KuduTableAlterer * SetTableDiskSizeLimit(int64_t disk_size_limit)
Definition: client.h:1227
KuduTableAlterer * RenameTo(const std::string &new_name)
KuduTableCreator & add_hash_partitions(const std::vector< std::string > &columns, int32_t num_buckets, int32_t seed)
A single row update to be sent to the cluster.
Definition: write_op.h:222
A representation of comparison predicate for Kudu queries.
Definition: scan_predicate.h:43
Status AddLowerBound(const KuduPartialRow &key) WARN_UNUSED_RESULT
Status SetProjectedColumnNames(const std::vector< std::string > &col_names) WARN_UNUSED_RESULT
Builder for Partitioner instances.
Definition: client.h:3275
const ResourceMetrics & GetResourceMetrics() const
A helper class to create a new table with the desired options.
Definition: client.h:1134
The interface for all status callbacks.
Definition: callbacks.h:161
Status Flush() WARN_UNUSED_RESULT
KuduTableCreator * NewTableCreator()
KuduClientBuilder & default_rpc_timeout(const MonoDelta &timeout)
const MonoDelta & default_rpc_timeout() const
KuduClientBuilder & require_authentication(bool require_authentication)
Status SetFaultTolerant() WARN_UNUSED_RESULT
Builder API for specifying or altering a column within a table schema.
Definition: schema.h:363
Status GetTableSchema(const std::string &table_name, KuduSchema *schema)
KuduTableCreator & add_hash_partitions(const std::vector< std::string > &columns, int32_t num_buckets)
KuduClientBuilder & add_master_server_addr(const std::string &addr)
KuduDeleteIgnore * NewDeleteIgnore()
const std::string & owner() const
Status AddLowerBound(const KuduPartialRow &key)
Status SetFaultTolerant() WARN_UNUSED_RESULT
Status SetBatchSizeBytes(uint32_t batch_size)
Status Serialize(std::string *buf) const WARN_UNUSED_RESULT
Status PartitionRow(const KuduPartialRow &row, int *partition)
KuduScanTokenBuilder(KuduTable *table)
Status Apply(KuduWriteOperation *write_op) WARN_UNUSED_RESULT
Status SetProjectedColumnNames(const std::vector< std::string > &col_names) WARN_UNUSED_RESULT
The interface for all logging callbacks.
Definition: callbacks.h:44
Status NextBatch(KuduColumnarScanBatch *batch)
KuduTableAlterer * DropColumn(const std::string &name)
const std::string & uuid() const
int64_t on_disk_size() const
KuduPredicate * NewIsNullPredicate(const Slice &col_name)
Status AddLowerBoundPartitionKeyRaw(const Slice &partition_key)
int NumPartitions() const
@ INCLUSIVE_BOUND
An inclusive bound.
Definition: client.h:1218
KuduTableCreator & timeout(const MonoDelta &timeout)
Builds scan tokens for a table.
Definition: client.h:3150
KuduClientBuilder & sasl_protocol_name(const std::string &sasl_protocol_name)
KuduScanner(KuduTable *table)
KuduColumnSpec * AddColumn(const std::string &name)
KuduTableAlterer * SetComment(const std::string &new_comment)
A single row upsert to be sent to the cluster.
Definition: write_op.h:195
ReplicaSelection
Policy with which to choose amongst multiple replicas.
Definition: client.h:851
A single-row write operation to be sent to a Kudu table.
Definition: write_op.h:66
const std::string & name() const
const std::map< std::string, std::string > & extra_configs() const
FlushMode
Modes of flush operations.
Definition: client.h:2181
@ LEADER_ONLY
Select the LEADER replica.
Definition: client.h:852
In-memory representation of a remote tablet's replica.
Definition: client.h:1075
A representation of a table's schema.
Definition: schema.h:619
A scan descriptor limited to a single physical contiguous location.
Definition: client.h:3089
@ AUTO_FLUSH_BACKGROUND
Definition: client.h:2214
A representation of an operation's outcome.
Definition: status.h:165
KuduClientBuilder & num_reactors(int num_reactors)
Set the number of reactors for the RPC messenger.
Status NextBatch(std::vector< KuduRowResult > *rows) ATTRIBUTE_DEPRECATED("use NextBatch(KuduScanBatch*) instead")
ComparisonOp
Supported comparison operators.
Definition: scan_predicate.h:46
Status OpenTable(const std::string &table_name, sp::shared_ptr< KuduTable > *table)
@ EXCLUSIVE_BOUND
An exclusive bound.
Definition: client.h:1217
A representation of a table on a particular cluster.
Definition: client.h:1521
KuduColumnSpec * AlterColumn(const std::string &name)
@ AUTO_FLUSH_SYNC
Definition: client.h:2186
static const uint64_t kNoTimestamp
Definition: client.h:878
Status ListTabletServers(std::vector< KuduTabletServer * > *tablet_servers)
KuduTableCreator & wait(bool wait)
Status SetProjectedColumnIndexes(const std::vector< int > &col_indexes) WARN_UNUSED_RESULT
A single row delete to be sent to the cluster.
Definition: write_op.h:274
A representation of a time interval.
Definition: monotime.h:58
Status AddConjunctPredicate(KuduPredicate *pred) WARN_UNUSED_RESULT
KuduPredicate * NewInBloomFilterPredicate(const Slice &col_name, const std::vector< Slice > &bloom_filters)
uint64_t GetLatestObservedTimestamp() const
const KuduTablet & tablet() const
KuduTableCreator & set_comment(const std::string &comment)
Status SetReadMode(KuduScanner::ReadMode read_mode) WARN_UNUSED_RESULT
int64_t live_row_count_limit() const
EncryptionPolicy
Policy for on-the-wire encryption.
Definition: client.h:238
Status SetFlushMode(FlushMode m) WARN_UNUSED_RESULT
Status AddUpperBound(const KuduPartialRow &key) WARN_UNUSED_RESULT
KuduPredicate * NewInListPredicate(const Slice &col_name, std::vector< KuduValue * > *values)
Status DeleteTable(const std::string &table_name)
Status AddLowerBoundRaw(const Slice &key) ATTRIBUTE_DEPRECATED("use AddLowerBound() instead")
void SetTimeoutMillis(int millis)
Status SetReadMode(ReadMode read_mode) WARN_UNUSED_RESULT
A wrapper around externally allocated data.
Definition: slice.h:51
KuduTableCreator & num_replicas(int n_replicas)
void SetLatestObservedTimestamp(uint64_t ht_timestamp)
Status ListTables(std::vector< std::string > *tables, const std::string &filter="")
Status NewTransaction(sp::shared_ptr< KuduTransaction > *txn) WARN_UNUSED_RESULT
KuduClientBuilder & default_admin_operation_timeout(const MonoDelta &timeout)
KuduTableAlterer * AddRangePartitionWithDimension(KuduPartialRow *lower_bound, KuduPartialRow *upper_bound, const std::string &dimension_label, KuduTableCreator::RangePartitionBound lower_bound_type=KuduTableCreator::INCLUSIVE_BOUND, KuduTableCreator::RangePartitionBound upper_bound_type=KuduTableCreator::EXCLUSIVE_BOUND)
A "factory" for KuduClient objects.
Definition: client.h:232
A batch of columnar data returned from a scanner.
Definition: columnar_scan_batch.h:51
A single row insert to be sent to the cluster.
Definition: write_op.h:142
Status SetBatchSizeBytes(uint32_t batch_size) WARN_UNUSED_RESULT
KuduPredicate * NewComparisonPredicate(const Slice &col_name, KuduPredicate::ComparisonOp op, KuduValue *value)
static Status DeserializeIntoScanner(KuduClient *client, const std::string &serialized_token, KuduScanner **scanner) WARN_UNUSED_RESULT
Status AddExclusiveUpperBoundRaw(const Slice &key) ATTRIBUTE_DEPRECATED("use AddExclusiveUpperBound() instead")
const KuduSchema & schema() const
KuduTableCreator & schema(const KuduSchema *schema)
KuduPartitionerBuilder(sp::shared_ptr< KuduTable > table)
KuduPredicate * NewInBloomFilterPredicate(const Slice &col_name, std::vector< KuduBloomFilter * > *bloom_filters)
A single row insert ignore to be sent to the cluster, duplicate row errors are ignored.
Definition: write_op.h:169
Status SetExternalConsistencyMode(ExternalConsistencyMode m) WARN_UNUSED_RESULT
Status AddConjunctPredicate(KuduPredicate *pred) WARN_UNUSED_RESULT
KuduTableCreator & set_owner(const std::string &owner)
Status SetOrderMode(OrderMode order_mode) WARN_UNUSED_RESULT ATTRIBUTE_DEPRECATED("use SetFaultTolerant() instead")
const PartitionSchema & partition_schema() const
Status SetProjectedColumnIndexes(const std::vector< int > &col_indexes) WARN_UNUSED_RESULT
Alters an existing table based on the provided steps.
Definition: client.h:1799
KuduClientBuilder & clear_master_server_addrs()
Status AddExclusiveUpperBound(const KuduPartialRow &key)
@ UNORDERED
Definition: client.h:2649
A single row update ignore to be sent to the cluster, missing row errors are ignored.
Definition: write_op.h:248
KuduUpdateIgnore * NewUpdateIgnore()
Status IntoKuduScanner(KuduScanner **scanner) const WARN_UNUSED_RESULT
const std::vector< const KuduReplica * > & replicas() const
@ READ_LATEST
Definition: client.h:2604
int64_t live_row_count() const
Status NextBatch(KuduScanBatch *batch)
KuduClientBuilder & encryption_policy(EncryptionPolicy encryption_policy)
OrderMode
Definition: client.h:2643
Status add_hash_partitions(const std::vector< std::string > &columns, int32_t num_buckets, int32_t seed=0)
KuduClient * client() const
Status SetProjectedColumns(const std::vector< std::string > &col_names) WARN_UNUSED_RESULT ATTRIBUTE_DEPRECATED("use SetProjectedColumnNames() instead")
A handle for a connection to a cluster.
Definition: client.h:662
KuduClientBuilder & connection_negotiation_timeout(const MonoDelta &timeout)