Data Transport
Basic Interface
- class reip.interface.Sink[source]
An abstract interface representing a place to put data.
Essentially, a put-only queue.
Mechanics
- class reip.stores.customer.Customer(source, index, store_id, **kw)[source]
A Source object to read from a
reip.stores.producer.Producer- property cursor
This customer’s reader cursor. It marks the index of the data within the Producer’s Store.
- property store
Links to the corresponding store from the Producer. This will vary depending on the configuration across Tasks.
- class reip.stores.producer.Producer(size=100, delete_rate=10, task_id=|(((( reip UNSET ))))|, skip_no_readers=True, **kw)[source]
-
- gen_source(task_id=|(((( reip UNSET ))))|, throughput='small', **kw)[source]
Generate a source from this sink.
- Parameters
task_id (str) – the identifier for the task.
throughput (str) –
The size of data. This determines the serialization method to use. Should be:
’small’ for data < 1GB
’medium’ for data < 3GB
’large’ for data > 3GB
**kwargs – arguments to pass to store.Customer.
Stores
- class reip.stores.queue_store.QueueCustomer(*a, serializer=None, **kw)[source]
A customer that requests values from a Queue Store.
- class reip.stores.queue_store.QueueStore(*a, **kw)[source]
A Store that will push values through a queue when a Customer requests.
- Customer
- class reip.stores.plasma.PlasmaStore(size, plasma_socket=None)[source]
Store that puts data in plasma store.
Requires running a plasma store process.
e.g.
plasma_store -s $TMPDIR/plasma -m 2000000000
- class reip.stores.base.BaseStore[source]
A base class for Stores.
- class Customer(source, index, store_id, **kw)
A Source object to read from a
reip.stores.producer.Producer- property cursor
This customer’s reader cursor. It marks the index of the data within the Producer’s Store.
- next()
Increment this cursor.
- property store
Links to the corresponding store from the Producer. This will vary depending on the configuration across Tasks.