pyarrow.flight.Action

class pyarrow.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 or str
bufBuffer or bytes-like object

Methods

__init__

Create an action from a type and a buffer.

deserialize(type 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).

deserialize(type cls, serialized)

Parse the wire-format representation of this type.

Useful when interoperating with non-Flight systems (e.g. REST services) 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. REST services) that may want to return Flight types.

type

The action type.