Scalar class final
An immutable, explicitly typed protocol literal.
Constructors
-
Scalar.binary(List<
int> value, {bool offset = false}) -
factory
- Scalar.boolean(bool value)
-
factory
- Scalar.date(int daysSinceEpoch)
-
factory
- Scalar.datetime(BigInt value, DateTimeType dtype)
-
factory
- Scalar.decimal(BigInt unscaled, DecimalType dtype)
-
factory
- Scalar.duration(BigInt value, DurationType dtype)
-
factory
- Scalar.float16Bits(int bits)
-
factory
- Scalar.float32(double value)
-
factory
- Scalar.float64(double value)
-
factory
- Scalar.float64Bits(int bits)
-
factory
- Scalar.fromArrow(DType dtype, ArrowValue? value)
-
Reuses supported primitive Arrow value wrappers without converting
through imprecise Dart numbers. Nested, dictionary/category, and
extension literals are deliberately unsupported by the native protocol.
factory
-
Scalar.fromJson(Map<
String, Object?> json) -
factory
- Scalar.int64(int value)
-
factory
- Scalar.int128(BigInt value)
-
factory
- Scalar.integer(BigInt value, DType dtype)
-
factory
- Scalar.nullValue(DType dtype)
-
factory
- Scalar.string(String value)
-
factory
- Scalar.time(int nanosecondsSinceMidnight)
-
factory
- Scalar.typed(DType dtype, Object? value)
-
factory
- Scalar.uint128(BigInt value)
-
factory
Properties
- dtype → DType
-
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- isNull → bool
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override