CategoricalType class final
The Polars Categorical type. Descriptor-only.
- Inheritance
-
- Object
- DType
- CategoricalType
Constructors
- CategoricalType({required String name, required String namespace, required BigInt hash, required CategoricalPhysical physical})
- Creates a categorical type descriptor.
Properties
- capabilities → DTypeCapabilities
-
The operations that this binding supports for this type.
no setteroverride
- hash → BigInt
-
The unsigned 64-bit hash identifying the category mapping.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- kind → String
-
The protocol name of this type, such as
int64orlist.no setteroverride - name → String
-
The name of the category mapping.
final
- namespace → String
-
The namespace of the category mapping.
final
- physical → CategoricalPhysical
-
The integer width used to store category codes.
final
- 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.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited