Apache GraphAr C++ Library
The C++ Library for Apache GraphAr
Public Member Functions | Static Public Member Functions | List of all members
graphar::DataType Class Reference

The DataType struct to provide enum type for data type and functions to parse data type. More...

#include <types.h>

Public Member Functions

 DataType (Type id, const std::string &user_defined_type_name="")
 
 DataType (Type id, const std::shared_ptr< DataType > &child)
 
 DataType (const DataType &other)
 
 DataType (DataType &&other)
 
DataTypeoperator= (const DataType &other)=default
 
bool Equals (const DataType &other) const
 
bool Equals (const std::shared_ptr< DataType > &other) const
 
const std::shared_ptr< DataType > & value_type () const
 
bool operator== (const DataType &other) const
 
bool operator!= (const DataType &other) const
 
Type id () const
 
std::string ToTypeName () const
 

Static Public Member Functions

static std::shared_ptr< arrow::DataType > DataTypeToArrowDataType (const std::shared_ptr< DataType > &type)
 
static std::shared_ptr< DataTypeArrowDataTypeToDataType (const std::shared_ptr< arrow::DataType > &type)
 
static std::shared_ptr< DataTypeTypeNameToDataType (const std::string &str)
 

Detailed Description

The DataType struct to provide enum type for data type and functions to parse data type.

Definition at line 77 of file types.h.

Member Function Documentation

◆ id()

Type graphar::DataType::id ( ) const
inline

Return the type category of the DataType.

Definition at line 128 of file types.h.


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