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

Concrete type class for list data. More...

#include <arrow/type.h>

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

Public Member Functions

 ListType (const std::shared_ptr< DataType > &value_type)
 ListType (const std::shared_ptr< Field > &value_field)
std::shared_ptr< Fieldvalue_field () const
std::shared_ptr< DataTypevalue_type () const
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...
- 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::LIST

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 list data.

List data is nested data where each value is a variable number of child items. Lists can be recursively nested, for example list(list(int32)).

Constructor & Destructor Documentation

◆ ListType() [1/2]

arrow::ListType::ListType ( const std::shared_ptr< DataType > &  value_type)

◆ ListType() [2/2]

arrow::ListType::ListType ( const std::shared_ptr< Field > &  value_field)

Member Function Documentation

◆ Accept()

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

Implements arrow::DataType.

◆ name()

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

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

Experimental API

Implements arrow::DataType.

◆ ToString()

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

A string representation of the type, including any children.

Implements arrow::DataType.

◆ value_field()

std::shared_ptr<Field> arrow::ListType::value_field ( ) const

◆ value_type()

std::shared_ptr<DataType> arrow::ListType::value_type ( ) const

Member Data Documentation

◆ type_id

constexpr Type::type arrow::ListType::type_id = Type::LIST

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