_baseclasses.py
rerun._rerun2._baseclasses
class Archetype
Base class for all archetypes.
class BaseExtensionType
Bases: pa.ExtensionType
Extension type for datatypes and non-delegating components.
class NamedExtensionArray
Bases: pa.ExtensionArray
Common base class for any extension array that has a name.
class BaseExtensionArray
Bases: NamedExtensionArray
, Generic[T]
Extension array for datatypes and non-delegating components.
def from_similar(data)
classmethod
Primary method for creating Arrow arrays for components.
This method must flexibly accept native data (which comply with type T
). Subclasses must provide a type
parameter specifying the type of the native data (this is automatically handled by the code generator).
The actual creation of the Arrow array is delegated to the _native_to_pa_array()
method, which is not
implemented by default.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
data |
T | None
|
The data to convert into an Arrow array. |
required |
Returns:
Type | Description |
---|---|
The Arrow array encapsulating the data.
|
|
class BaseDelegatingExtensionType()
Bases: pa.ExtensionType
Extension type for delegating components.