Skip to content

IRepository Interface

sequenze edited this page Jun 10, 2017 · 8 revisions

Represents a strongly typed set of tuples that can be access through pattern matching.

Syntax

    public interface IRepository

Methods

                Name                   Description
Get(string, IPattern) Retrieves and removes the first tuple from the target space matching the specified pattern. The operation will block if no elements match.
Get(string, object[]) Retrieves and removes the first tuple from the target space matching the specified pattern. The operation will block if no elements match.
GetP(string, IPattern) Retrieves and removes the first tuple from the target space matching the specified pattern. The operation is non-blocking. The operation will return null if no elements match.
GetP(string, object[]) Retrieves and removes the first tuple from the target space matching the specified pattern. The operation is non-blocking. The operation will return null if no elements match.
GetAll(string, IPattern) Retrieves and removes all tuples from the target space matching the specified pattern. The operation is non-blocking. The operation will return an empty set if no elements match.
GetAll(string, object[]) Retrieves and removes all tuples from the target space matching the specified pattern. The operation is non-blocking. The operation will return an empty set if no elements match.
Query(string, IPattern) Retrieves the first tuple from the target space matching the specified pattern. The operation will block if no elements match.
Query(string, object[]) Retrieves the first tuple from the target space matching the specified pattern. The operation will block if no elements match.
QueryP(string, IPattern) Retrieves the first tuple from the target space matching the specified pattern. The operation is non-blocking. The operation will return null if no elements match.
QueryP(string, object[]) Retrieves the first tuple from the target space matching the specified pattern. The operation is non-blocking. The operation will return null if no elements match.
QueryAll(string, IPattern) Retrieves all tuples from the target space matching the specified pattern. The operation is non-blocking. The operation will return an empty set if no elements match.
QueryAll(string, object[]) Retrieves all tuples from the target space matching the specified pattern. The operation is non-blocking. The operation will return an empty set if no elements match.
Put(string, ITuple) Inserts the tuple passed as argument into the target space.
Put(string, object[]) Inserts the tuple passed as argument into the target space.

Remarks

IRepository is the base interface of all repositories.


See Also

Space, IPattern, ITuple, Tuple

Clone this wiki locally