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

#include <arrow/type.h>

Inheritance diagram for arrow::IntervalType:
arrow::FixedWidthType arrow::DataType

Public Types

enum  Unit : char { Unit::YEAR_MONTH = 0, Unit::DAY_TIME = 1 }
 
using c_type = int64_t
 

Public Member Functions

int bit_width () const override
 
 IntervalType (Unit unit=Unit::YEAR_MONTH)
 
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...
 
Unit unit () const
 
- Public Member Functions inherited from arrow::FixedWidthType
std::vector< BufferDescrGetBufferLayout () 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::INTERVAL
 

Additional Inherited Members

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

Member Typedef Documentation

◆ c_type

using arrow::IntervalType::c_type = int64_t

Member Enumeration Documentation

◆ Unit

enum arrow::IntervalType::Unit : char
strong
Enumerator
YEAR_MONTH 
DAY_TIME 

Constructor & Destructor Documentation

◆ IntervalType()

arrow::IntervalType::IntervalType ( Unit  unit = Unit::YEAR_MONTH)
inlineexplicit

Member Function Documentation

◆ Accept()

Status arrow::IntervalType::Accept ( TypeVisitor visitor) const
overridevirtual

Implements arrow::DataType.

◆ bit_width()

int arrow::IntervalType::bit_width ( ) const
inlineoverridevirtual

Implements arrow::FixedWidthType.

◆ name()

std::string arrow::IntervalType::name ( ) const
inlineoverridevirtual

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

Note
Experimental API
Since
0.7.0

Implements arrow::DataType.

◆ ToString()

std::string arrow::IntervalType::ToString ( ) const
inlineoverridevirtual

A string representation of the type, including any children.

Implements arrow::DataType.

◆ unit()

Unit arrow::IntervalType::unit ( ) const
inline

Member Data Documentation

◆ type_id

constexpr Type::type arrow::IntervalType::type_id = Type::INTERVAL
static

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