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::UnionType Class Reference

Concrete type class for union data. More...

#include <arrow/type.h>

Inheritance diagram for arrow::UnionType:
arrow::NestedType arrow::DataType arrow::ParametricType

Public Member Functions

 UnionType (const std::vector< std::shared_ptr< Field >> &fields, const std::vector< uint8_t > &type_codes, UnionMode::type mode=UnionMode::SPARSE)
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...
Status Accept (TypeVisitor *visitor) const override
const std::vector< uint8_t > & type_codes () const
UnionMode::type mode () const
- Public Member Functions inherited from arrow::NestedType
 DataType (Type::type id)
- 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::UNION

Additional Inherited Members

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

Detailed Description

Concrete type class for union data.

Constructor & Destructor Documentation

◆ UnionType()

arrow::UnionType::UnionType ( const std::vector< std::shared_ptr< Field >> &  fields,
const std::vector< uint8_t > &  type_codes,
UnionMode::type  mode = UnionMode::SPARSE 

Member Function Documentation

◆ Accept()

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

Implements arrow::DataType.

◆ mode()

UnionMode::type arrow::UnionType::mode ( ) const

◆ name()

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

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

Experimental API

Implements arrow::DataType.

◆ ToString()

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

A string representation of the type, including any children.

Implements arrow::DataType.

◆ type_codes()

const std::vector<uint8_t>& arrow::UnionType::type_codes ( ) const

Member Data Documentation

◆ type_id

constexpr Type::type arrow::UnionType::type_id = Type::UNION

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