18 #ifndef KUDU_CLIENT_SCHEMA_H
19 #define KUDU_CLIENT_SCHEMA_H
24 #include "kudu/client/value.h"
25 #include "kudu/util/kudu_export.h"
35 class RemoteKsckMaster;
42 class GetTableSchemaRpc;
50 class KuduSchemaBuilder;
51 class KuduWriteOperation;
69 DEFAULT_COMPRESSION = 0,
90 int32_t block_size = 0)
91 : encoding_(encoding),
92 compression_(compression),
93 block_size_(block_size) {
107 std::string ToString()
const;
110 EncodingType encoding_;
111 CompressionType compression_;
130 TIMESTAMP = UNIXTIME_MICROS
136 static std::string DataTypeToString(DataType type);
156 bool is_nullable =
false,
157 const void* default_value = NULL,
193 const std::string& name()
const;
196 DataType type()
const;
199 bool is_nullable()
const;
334 class KUDU_NO_EXPORT Data;
405 class KUDU_NO_EXPORT Data;
441 Status Reset(
const std::vector<KuduColumnSchema>& columns,
int key_columns)
458 size_t num_columns()
const;
468 void GetPrimaryKeyColumnIndexes(std::vector<int>* indexes)
const;
488 friend class ScanConfiguration;
489 friend class internal::GetTableSchemaRpc;
490 friend class internal::LookupRpc;
491 friend class internal::MetaCacheEntry;
492 friend class internal::WriteRpc;
493 friend class tools::RemoteKsckMaster;
494 friend class tools::ReplicaDumper;
496 friend KuduSchema KuduSchemaFromSchema(
const Schema& schema);
504 size_t num_key_columns()
const;
512 #endif // KUDU_CLIENT_SCHEMA_H
A representation of a table's schema.
Definition: schema.h:411
A representation of an operation's outcome.
Definition: status.h:106
A constant cell value with a specific type.
Definition: value.h:33
Representation of column storage attributes.
Definition: schema.h:54
Builder API for specifying or altering a column within a table schema.
Definition: schema.h:224
Representation of the column schema.
Definition: schema.h:116
KuduColumnStorageAttributes(EncodingType encoding=AUTO_ENCODING, CompressionType compression=DEFAULT_COMPRESSION, int32_t block_size=0)
Definition: schema.h:88
const EncodingType encoding() const
Definition: schema.h:97
Builds scan tokens for a table.
Definition: client.h:1899
Alters an existing table based on the provided steps.
Definition: client.h:864
A handle for a connection to a cluster.
Definition: client.h:243
A representation of a table on a particular cluster.
Definition: client.h:759
This class is a representation of a single scan.
Definition: client.h:1481
A single-row write operation to be sent to a Kudu table.
Definition: write_op.h:55
CompressionType
Column compression types.
Definition: schema.h:68
Builder API for constructing a KuduSchema object.
Definition: schema.h:371
DataType
Supported data types for columns.
Definition: schema.h:119
A scan descriptor limited to a single physical contiguous location.
Definition: client.h:1839
A helper class to create a new table with the desired options.
Definition: client.h:544
const CompressionType compression() const
Definition: schema.h:102
A row which may only contain values for a subset of the columns.
Definition: partial_row.h:53
EncodingType
Column encoding types.
Definition: schema.h:57