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

#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...
 
virtual std::vector< BufferDescrGetBufferLayout () const =0
 
Type::type id () const
 

Protected Attributes

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

Constructor & Destructor Documentation

◆ DataType()

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

◆ ~DataType()

virtual arrow::DataType::~DataType ( )
virtual

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
inline

◆ children()

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

◆ Equals() [1/2]

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

◆ Equals() [2/2]

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

◆ GetBufferLayout()

virtual std::vector<BufferDescr> arrow::DataType::GetBufferLayout ( ) const
pure virtual

◆ id()

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

◆ name()

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

◆ num_children()

int arrow::DataType::num_children ( ) const
inline

◆ ToString()

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

Member Data Documentation

◆ children_

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

◆ id_

Type::type arrow::DataType::id_
protected

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