plasma

package
v0.0.0-...-e0f2aff Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2021 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// IDLength is length of ObjectID in bytes
	IDLength = 20
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is a client to Arrow's plasma store

func Connect

func Connect(path string) (*Client, error)

Connect connects to plasma store

func (*Client) Disconnect

func (c *Client) Disconnect() error

Disconnect disconnects from plasma store

func (*Client) ReadTable

func (c *Client) ReadTable(id ObjectID, timeout time.Duration) (*carrow.Table, error)

ReadTable reads a table from plasma store

func (*Client) Release

func (c *Client) Release(id ObjectID) error

Release releases (deletes) object from plasma store

func (*Client) WriteTable

func (c *Client) WriteTable(t *carrow.Table, id ObjectID) error

WriteTable write a table to plasma store If id is empty, a new random id will be generated

type ObjectID

type ObjectID [IDLength]byte

ObjectID is store ID for an object

func IDFromString

func IDFromString(s string) (ObjectID, error)

IDFromString converts a string to ObjectID

func RandomID

func RandomID() (ObjectID, error)

RandomID return a new random plasma ID

func (ObjectID) String

func (oid ObjectID) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL