DType class sealed

A Polars data type descriptor.

Descriptors are immutable values compared by their JSON form. Having a descriptor does not imply that values or kernels are available; check capabilities first.

Implementers

Properties

capabilities → DTypeCapabilities
The operations that this binding supports for this type.
no setter
hashCode → int
The hash code for this object.
no setteroverride
kind → String
The protocol name of this type, such as int64 or list.
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?>
Encodes this descriptor in the native protocol JSON form.
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

fromJson(Map<String, Object?> json) → DType
Decodes a descriptor from its protocol JSON form.