| [ Web Proxy ] |
| Viewing: https://arrow.apache.org/docs/python/generated/../generated/../api/../../cpp/api/../api/scalar.html | [Back] [Original] |
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::BaseListScalar, arrow::ExtensionScalar, arrow::NullScalar, arrow::RunEndEncodedScalar, arrow::StructScalar, arrow::UnionScalar, arrow::internal::PrimitiveScalarBase
Public Functions
Perform cheap validation checks.
This is O(k) where k is the number of descendents.
Perform extensive data validation checks.
This is potentially O(k*n) where k is the number of descendents and n is the length of descendents (if list scalars are involved).
Apply the ScalarVisitor::Visit() method specialized to the scalar type.
EXPERIMENTAL Enable obtaining shared_ptr<Scalar> from a const Scalar& context.
Public Members
Whether the value is valid (not null) or not.
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.
A scalar value for NullType. Never valid.
Public Functions
Public Types
Public Types
Subclassed by arrow::BinaryScalar, arrow::BinaryViewScalar, arrow::LargeBinaryScalar
Subclassed by arrow::FixedSizeBinaryScalar, arrow::StringScalar
Public Types
Public Types
Subclassed by arrow::StringViewScalar
Public Types
Public Types
Subclassed by arrow::LargeStringScalar
Public Types
Public Types
Public Types
Subclassed by arrow::DateScalar< Date32Type >, arrow::DateScalar< Date64Type >, arrow::IntervalScalar< DayTimeIntervalType >, arrow::IntervalScalar< MonthDayNanoIntervalType >, arrow::IntervalScalar< MonthIntervalType >, arrow::TimeScalar< Time32Type >, arrow::TimeScalar< Time64Type >, arrow::DateScalar< T >, arrow::IntervalScalar< T >, arrow::TimeScalar< T >
Public Functions
Public Types
Public Functions
Public Functions
Public Static Functions
Public Types
Public Functions
Public Functions
Public Functions
Public Functions
Public Functions
Subclassed by arrow::FixedSizeListScalar, arrow::LargeListScalar, arrow::LargeListViewScalar, arrow::ListScalar, arrow::ListViewScalar, arrow::MapScalar
Public Functions
Public Types
Public Functions
Public Types
Public Functions
Public Types
Public Functions
Public Types
Public Functions
Public Types
Public Functions
Public Types
Public Functions
Public Members
Public Static Functions
Subclassed by arrow::DenseUnionScalar, arrow::SparseUnionScalar
Public Members
Public Types
Public Static Functions
Construct a SparseUnionScalar from a single value, versus having to construct a vector of scalars.
Public Types
Public Types
A Scalar value for DictionaryType.
is_valid denotes the validity of the index, regardless of the corresponding value in the dictionary.
Public Types
Public Functions
Public Members
Public Static Functions
A Scalar value for ExtensionType.
The value is the underlying storage scalar. is_valid must only be true if value is non-null and value->is_valid is true
Public Functions
Abstract scalar visitor class.
Subclass this to create a visitor that can be used with the Scalar::Accept() method.
Public Functions
| Web Proxy Viewer | New URL | Original Page |