Kudu C++ client API
Public Types | Public Member Functions | Static Public Member Functions | List of all members
kudu::client::KuduColumnSchema Class Reference

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)
 
KuduColumnSchemaoperator= (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)
 

Detailed Description

Representation of the column schema.

Member Enumeration Documentation

◆ DataType

Supported data types for columns.

Enumerator
TIMESTAMP 

deprecated, use UNIXTIME_MICROS

Constructor & Destructor Documentation

◆ KuduColumnSchema()

kudu::client::KuduColumnSchema::KuduColumnSchema ( const KuduColumnSchema other)

Construct KuduColumnSchema object as a copy of another object.

Parameters
[in]otherThe reference object to copy from.

Member Function Documentation

◆ CopyFrom()

void kudu::client::KuduColumnSchema::CopyFrom ( const KuduColumnSchema other)

Make this object an identical copy of the other one.

Parameters
[in]otherThe reference object to copy from.

◆ DataTypeToString()

static std::string kudu::client::KuduColumnSchema::DataTypeToString ( DataType  type)
static
Parameters
[in]typeColumn data type.
Returns
String representation of the column data type.

◆ operator=()

KuduColumnSchema& kudu::client::KuduColumnSchema::operator= ( const KuduColumnSchema other)

The assignment operator.

Parameters
[in]otherThe reference object to assign from.
Returns
The updated object.

◆ StringToDataType()

static Status kudu::client::KuduColumnSchema::StringToDataType ( const std::string &  type_str,
DataType type 
)
static
Parameters
[in]type_strString representation of the column data type
[out]typeEnum representation of the column data type, Converted from string format.
Returns
Operation result status.

The documentation for this class was generated from the following file: