Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-1412

[Plasma] Add higher level API for putting and getting Python objects

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.7.0
    • Component/s: Python
    • Labels:
      None

      Description

      Now that we can serialize Python objects in Arrow, let's include a slightly higher level API to the plasma Python bindings that exposes storing Python objects in Plasma (we also need this for Ray).

      The API I'd like to propose is very simple:

      def put(PlasmaClient client, value, object_id=None)

      Puts the Python object value into the store and returns the Object ID associated with it. If object_id is set, use that one instead of generating a random one.

      def get(PlasmaClient client, object_ids, timeout_ms=-1):

      Returns a list of Python objects represented by the Object IDs.

      Let me know if you have feedback or thoughts!

        Attachments

          Activity

            People

            • Assignee:
              pcmoritz Philipp Moritz
              Reporter:
              pcmoritz Philipp Moritz
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: