|
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 } |
| Supported data types for columns. More... | |
Public Member Functions | |
| KuduColumnSchema (const KuduColumnSchema &other) | |
| KuduColumnSchema & | operator= (const KuduColumnSchema &other) |
| void | CopyFrom (const KuduColumnSchema &other) |
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. |
| 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. |
| KuduColumnSchema& kudu::client::KuduColumnSchema::operator= | ( | const KuduColumnSchema & | other | ) |
The assignment operator.
| [in] | other | The reference object to assign from. |
|
static |
| [in] | type_str | String representation of the column data type |
| [out] | type | Enum representation of the column data type, Converted from string format. |