|
Kudu C++ client API
|
Representation of the column schema. More...
#include <schema.h>
Public Types | |
| enum | DataType { INT8 = 0 , INT16 = 1 , INT32 = 2 , INT64 = 3 , STRING = 4 , BOOL = 5 , FLOAT = 6 , DOUBLE = 7 , BINARY = 8 , UNIXTIME_MICROS = 9 , DECIMAL = 10 , VARCHAR = 11 , TIMESTAMP = UNIXTIME_MICROS , DATE = 12 , SERIAL = 13 } |
| Supported data types for columns. More... | |
Public Member Functions | |
| KuduColumnSchema (const KuduColumnSchema &other) | |
| KuduColumnSchema & | operator= (const KuduColumnSchema &other) |
| void | CopyFrom (const KuduColumnSchema &other) |
| bool | Equals (const KuduColumnSchema &other) const |
| bool | operator== (const KuduColumnSchema &rhs) const |
| bool | operator!= (const KuduColumnSchema &rhs) const |
| KuduColumnTypeAttributes | type_attributes () const |
| KuduColumnStorageAttributes | storage_attributes () const |
| const std::string & | comment () const |
Getters to expose column schema information. | |
| |
| const std::string & | name () const |
| DataType | type () const |
| bool | is_nullable () const |
| bool | is_immutable () const |
Static Public Member Functions | |
| static std::string | DataTypeToString (DataType type) |
| static Status | StringToDataType (const std::string &type_str, DataType *type) |
Representation of the column schema.
| kudu::client::KuduColumnSchema::KuduColumnSchema | ( | const KuduColumnSchema & | other | ) |
Construct KuduColumnSchema object as a copy of another object.
| [in] | other | The reference object to copy from. |
| const std::string & kudu::client::KuduColumnSchema::comment | ( | ) | const |
| void kudu::client::KuduColumnSchema::CopyFrom | ( | const KuduColumnSchema & | other | ) |
Make this object an identical copy of the other one.
| [in] | other | The reference object to copy from. |
|
static |
| [in] | type | Column data type. |
| bool kudu::client::KuduColumnSchema::Equals | ( | const KuduColumnSchema & | other | ) | const |
Check whether the object is identical to the other one.
| [in] | other | The reference object to compare with. |
true iff the object is identical to the specified one. | bool kudu::client::KuduColumnSchema::is_immutable | ( | ) | const |
true iff the column schema has the immutable attribute set. | bool kudu::client::KuduColumnSchema::is_nullable | ( | ) | const |
true iff the column schema has the nullable attribute set. | const std::string & kudu::client::KuduColumnSchema::name | ( | ) | const |
| bool kudu::client::KuduColumnSchema::operator!= | ( | const KuduColumnSchema & | rhs | ) | const |
Check whether the schema is not identical to the other one.
| [in] | rhs | KuduColumnSchema object to compare this one with. |
true iff this KuduColumnSchema object is not identical to the specified one. | KuduColumnSchema & kudu::client::KuduColumnSchema::operator= | ( | const KuduColumnSchema & | other | ) |
The assignment operator.
| [in] | other | The reference object to assign from. |
| bool kudu::client::KuduColumnSchema::operator== | ( | const KuduColumnSchema & | rhs | ) | const |
Check whether the schema is identical to the other one.
| [in] | rhs | KuduColumnSchema object to compare this one with. |
true iff this KuduColumnSchema object is identical to the specified one. | KuduColumnStorageAttributes kudu::client::KuduColumnSchema::storage_attributes | ( | ) | const |
|
static |
| [in] | type_str | String representation of the column data type |
| [out] | type | Enum representation of the column data type, Converted from string format. |
| DataType kudu::client::KuduColumnSchema::type | ( | ) | const |
| KuduColumnTypeAttributes kudu::client::KuduColumnSchema::type_attributes | ( | ) | const |