| Kudu C++ client API
    | 
A representation of a table's schema. More...
#include <schema.h>
| Public Member Functions | ||||
| KuduSchema (const KuduSchema &other) | ||||
| Status | Reset (const std::vector< KuduColumnSchema > &columns, int key_columns) WARN_UNUSED_RESULT | |||
| bool | Equals (const KuduSchema &other) const | |||
| KuduColumnSchema | Column (size_t idx) const | |||
| bool | HasColumn (const std::string &col_name, KuduColumnSchema *col_schema) const | |||
| size_t | num_columns () const | |||
| void | GetPrimaryKeyColumnIndexes (std::vector< int > *indexes) const | |||
| KuduPartialRow * | NewRow () const | |||
| std::string | ToString () const | |||
| Assign/copy the schema | ||||
| 
 | ||||
| KuduSchema & | operator= (const KuduSchema &other) | |||
| void | CopyFrom (const KuduSchema &other) | |||
A representation of a table's schema.
| kudu::client::KuduSchema::KuduSchema | ( | const KuduSchema & | other | ) | 
Create a KuduSchema object as a copy of the other one.
| [in] | other | The other KuduSchema object to use as a reference. | 
| KuduColumnSchema kudu::client::KuduSchema::Column | ( | size_t | idx | ) | const | 
| [in] | idx | Column index. | 
| bool kudu::client::KuduSchema::Equals | ( | const KuduSchema & | other | ) | const | 
Check whether the schema is identical to the other one.
| [in] | other | The other KuduSchema object to compare with. | 
true iff this KuduSchema object is identical to the specified one. | void kudu::client::KuduSchema::GetPrimaryKeyColumnIndexes | ( | std::vector< int > * | indexes | ) | const | 
Get the indexes of the primary key columns within this Schema.
| [out] | indexes | The placeholder for the result. | 
| bool kudu::client::KuduSchema::HasColumn | ( | const std::string & | col_name, | 
| KuduColumnSchema * | col_schema | ||
| ) | const | 
| [in] | col_name | Column name. | 
| [out] | col_schema | Schema for the specified column. | 
true iff the specified column exists. | KuduPartialRow* kudu::client::KuduSchema::NewRow | ( | ) | const | 
Create a new row corresponding to this schema.
| size_t kudu::client::KuduSchema::num_columns | ( | ) | const | 
| Status kudu::client::KuduSchema::Reset | ( | const std::vector< KuduColumnSchema > & | columns, | 
| int | key_columns | ||
| ) | 
| [in] | columns | Per-column schema information. | 
| [in] | key_columns | Number of key columns in the schema. | 
| std::string kudu::client::KuduSchema::ToString | ( | ) | const | 
Stringify this KuduSchema.