Kudu C++ client API
Loading...
Searching...
No Matches
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.
KuduColumnTypeAttributesoperator= (const KuduColumnTypeAttributes &other)
void CopyFrom (const KuduColumnTypeAttributes &other)

Detailed Description

Representation of column type attributes.

Constructor & Destructor Documentation

◆ KuduColumnTypeAttributes() [1/3]

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.

◆ KuduColumnTypeAttributes() [2/3]

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.

◆ KuduColumnTypeAttributes() [3/3]

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

◆ CopyFrom()

void kudu::client::KuduColumnTypeAttributes::CopyFrom ( const KuduColumnTypeAttributes & other)
Parameters
[in]otherThe source KuduColumnTypeAttributes object to use as a reference.

◆ length()

uint16_t kudu::client::KuduColumnTypeAttributes::length ( ) const
Returns
Length for the column type.

◆ operator=()

KuduColumnTypeAttributes & kudu::client::KuduColumnTypeAttributes::operator= ( const KuduColumnTypeAttributes & other)
Parameters
[in]otherThe source KuduColumnTypeAttributes object to use as a reference.
Returns
Copy of 'other'

◆ precision()

int8_t kudu::client::KuduColumnTypeAttributes::precision ( ) const
Returns
Precision for the column type.

◆ scale()

int8_t kudu::client::KuduColumnTypeAttributes::scale ( ) const
Returns
Scale for the column type.

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