Apache Arrow (C++)
A columnar in-memory analytics layer designed to accelerate big data.
Public Member Functions | Static Public Attributes | List of all members
arrow::DecimalType Class Reference

#include <arrow/type.h>

Inheritance diagram for arrow::DecimalType:
arrow::FixedSizeBinaryType arrow::FixedWidthType arrow::ParametricType arrow::DataType

Public Member Functions

 DecimalType (int32_t precision, int32_t scale)
Status Accept (TypeVisitor *visitor) const override
std::string ToString () const override
 A string representation of the type, including any children. More...
std::string name () const override
 A string name of the type, omitting any child fields. More...
int32_t precision () const
int32_t scale () const
- Public Member Functions inherited from arrow::FixedSizeBinaryType
 FixedSizeBinaryType (int32_t byte_width)
 FixedSizeBinaryType (int32_t byte_width, Type::type type_id)
std::vector< BufferDescrGetBufferLayout () const override
int32_t byte_width () const
int bit_width () const override
- Public Member Functions inherited from arrow::DataType
 DataType (Type::type id)
virtual ~DataType ()
virtual bool Equals (const DataType &other) const
bool Equals (const std::shared_ptr< DataType > &other) const
std::shared_ptr< Fieldchild (int i) const
const std::vector< std::shared_ptr< Field > > & children () const
int num_children () const
Type::type id () const

Static Public Attributes

static constexpr Type::type type_id = Type::DECIMAL
- Static Public Attributes inherited from arrow::FixedSizeBinaryType
static constexpr Type::type type_id = Type::FIXED_SIZE_BINARY

Additional Inherited Members

- Protected Attributes inherited from arrow::FixedSizeBinaryType
int32_t byte_width_
- Protected Attributes inherited from arrow::DataType
Type::type id_
std::vector< std::shared_ptr< Field > > children_

Constructor & Destructor Documentation

◆ DecimalType()

arrow::DecimalType::DecimalType ( int32_t  precision,
int32_t  scale 

Member Function Documentation

◆ Accept()

Status arrow::DecimalType::Accept ( TypeVisitor visitor) const

Reimplemented from arrow::FixedSizeBinaryType.

◆ name()

std::string arrow::DecimalType::name ( ) const

A string name of the type, omitting any child fields.

Experimental API

Reimplemented from arrow::FixedSizeBinaryType.

◆ precision()

int32_t arrow::DecimalType::precision ( ) const

◆ scale()

int32_t arrow::DecimalType::scale ( ) const

◆ ToString()

std::string arrow::DecimalType::ToString ( ) const

A string representation of the type, including any children.

Reimplemented from arrow::FixedSizeBinaryType.

Member Data Documentation

◆ type_id

constexpr Type::type arrow::DecimalType::type_id = Type::DECIMAL

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