Scalars¶
-
struct
arrow
::
Scalar
: public arrow::util::EqualityComparable<Scalar>¶ Base class for scalar values.
A Scalar represents a single value with a specific DataType. Scalars are useful for passing single value inputs to compute functions, or for representing individual array elements (with a non-trivial wrapping cost, though).
Subclassed by arrow::BaseBinaryScalar, arrow::BaseListScalar, arrow::Decimal128Scalar, arrow::DictionaryScalar, arrow::ExtensionScalar, arrow::internal::PrimitiveScalarBase, arrow::NullScalar, arrow::StructScalar, arrow::UnionScalar
Public Members
-
bool
is_valid
= false¶ Whether the value is valid (not null) or not.
-
struct
Hash
¶
-
bool
Factory functions¶
Scalar factory for null scalars.
Scalar factory for non-null scalars.
Type-inferring scalar factory for non-null scalars.
Construct a Scalar instance with a DataType determined by the input C++ type. (for example Int8Scalar for a int8_t input). Only non-parametric primitive types and String are supported.
-
std::shared_ptr<Scalar>
MakeScalar
(std::string value)¶
Concrete scalar subclasses¶
-
struct
arrow
::
NullScalar
: public arrow::Scalar¶ - #include <arrow/scalar.h>
A scalar value for NullType. Never valid.
Public Functions
-
NullScalar
()¶
-
-
struct
arrow
::
BooleanScalar
: public arrow::internal::PrimitiveScalar<BooleanType, bool>¶ - #include <arrow/scalar.h>
Public Types
-
using
Base
= internal::PrimitiveScalar<BooleanType, bool>¶
-
using
-
template<typename
T
>
structarrow
::
NumericScalar
: public arrow::internal::PrimitiveScalar<T>¶ - #include <arrow/scalar.h>
Public Types
-
struct
Int8Scalar
: public arrow::NumericScalar<Int8Type>¶ - #include <arrow/scalar.h>
-
struct
Int16Scalar
: public arrow::NumericScalar<Int16Type>¶ - #include <arrow/scalar.h>
-
struct
Int32Scalar
: public arrow::NumericScalar<Int32Type>¶ - #include <arrow/scalar.h>
-
struct
Int64Scalar
: public arrow::NumericScalar<Int64Type>¶ - #include <arrow/scalar.h>
-
struct
UInt8Scalar
: public arrow::NumericScalar<UInt8Type>¶ - #include <arrow/scalar.h>
-
struct
UInt16Scalar
: public arrow::NumericScalar<UInt16Type>¶ - #include <arrow/scalar.h>
-
struct
UInt32Scalar
: public arrow::NumericScalar<UInt32Type>¶ - #include <arrow/scalar.h>
-
struct
UInt64Scalar
: public arrow::NumericScalar<UInt64Type>¶ - #include <arrow/scalar.h>
-
struct
HalfFloatScalar
: public arrow::NumericScalar<HalfFloatType>¶ - #include <arrow/scalar.h>
-
struct
FloatScalar
: public arrow::NumericScalar<FloatType>¶ - #include <arrow/scalar.h>
-
struct
DoubleScalar
: public arrow::NumericScalar<DoubleType>¶ - #include <arrow/scalar.h>
-
struct
arrow
::
BaseBinaryScalar
: public arrow::Scalar¶ - #include <arrow/scalar.h>
Subclassed by arrow::BinaryScalar, arrow::LargeBinaryScalar
-
struct
arrow
::
BinaryScalar
: public arrow::BaseBinaryScalar¶ - #include <arrow/scalar.h>
Subclassed by arrow::FixedSizeBinaryScalar, arrow::StringScalar
Public Types
-
using
TypeClass
= BinaryType¶
-
using
-
struct
arrow
::
StringScalar
: public arrow::BinaryScalar¶ - #include <arrow/scalar.h>
Public Types
-
using
TypeClass
= StringType¶
-
using
-
struct
arrow
::
LargeBinaryScalar
: public arrow::BaseBinaryScalar¶ - #include <arrow/scalar.h>
Subclassed by arrow::LargeStringScalar
Public Types
-
using
TypeClass
= LargeBinaryType¶
-
using
-
struct
arrow
::
LargeStringScalar
: public arrow::LargeBinaryScalar¶ - #include <arrow/scalar.h>
Public Types
-
using
TypeClass
= LargeStringType¶
-
using
-
struct
arrow
::
FixedSizeBinaryScalar
: public arrow::BinaryScalar¶ - #include <arrow/scalar.h>
Public Types
-
using
TypeClass
= FixedSizeBinaryType¶
Public Functions
-
using
-
template<typename
T
>
structarrow
::
TemporalScalar
: public arrow::internal::PrimitiveScalar<T>¶ - #include <arrow/scalar.h>
Subclassed by arrow::DateScalar< T >, arrow::IntervalScalar< T >, arrow::TimeScalar< T >
Public Types
-
using
ValueType
= typename TemporalScalar<T>::ValueType¶
Public Functions
-
using
-
template<typename
T
>
structarrow
::
DateScalar
: public arrow::TemporalScalar<T>¶ - #include <arrow/scalar.h>
Public Types
-
using
ValueType
= typename TemporalScalar<T>::ValueType¶
-
using
-
struct
Date32Scalar
: public arrow::DateScalar<Date32Type>¶ - #include <arrow/scalar.h>
-
struct
Date64Scalar
: public arrow::DateScalar<Date64Type>¶ - #include <arrow/scalar.h>
-
template<typename
T
>
structTimeScalar
: public arrow::TemporalScalar<T>¶ - #include <arrow/scalar.h>
-
struct
Time32Scalar
: public arrow::TimeScalar<Time32Type>¶ - #include <arrow/scalar.h>
-
struct
Time64Scalar
: public arrow::TimeScalar<Time64Type>¶ - #include <arrow/scalar.h>
-
struct
TimestampScalar
: public arrow::TemporalScalar<TimestampType>¶ - #include <arrow/scalar.h>
-
template<typename
T
>
structarrow
::
IntervalScalar
: public arrow::TemporalScalar<T>¶ - #include <arrow/scalar.h>
Public Types
-
using
ValueType
= typename TemporalScalar<T>::ValueType¶
-
using
-
struct
MonthIntervalScalar
: public arrow::IntervalScalar<MonthIntervalType>¶ - #include <arrow/scalar.h>
-
struct
DayTimeIntervalScalar
: public arrow::IntervalScalar<DayTimeIntervalType>¶ - #include <arrow/scalar.h>
-
struct
DurationScalar
: public arrow::TemporalScalar<DurationType>¶ - #include <arrow/scalar.h>
-
struct
arrow
::
Decimal128Scalar
: public arrow::Scalar¶ - #include <arrow/scalar.h>
Public Functions
Public Members
-
Decimal128
value
¶
-
Decimal128
-
struct
arrow
::
BaseListScalar
: public arrow::Scalar¶ - #include <arrow/scalar.h>
Subclassed by arrow::FixedSizeListScalar, arrow::LargeListScalar, arrow::ListScalar, arrow::MapScalar
Public Functions
-
struct
arrow
::
ListScalar
: public arrow::BaseListScalar¶ - #include <arrow/scalar.h>
Public Functions
-
struct
arrow
::
LargeListScalar
: public arrow::BaseListScalar¶ - #include <arrow/scalar.h>
Public Types
-
using
TypeClass
= LargeListType¶
Public Functions
-
using
-
struct
arrow
::
MapScalar
: public arrow::BaseListScalar¶ - #include <arrow/scalar.h>
Public Functions
-
struct
arrow
::
FixedSizeListScalar
: public arrow::BaseListScalar¶ - #include <arrow/scalar.h>
Public Types
-
using
TypeClass
= FixedSizeListType¶
Public Functions
-
using
-
struct
arrow
::
StructScalar
: public arrow::Scalar¶ - #include <arrow/scalar.h>
Public Members
-
ScalarVector
value
¶
-
ScalarVector
-
struct
arrow
::
UnionScalar
: public arrow::Scalar¶ - #include <arrow/scalar.h>
Subclassed by arrow::DenseUnionScalar, arrow::SparseUnionScalar
Public Functions
-
struct
arrow
::
SparseUnionScalar
: public arrow::UnionScalar¶ - #include <arrow/scalar.h>
Public Types
-
using
TypeClass
= SparseUnionType¶
-
using
-
struct
arrow
::
DenseUnionScalar
: public arrow::UnionScalar¶ - #include <arrow/scalar.h>
Public Types
-
using
TypeClass
= DenseUnionType¶
-
using
-
struct
arrow
::
DictionaryScalar
: public arrow::Scalar¶ - #include <arrow/scalar.h>
Public Types
-
using
TypeClass
= DictionaryType¶
Public Members
-
struct arrow::DictionaryScalar::ValueType
value
¶
-
struct
ValueType
¶ - #include <arrow/scalar.h>
-
using