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

Base class for all data types. More...

#include <arrow/type.h>

Inheritance diagram for arrow::DataType:
arrow::BinaryType arrow::FixedWidthType arrow::NestedType arrow::NullType arrow::StringType arrow::BooleanType arrow::DateType arrow::DictionaryType arrow::FixedSizeBinaryType arrow::IntervalType arrow::PrimitiveCType arrow::TimestampType arrow::TimeType arrow::ListType arrow::StructType arrow::UnionType

Public Member Functions

 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
virtual Status Accept (TypeVisitor *visitor) const =0
virtual std::string ToString () const =0
 A string representation of the type, including any children. More...
virtual std::string name () const =0
 A string name of the type, omitting any child fields. More...
Type::type id () const

Protected Attributes

Type::type id_
std::vector< std::shared_ptr< Field > > children_

Detailed Description

Base class for all data types.

Data types in this library are all logical. They can be expressed as either a primitive physical type (bytes or bits of some fixed size), a nested type consisting of other data types, or another data type (e.g. a timestamp encoded as an int64).

Simple datatypes may be entirely described by their Type id, but complex datatypes are usually parametric.

Constructor & Destructor Documentation

◆ DataType()

arrow::DataType::DataType ( Type::type  id)

◆ ~DataType()

virtual arrow::DataType::~DataType ( )

Member Function Documentation

◆ Accept()

virtual Status arrow::DataType::Accept ( TypeVisitor visitor) const
pure virtual

◆ child()

std::shared_ptr<Field> arrow::DataType::child ( int  i) const

◆ children()

const std::vector<std::shared_ptr<Field> >& arrow::DataType::children ( ) const

◆ Equals() [1/2]

virtual bool arrow::DataType::Equals ( const DataType other) const

◆ Equals() [2/2]

bool arrow::DataType::Equals ( const std::shared_ptr< DataType > &  other) const

◆ id()

Type::type arrow::DataType::id ( ) const

◆ name()

virtual std::string arrow::DataType::name ( ) const
pure virtual

◆ num_children()

int arrow::DataType::num_children ( ) const

◆ ToString()

virtual std::string arrow::DataType::ToString ( ) const
pure virtual

Member Data Documentation

◆ children_

std::vector<std::shared_ptr<Field> > arrow::DataType::children_

◆ id_

Type::type arrow::DataType::id_

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