:: DeveloperApi :: Close this Event Store interface object, e.g.
:: DeveloperApi :: Close this Event Store interface object, e.g. close connection, release resources, etc.
:: DeveloperApi :: Delete an Event in a non-blocking fashion.
:: DeveloperApi :: Reads from database and returns a Future of Iterator of Events.
:: DeveloperApi :: Reads from database and returns a Future of Iterator of Events.
return events of this app ID
return events of this channel ID (default channel if it's None)
return events with eventTime >= startTime
return events with eventTime < untilTime
return events of this entityType
return events of this entityId
return events with any of these event names.
return events of this targetEntityType:
return events of this targetEntityId
Limit number of events. Get all events if None or Some(-1)
Reverse the order.
ExecutionContext
Future[Iterator[Event]]
:: DeveloperApi :: Get an Event in a non-blocking fashion.
:: DeveloperApi :: Insert an Event in a non-blocking fashion.
:: DeveloperApi :: Initialize Event Store for an app ID and optionally a channel ID.
:: DeveloperApi :: Initialize Event Store for an app ID and optionally a channel ID. This routine is to be called when an app is first created.
App ID
Optional channel ID
true if initialization was successful; false otherwise.
:: DeveloperApi :: Remove Event Store for an app ID and optional channel ID.
:: DeveloperApi :: Remove Event Store for an app ID and optional channel ID.
App ID
Optional channel ID
true if removal was successful; false otherwise.
Default timeout for asynchronous operations that is set to 1 minute
:: DeveloperApi :: Delete an Event in a non-blocking fashion.
:: DeveloperApi :: Get an Event in a non-blocking fashion.
:: DeveloperApi :: Insert an Event in a non-blocking fashion.
:: DeveloperApi :: Insert Events in a non-blocking fashion.
:: DeveloperApi :: Insert Events in a non-blocking fashion.
Default implementation of this method is calling Int, Option[Int]) per event. Override in the storage implementation if the storage has a better way to insert multiple data at once.
Events to be inserted
App ID for the Events to be inserted to
Optional channel ID for the Events to be inserted to
reads events of the specified entity.
reads events of the specified entity.
return events of this app ID
return events of this channel ID (default channel if it's None)
return events of this entityType
return events of this entityId
return events with any of these event names.
return events of this targetEntityType:
return events of this targetEntityId
return events with eventTime >= startTime
return events with eventTime < untilTime
Limit number of events. Get all events if None or Some(-1)
Return latest event first (default true)
ExecutionContext
Either[StorageError, Iterator[Event]]
(Since version 0.9.2) Use LEventStore.findByEntity() instead.
:: DeveloperApi :: Base trait of a data access object that directly returns Event without going through Spark's parallelization. Engine developers should use org.apache.predictionio.data.store.LEventStore instead of using this directly.