Class ExtensionDefinition
Defines a factory for a particular extension type. Register instances with ExtensionTypeRegistry to enable automatic resolution during deserialization.
public abstract class ExtensionDefinition
- Inheritance
-
ExtensionDefinition
- Derived
- Inherited Members
Properties
ExtensionName
The canonical extension type name (e.g. "arrow.uuid").
public abstract string ExtensionName { get; }
Property Value
Methods
AddToDefaultRegistry()
Adds this extension type to the default registry
public void AddToDefaultRegistry()
TryCreateType(IArrowType, string, out ExtensionType)
Attempt to create an ExtensionType from a storage type and serialized metadata.
public abstract bool TryCreateType(IArrowType storageType, string metadata, out ExtensionType type)
Parameters
storageTypeIArrowTypeThe underlying Arrow storage type.
metadatastringThe serialized extension metadata string, or null.
typeExtensionTypeThe created extension type, if successful.
Returns
- bool
True if the type was created successfully; false otherwise.