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

Representation of column type attributes. More...

#include <schema.h>

Public Member Functions

 KuduColumnTypeAttributes (const KuduColumnTypeAttributes &other)
 
 KuduColumnTypeAttributes (int8_t precision, int8_t scale)
 
 KuduColumnTypeAttributes (uint16_t length)
 
int8_t precision () const
 
int8_t scale () const
 
uint16_t length () const
 
Assign/copy KuduColumnTypeAttributes.
Parameters
[in]otherThe source KuduColumnTypeAttributes object to use as a reference.
KuduColumnTypeAttributesoperator= (const KuduColumnTypeAttributes &other)
 
void CopyFrom (const KuduColumnTypeAttributes &other)
 

Detailed Description

Representation of column type attributes.

Constructor & Destructor Documentation

kudu::client::KuduColumnTypeAttributes::KuduColumnTypeAttributes ( const KuduColumnTypeAttributes other)

Create a KuduColumnTypeAttributes object as a copy of the other one.

Parameters
[in]otherThe other KuduColumnTypeAttributes object to use as a reference.
kudu::client::KuduColumnTypeAttributes::KuduColumnTypeAttributes ( int8_t  precision,
int8_t  scale 
)

Create a KuduColumnTypeAttributes object

Parameters
[in]precisionThe precision of a decimal column.
[in]scaleThe scale of a decimal column.
kudu::client::KuduColumnTypeAttributes::KuduColumnTypeAttributes ( uint16_t  length)
explicit

Create a KuduColumnTypeAttributes object

Parameters
[in]lengthThe maximum length of a VARCHAR column in characters.

Member Function Documentation

uint16_t kudu::client::KuduColumnTypeAttributes::length ( ) const
Returns
Length for the column type.
int8_t kudu::client::KuduColumnTypeAttributes::precision ( ) const
Returns
Precision for the column type.
int8_t kudu::client::KuduColumnTypeAttributes::scale ( ) const
Returns
Scale for the column type.

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