ExtensionType class final

A Polars extension type layered over a storage type. Descriptor-only.

Inheritance
  • Object
  • DType
  • ExtensionType

Constructors

ExtensionType(String name, DType storage, {String? metadata})
Creates an extension type called name stored as storage.
const

Properties

capabilities → DTypeCapabilities
The operations that this binding supports for this type.
no setteroverride
hashCode → int
The hash code for this object.
no setterinherited
kind → String
The protocol name of this type, such as int64 or list.
no setteroverride
metadata → String?
Optional serialized extension metadata.
final
name → String
The extension type name.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
storage → DType
The underlying storage type.
final

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.
override
toString() → String
A string representation of this object.
inherited

Operators

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