graviti.portex.external#

Portex external base class.

Module Contents#

Classes#

PortexExternalType

The base class of Portex external type.

Attributes#

graviti.portex.external.EXTERNAL_TYPE_TO_CONTAINER[source]#
graviti.portex.external.EXTERNAL_TYPE_TO_ELEMENT[source]#
class graviti.portex.external.PortexExternalType(*args, **kwargs)[source]#

Bases: graviti.portex.base.PortexType

The base class of Portex external type.

Parameters
  • args (Any) –

  • kwargs (Any) –

property internal_type(self)[source]#

Get the internal type of the PortexExternalType.

Returns

The internal type of the PortexExternalType.

Return type

graviti.portex.base.PortexType

to_pyarrow(self, *, _to_backend=False)[source]#

Convert the Portex type to the corresponding builtin PyArrow DataType.

Returns

The corresponding builtin PyArrow DataType.

Parameters

_to_backend (bool) –

Return type

pyarrow.DataType

to_builtin(self)[source]#

Expand the top level of the Portex external type to Portex builtin type.

Returns

The expanded Portex builtin type.

Return type

graviti.portex.builtin.PortexBuiltinType