Interface BatchTransaction

  • All Known Implementing Classes:
    Api.BatchTransaction

    public interface BatchTransaction
    Interface for building a batch transaction of fact insertions and deletions.

    Obtain an instance of this interface via the Consumer passed to Oso.batch(Consumer).

    • Method Detail

      • insert

        void insert​(Fact fact)
        Stage a fact for insertion within the batch transaction.
        Parameters:
        fact - The fact to insert.
      • delete

        default void delete​(FactPattern pattern)
        Stage facts matching the pattern for deletion within the batch transaction.
        Parameters:
        pattern - The fact pattern to match for deletion.
      • delete

        void delete​(Fact fact)
        Stage a fact for deletion within the batch transaction.
        Parameters:
        fact - The fact to delete.