pyarrow.flight.Action#

classpyarrow.flight.Action(action_type,buf)#

Bases:_Weakrefable

An action executable on a Flight service.

__init__()#

Create an action from a type and a buffer.

Parameters:
action_typebytes orstr
bufBuffer or bytes-like object

Methods

__init__

Create an action from a type and a buffer.

deserialize(cls, serialized)

Parse the wire-format representation of this type.

serialize(self)

Get the wire-format representation of this type.

Attributes

body

The action body (arguments for the action).

type

The action type.

body#

The action body (arguments for the action).

classmethoddeserialize(cls,serialized)#

Parse the wire-format representation of this type.

Useful when interoperating with non-Flight systems (e.g. RESTservices) that may want to return Flight types.

serialize(self)#

Get the wire-format representation of this type.

Useful when interoperating with non-Flight systems (e.g. RESTservices) that may want to return Flight types.

type#

The action type.