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"
57 class ClientStressTest_TestUniqueClientIds_Test;
58 class DisableWriteWhenExceedingQuotaTest;
62 class PartitionSchema;
63 class SecurityUnknownTskTest;
75 namespace transactions {
78 class TxnSystemClient;
82 class LeaderMasterProxy;
83 class RemoteKsckCluster;
88 class KuduColumnarScanBatch;
90 class KuduDeleteIgnore;
92 class KuduInsertIgnore;
93 class KuduLoggingCallback;
94 class KuduPartitioner;
97 class KuduStatusCallback;
98 class KuduTableAlterer;
99 class KuduTableCreator;
100 class KuduTableStatistics;
102 class KuduTabletServer;
104 class KuduUpdateIgnore;
107 class KuduWriteOperation;
108 class ResourceMetrics;
112 class ErrorCollector;
113 class GetTableSchemaRpc;
117 class RemoteTabletServer;
118 class ReplicaController;
119 class RetrieveAuthzTokenRpc;
120 class ScanBatchDataInterface;
122 template <
class ReqClass,
class RespClass>
124 template <
class ReqClass,
class RespClass>
148 void KUDU_EXPORT UninstallLoggingCallback();
165 void KUDU_EXPORT SetVerboseLogLevel(
int level);
176 Status KUDU_EXPORT SetInternalSignalNumber(
int signum) WARN_UNUSED_RESULT;
189 Status KUDU_EXPORT DisableSaslInitialization() WARN_UNUSED_RESULT;
214 Status KUDU_EXPORT DisableOpenSSLInitialization() WARN_UNUSED_RESULT;
218 std::
string KUDU_EXPORT GetShortVersionString();
222 std::
string KUDU_EXPORT GetAllVersionInfo();
335 class KUDU_NO_EXPORT Data;
337 friend class internal::ReplicaController;
363 public sp::enable_shared_from_this<KuduTransaction> {
442 Status IsCommitComplete(
bool* is_complete,
443 Status* completion_status) WARN_UNUSED_RESULT;
522 class KUDU_NO_EXPORT Data;
554 std::string* serialized_txn,
573 const std::
string& serialized_txn,
580 FRIEND_TEST(ClientTest, TxnIdOfTransactionalSession);
581 FRIEND_TEST(ClientTest, TxnToken);
583 class KUDU_NO_EXPORT Data;
634 bool* create_in_progress);
655 Status DeleteTableInCatalogs(
const std::string& table_name,
656 bool modify_external_catalogs) KUDU_NO_EXPORT;
676 bool* alter_in_progress);
703 const std::string& filter =
"");
731 sp::shared_ptr<KuduTable>* table);
779 Status GetTablet(
const std::string& tablet_id,
789 Status GetTableStatistics(
const std::string& table_name,
799 std::string GetMasterAddresses() const KUDU_NO_EXPORT;
881 std::string GetHiveMetastoreUris() const KUDU_NO_EXPORT;
888 bool GetHiveMetastoreSaslEnabled() const KUDU_NO_EXPORT;
899 std::
string GetHiveMetastoreUuid() const KUDU_NO_EXPORT;
907 std::
string location() const KUDU_NO_EXPORT;
912 std::
string cluster_id() const KUDU_NO_EXPORT;
916 class KUDU_NO_EXPORT Data;
918 template <class ReqClass, class RespClass>
919 friend class internal::AsyncLeaderMasterRpc;
920 template <class ReqClass, class RespClass>
921 friend class internal::AsyncRandomTxnManagerRpc;
923 friend class ClientTest;
924 friend class ConnectToClusterBaseTest;
935 friend class internal::Batcher;
936 friend class internal::GetTableSchemaRpc;
937 friend class internal::LookupRpc;
938 friend class internal::MetaCache;
939 friend class internal::RemoteTablet;
940 friend class internal::RemoteTabletServer;
941 friend class internal::RetrieveAuthzTokenRpc;
942 friend class internal::WriteRpc;
943 friend class kudu::AuthzTokenTest;
944 friend class kudu::DisableWriteWhenExceedingQuotaTest;
945 friend class kudu::SecurityUnknownTskTest;
946 friend class transactions::CoordinatorRpc;
947 friend class transactions::ParticipantRpc;
948 friend class transactions::TxnSystemClient;
949 friend class tools::LeaderMasterProxy;
950 friend class tools::RemoteKsckCluster;
952 FRIEND_TEST(kudu::ClientStressTest, TestUniqueClientIds);
953 FRIEND_TEST(ClientTest, ClearCacheAndConcurrentWorkload);
954 FRIEND_TEST(ClientTest, ConnectionNegotiationTimeout);
955 FRIEND_TEST(ClientTest, TestBasicIdBasedLookup);
956 FRIEND_TEST(ClientTest, TestCacheAuthzTokens);
957 FRIEND_TEST(ClientTest, TestGetSecurityInfoFromMaster);
958 FRIEND_TEST(ClientTest, TestGetTabletServerBlacklist);
959 FRIEND_TEST(ClientTest, TestGetTabletServerDeterministic);
960 FRIEND_TEST(ClientTest, TestMasterDown);
961 FRIEND_TEST(ClientTest, TestMasterLookupPermits);
962 FRIEND_TEST(ClientTest, TestMetaCacheExpiry);
963 FRIEND_TEST(ClientTest, TestMetaCacheExpiryById);
964 FRIEND_TEST(ClientTest, TestMetaCacheExpiryWithKeysAndIds);
965 FRIEND_TEST(ClientTest, TestMetaCacheLookupNoLeaders);
966 FRIEND_TEST(ClientTest, TestMetaCacheWithKeysAndIds);
967 FRIEND_TEST(ClientTest, TestNonCoveringRangePartitions);
968 FRIEND_TEST(ClientTest, TestRetrieveAuthzTokenInParallel);
969 FRIEND_TEST(ClientTest, TestReplicatedTabletWritesWithLeaderElection);
970 FRIEND_TEST(ClientTest, TestScanFaultTolerance);
971 FRIEND_TEST(ClientTest, TestScanTimeout);
972 FRIEND_TEST(ClientTest, TestWriteWithDeadMaster);
973 FRIEND_TEST(MasterFailoverTest, TestPauseAfterCreateTableIssued);
990 const std::string&
uuid()
const;
1006 const std::string& location() const KUDU_NO_EXPORT;
1010 class KUDU_NO_EXPORT Data;
1041 friend class internal::ReplicaController;
1043 class KUDU_NO_EXPORT Data;
1060 const std::string&
id()
const;
1067 const std::vector<const KuduReplica*>&
replicas()
const;
1073 class KUDU_NO_EXPORT Data;
1130 int32_t num_buckets);
1148 int32_t num_buckets, int32_t seed);
1235 ATTRIBUTE_DEPRECATED(
"use add_range_partition_split() instead");
1306 class KUDU_NO_EXPORT Data;
1309 friend class transactions::TxnSystemClient;
1359 class KUDU_NO_EXPORT Data;
1389 class KUDU_EXPORT
KuduTable :
public sp::enable_shared_from_this<KuduTable> {
1403 const std::string&
id()
const;
1511 std::vector<KuduBloomFilter*>* bloom_filters);
1554 const std::vector<Slice>& bloom_filters);
1581 std::vector<KuduValue*>* values);
1628 Status ListPartitions(std::vector<Partition>* partitions) KUDU_NO_EXPORT;
1633 class KUDU_NO_EXPORT Data;
1639 KuduTable(
const sp::shared_ptr<KuduClient>& client,
1640 const std::string& name,
1641 const std::string&
id,
1643 const std::string& owner,
1644 const std::string& comment,
1646 const PartitionSchema& partition_schema,
1647 const std::map<std::string, std::string>& extra_configs);
1795 const std::string& dimension_label,
1905 KuduTableAlterer* modify_external_catalogs(
bool modify_external_catalogs) KUDU_NO_EXPORT;
1916 class KUDU_NO_EXPORT Data;
1921 const std::string& name);
1966 class KUDU_NO_EXPORT Data;
1968 friend class internal::Batcher;
1969 friend class internal::ErrorCollector;
2039 class KUDU_EXPORT
KuduSession :
public sp::enable_shared_from_this<KuduSession> {
2351 bool HasPendingOperations() const;
2374 int CountBufferedOperations() const
2375 ATTRIBUTE_DEPRECATED("this method is experimental and will disappear "
2376 "in a future release");
2402 Status SetErrorBufferSpace(
size_t size_bytes);
2413 int CountPendingErrors() const;
2425 void GetPendingErrors(std::vector<
KuduError*>* errors,
bool* overflowed);
2431 class KUDU_NO_EXPORT Data;
2433 friend class ClientTest;
2436 friend class internal::Batcher;
2437 friend class tablet::FuzzTest;
2438 FRIEND_TEST(ClientTest, TestAutoFlushBackgroundAndErrorCollector);
2439 FRIEND_TEST(ClientTest, TestAutoFlushBackgroundApplyBlocks);
2440 FRIEND_TEST(ClientTest, TxnIdOfTransactionalSession);
2524 enum { kScanTimeoutMillis = 30000 };
2565 ATTRIBUTE_DEPRECATED(
"use SetProjectedColumnNames() instead");
2595 ATTRIBUTE_DEPRECATED(
"use AddLowerBound() instead");
2615 ATTRIBUTE_DEPRECATED(
"use AddExclusiveUpperBound() instead");
2700 ATTRIBUTE_DEPRECATED(
"use NextBatch(KuduScanBatch*) instead");
2772 ATTRIBUTE_DEPRECATED(
"use SetFaultTolerant() instead");
2793 Status SetSnapshotMicros(uint64_t snapshot_timestamp_micros) WARN_UNUSED_RESULT;
2804 Status SetSnapshotRaw(uint64_t snapshot_timestamp) WARN_UNUSED_RESULT;
2822 Status SetDiffScan(uint64_t start_timestamp, uint64_t end_timestamp)
2823 WARN_UNUSED_RESULT KUDU_NO_EXPORT;
2849 static const uint64_t NO_FLAGS = 0;
2856 static const uint64_t PAD_UNIXTIME_MICROS_TO_16_BYTES = 1 << 0;
2865 static const uint64_t COLUMNAR_LAYOUT = 1 << 1;
2902 Status SetLimit(int64_t limit) WARN_UNUSED_RESULT;
2909 std::
string ToString() const;
2912 class KUDU_NO_EXPORT Data;
2914 Status NextBatch(internal::ScanBatchDataInterface* batch);
2917 FRIEND_TEST(ClientTest, TestBlockScannerHijackingAttempts);
2918 FRIEND_TEST(ClientTest, TestScanCloseProxy);
2919 FRIEND_TEST(ClientTest, TestScanFaultTolerance);
2920 FRIEND_TEST(ClientTest, TestScanNoBlockCaching);
2921 FRIEND_TEST(ClientTest, TestScanTimeout);
2922 FRIEND_TEST(ClientTest, TestReadAtSnapshotNoTimestampSet);
2923 FRIEND_TEST(ConsistencyITest, TestSnapshotScanTimestampReuse);
2924 FRIEND_TEST(ScanTokenTest, TestScanTokens);
2994 const std::string& serialized_token,
2998 class KUDU_NO_EXPORT Data;
3084 Status SetSnapshotMicros(uint64_t snapshot_timestamp_micros)
3088 Status SetSnapshotRaw(uint64_t snapshot_timestamp) WARN_UNUSED_RESULT;
3093 Status SetDiffScan(uint64_t start_timestamp, uint64_t end_timestamp)
3094 WARN_UNUSED_RESULT KUDU_NO_EXPORT;
3098 Status SetTimeoutMillis(
int millis) WARN_UNUSED_RESULT;
3107 Status IncludeTableMetadata(
bool include_metadata) WARN_UNUSED_RESULT;
3116 Status IncludeTabletMetadata(
bool include_metadata) WARN_UNUSED_RESULT;
3129 class KUDU_NO_EXPORT Data;
3174 class KUDU_NO_EXPORT Data;
3214 class KUDU_NO_EXPORT Data;
A row which may only contain values for a subset of the columns.
Definition: partial_row.h:72
A representation of a time interval.
Definition: monotime.h:57
A wrapper around externally allocated data.
Definition: slice.h:51
A representation of an operation's outcome.
Definition: status.h:165
A "factory" for KuduClient objects.
Definition: client.h:228
KuduClientBuilder & clear_master_server_addrs()
KuduClientBuilder & master_server_addrs(const std::vector< std::string > &addrs)
Status Build(sp::shared_ptr< KuduClient > *client)
KuduClientBuilder & default_rpc_timeout(const MonoDelta &timeout)
KuduClientBuilder & import_authentication_credentials(std::string authn_creds)
KuduClientBuilder & default_admin_operation_timeout(const MonoDelta &timeout)
KuduClientBuilder & num_reactors(int num_reactors)
Set the number of reactors for the RPC messenger.
KuduClientBuilder & sasl_protocol_name(const std::string &sasl_protocol_name)
KuduClientBuilder & add_master_server_addr(const std::string &addr)
KuduClientBuilder & connection_negotiation_timeout(const MonoDelta &timeout)
A handle for a connection to a cluster.
Definition: client.h:615
KuduTableCreator * NewTableCreator()
const MonoDelta & default_admin_operation_timeout() const
void SetLatestObservedTimestamp(uint64_t ht_timestamp)
KuduTableAlterer * NewTableAlterer(const std::string &table_name)
static const uint64_t kNoTimestamp
Definition: client.h:831
bool IsMultiMaster() const
sp::shared_ptr< KuduSession > NewSession()
Status GetTableSchema(const std::string &table_name, KuduSchema *schema)
Status IsCreateTableInProgress(const std::string &table_name, bool *create_in_progress)
Status ListTables(std::vector< std::string > *tables, const std::string &filter="")
MonoDelta connection_negotiation_timeout() const
Status IsAlterTableInProgress(const std::string &table_name, bool *alter_in_progress)
Status TableExists(const std::string &table_name, bool *exists)
Status DeleteTable(const std::string &table_name)
uint64_t GetLatestObservedTimestamp() const
Status OpenTable(const std::string &table_name, sp::shared_ptr< KuduTable > *table)
const MonoDelta & default_rpc_timeout() const
Status NewTransaction(sp::shared_ptr< KuduTransaction > *txn) WARN_UNUSED_RESULT
Status ListTabletServers(std::vector< KuduTabletServer * > *tablet_servers)
Status ExportAuthenticationCredentials(std::string *authn_creds) const
ReplicaSelection
Policy with which to choose amongst multiple replicas.
Definition: client.h:804
@ LEADER_ONLY
Select the LEADER replica.
Definition: client.h:805
Builder API for specifying or altering a column within a table schema.
Definition: schema.h:360
A batch of columnar data returned from a scanner.
Definition: columnar_scan_batch.h:51
A single row delete ignore to be sent to the cluster.
Definition: write_op.h:297
A single row delete to be sent to the cluster.
Definition: write_op.h:271
This class represents an error which occurred in a write operation.
Definition: client.h:1934
const Status & status() const
const KuduWriteOperation & failed_op() const
bool was_possibly_successful() const
KuduWriteOperation * release_failed_op()
A single row insert ignore to be sent to the cluster, duplicate row errors are ignored.
Definition: write_op.h:166
A single row insert to be sent to the cluster.
Definition: write_op.h:139
The interface for all logging callbacks.
Definition: callbacks.h:44
Builder for Partitioner instances.
Definition: client.h:3138
KuduPartitionerBuilder * SetBuildTimeout(MonoDelta timeout)
KuduPartitionerBuilder(sp::shared_ptr< KuduTable > table)
Status Build(KuduPartitioner **partitioner)
Definition: client.h:3192
Status PartitionRow(const KuduPartialRow &row, int *partition)
int NumPartitions() const
A representation of comparison predicate for Kudu queries.
Definition: scan_predicate.h:43
ComparisonOp
Supported comparison operators.
Definition: scan_predicate.h:46
In-memory representation of a remote tablet's replica.
Definition: client.h:1025
const KuduTabletServer & ts() const
A batch of zero or more rows returned by a scan operation.
Definition: scan_batch.h:84
Builds scan tokens for a table.
Definition: client.h:3013
Status SetProjectedColumnIndexes(const std::vector< int > &col_indexes) WARN_UNUSED_RESULT
Status SetProjectedColumnNames(const std::vector< std::string > &col_names) WARN_UNUSED_RESULT
Status SetSelection(KuduClient::ReplicaSelection selection) WARN_UNUSED_RESULT
Status SetBatchSizeBytes(uint32_t batch_size) WARN_UNUSED_RESULT
Status SetFaultTolerant() WARN_UNUSED_RESULT
Status SetCacheBlocks(bool cache_blocks) WARN_UNUSED_RESULT
KuduScanTokenBuilder(KuduTable *table)
Status AddConjunctPredicate(KuduPredicate *pred) WARN_UNUSED_RESULT
Status AddUpperBound(const KuduPartialRow &key) WARN_UNUSED_RESULT
Status SetReadMode(KuduScanner::ReadMode read_mode) WARN_UNUSED_RESULT
Status AddLowerBound(const KuduPartialRow &key) WARN_UNUSED_RESULT
A scan descriptor limited to a single physical contiguous location.
Definition: client.h:2952
const KuduTablet & tablet() const
Status Serialize(std::string *buf) const WARN_UNUSED_RESULT
Status IntoKuduScanner(KuduScanner **scanner) const WARN_UNUSED_RESULT
static Status DeserializeIntoScanner(KuduClient *client, const std::string &serialized_token, KuduScanner **scanner) WARN_UNUSED_RESULT
This class is a representation of a single scan.
Definition: client.h:2456
Status SetFaultTolerant() WARN_UNUSED_RESULT
Status SetReadMode(ReadMode read_mode) WARN_UNUSED_RESULT
KuduScanner(KuduTable *table)
ReadMode
The read modes for scanners.
Definition: client.h:2459
@ READ_AT_SNAPSHOT
Definition: client.h:2488
@ READ_LATEST
Definition: client.h:2467
OrderMode
Definition: client.h:2506
@ UNORDERED
Definition: client.h:2512
Status AddLowerBoundRaw(const Slice &key) ATTRIBUTE_DEPRECATED("use AddLowerBound() instead")
Status AddConjunctPredicate(KuduPredicate *pred) WARN_UNUSED_RESULT
Status SetCacheBlocks(bool cache_blocks)
Status AddExclusiveUpperBound(const KuduPartialRow &key)
Status NextBatch(KuduColumnarScanBatch *batch)
Status AddLowerBound(const KuduPartialRow &key)
Status SetProjectedColumns(const std::vector< std::string > &col_names) WARN_UNUSED_RESULT ATTRIBUTE_DEPRECATED("use SetProjectedColumnNames() instead")
Status SetProjectedColumnIndexes(const std::vector< int > &col_indexes) WARN_UNUSED_RESULT
Status SetOrderMode(OrderMode order_mode) WARN_UNUSED_RESULT ATTRIBUTE_DEPRECATED("use SetFaultTolerant() instead")
Status AddExclusiveUpperBoundPartitionKeyRaw(const Slice &partition_key)
Status AddLowerBoundPartitionKeyRaw(const Slice &partition_key)
Status SetProjectedColumnNames(const std::vector< std::string > &col_names) WARN_UNUSED_RESULT
Status GetCurrentServer(KuduTabletServer **server)
const ResourceMetrics & GetResourceMetrics() const
Status AddExclusiveUpperBoundRaw(const Slice &key) ATTRIBUTE_DEPRECATED("use AddExclusiveUpperBound() instead")
Status NextBatch(KuduScanBatch *batch)
Status SetSelection(KuduClient::ReplicaSelection selection) WARN_UNUSED_RESULT
Status NextBatch(std::vector< KuduRowResult > *rows) ATTRIBUTE_DEPRECATED("use NextBatch(KuduScanBatch*) instead")
Status SetBatchSizeBytes(uint32_t batch_size)
A representation of a table's schema.
Definition: schema.h:616
Representation of a Kudu client session.
Definition: client.h:2039
void SetTimeoutMillis(int millis)
Status SetExternalConsistencyMode(ExternalConsistencyMode m) WARN_UNUSED_RESULT
Status Flush() WARN_UNUSED_RESULT
Status SetMutationBufferFlushWatermark(double watermark_pct) WARN_UNUSED_RESULT
Status SetFlushMode(FlushMode m) WARN_UNUSED_RESULT
ExternalConsistencyMode
The possible external consistency modes on which Kudu operates.
Definition: client.h:2105
@ CLIENT_PROPAGATED
Definition: client.h:2124
Status SetMutationBufferFlushInterval(unsigned int millis) WARN_UNUSED_RESULT
FlushMode
Modes of flush operations.
Definition: client.h:2044
@ AUTO_FLUSH_BACKGROUND
Definition: client.h:2077
@ AUTO_FLUSH_SYNC
Definition: client.h:2049
Status SetMutationBufferMaxNum(unsigned int max_num) WARN_UNUSED_RESULT
Status Apply(KuduWriteOperation *write_op) WARN_UNUSED_RESULT
Status SetMutationBufferSpace(size_t size_bytes) WARN_UNUSED_RESULT
The interface for all status callbacks.
Definition: callbacks.h:161
Alters an existing table based on the provided steps.
Definition: client.h:1666
KuduTableAlterer * SetOwner(const std::string &new_owner)
KuduTableAlterer * AlterExtraConfig(const std::map< std::string, std::string > &extra_configs)
KuduTableAlterer * AddRangePartition(KuduPartialRow *lower_bound, KuduPartialRow *upper_bound, KuduTableCreator::RangePartitionBound lower_bound_type=KuduTableCreator::INCLUSIVE_BOUND, KuduTableCreator::RangePartitionBound upper_bound_type=KuduTableCreator::EXCLUSIVE_BOUND)
KuduColumnSpec * AlterColumn(const std::string &name)
KuduTableAlterer * wait(bool wait)
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)
KuduTableAlterer * SetComment(const std::string &new_comment)
KuduTableAlterer * DropRangePartition(KuduPartialRow *lower_bound, KuduPartialRow *upper_bound, KuduTableCreator::RangePartitionBound lower_bound_type=KuduTableCreator::INCLUSIVE_BOUND, KuduTableCreator::RangePartitionBound upper_bound_type=KuduTableCreator::EXCLUSIVE_BOUND)
KuduTableAlterer * DropColumn(const std::string &name)
KuduTableAlterer * RenameTo(const std::string &new_name)
KuduColumnSpec * AddColumn(const std::string &name)
KuduTableAlterer * timeout(const MonoDelta &timeout)
KuduTableAlterer * SetTableRowCountLimit(int64_t row_count_limit)
KuduTableAlterer * SetTableDiskSizeLimit(int64_t disk_size_limit)
A helper class to create a new table with the desired options.
Definition: client.h:1084
RangePartitionBound
Range partition bound type.
Definition: client.h:1165
@ INCLUSIVE_BOUND
An inclusive bound.
Definition: client.h:1167
@ EXCLUSIVE_BOUND
An exclusive bound.
Definition: client.h:1166
KuduTableCreator & extra_configs(const std::map< std::string, std::string > &extra_configs)
KuduTableCreator & table_name(const std::string &name)
KuduTableCreator & schema(const KuduSchema *schema)
KuduTableCreator & set_range_partition_columns(const std::vector< std::string > &columns)
KuduTableCreator & wait(bool wait)
KuduTableCreator & timeout(const MonoDelta &timeout)
KuduTableCreator & add_hash_partitions(const std::vector< std::string > &columns, int32_t num_buckets)
KuduTableCreator & add_hash_partitions(const std::vector< std::string > &columns, int32_t num_buckets, int32_t seed)
KuduTableCreator & num_replicas(int n_replicas)
KuduTableCreator & add_range_partition(KuduPartialRow *lower_bound, KuduPartialRow *upper_bound, RangePartitionBound lower_bound_type=INCLUSIVE_BOUND, RangePartitionBound upper_bound_type=EXCLUSIVE_BOUND)
KuduTableCreator & set_owner(const std::string &owner)
KuduTableCreator & add_range_partition_split(KuduPartialRow *split_row)
KuduTableCreator & split_rows(const std::vector< const KuduPartialRow * > &split_rows) ATTRIBUTE_DEPRECATED("use add_range_partition_split() instead")
KuduTableCreator & dimension_label(const std::string &dimension_label)
KuduTableCreator & set_comment(const std::string &comment)
In-memory statistics of table.
Definition: client.h:1320
int64_t on_disk_size_limit() const
int64_t live_row_count() const
std::string ToString() const
int64_t live_row_count_limit() const
int64_t on_disk_size() const
A representation of a table on a particular cluster.
Definition: client.h:1389
const PartitionSchema & partition_schema() const
KuduClient * client() const
KuduInsertIgnore * NewInsertIgnore()
KuduPredicate * NewInBloomFilterPredicate(const Slice &col_name, std::vector< KuduBloomFilter * > *bloom_filters)
KuduPredicate * NewInListPredicate(const Slice &col_name, std::vector< KuduValue * > *values)
const std::string & comment() const
const std::string & owner() const
KuduPredicate * NewIsNullPredicate(const Slice &col_name)
const std::map< std::string, std::string > & extra_configs() const
KuduDeleteIgnore * NewDeleteIgnore()
KuduUpdateIgnore * NewUpdateIgnore()
const std::string & id() const
const std::string & name() const
KuduPredicate * NewComparisonPredicate(const Slice &col_name, KuduPredicate::ComparisonOp op, KuduValue *value)
const KuduSchema & schema() const
KuduPredicate * NewIsNotNullPredicate(const Slice &col_name)
KuduPredicate * NewInBloomFilterPredicate(const Slice &col_name, const std::vector< Slice > &bloom_filters)
In-memory representation of a remote tablet server.
Definition: client.h:984
const std::string & hostname() const
const std::string & uuid() const
In-memory representation of a remote tablet.
Definition: client.h:1054
const std::string & id() const
const std::vector< const KuduReplica * > & replicas() const
SerializationOptions & enable_keepalive(bool enable)
Status Commit() WARN_UNUSED_RESULT
Status Serialize(std::string *serialized_txn, const SerializationOptions &options=SerializationOptions()) const WARN_UNUSED_RESULT
Status CreateSession(sp::shared_ptr< KuduSession > *session) WARN_UNUSED_RESULT
A single row update ignore to be sent to the cluster, missing row errors are ignored.
Definition: write_op.h:245
A single row update to be sent to the cluster.
Definition: write_op.h:219
A single row upsert to be sent to the cluster.
Definition: write_op.h:192
A constant cell value with a specific type.
Definition: value.h:35
A single-row write operation to be sent to a Kudu table.
Definition: write_op.h:64
A generic catalog of simple metrics.
Definition: resource_metrics.h:39
Smart pointer typedefs for externally-faced code.