Interface Writable

All Known Subinterfaces:
CSVCopyable, DatalogDelegable, FactBase, MaterializedWritableDataCollection<Q,W>, QueryableWritableDataCollection<Q,W>
All Known Implementing Classes:
DefaultInMemoryAtomSet, FactBaseDelAtomsWrapper, FederatedFactBase, LightInMemoryGraphStore, RDBMSStore, SimpleInMemoryGraphStore, TripleStoreStore

public interface Writable
Write access contract for atom stores.
Author:
Florent Tornil
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
    add(FOFormula atoms)
    Stores the given atoms
    boolean
    add(Atom atom)
    Stores the given atom
    default boolean
    Stores the given atoms
    default boolean
    addAll(Stream<Atom> atoms)
    Stores the given atoms
    default void
    Deletes all atoms
    default boolean
    Removes the given atoms
    boolean
    remove(Atom atom)
    Removes the given atom
    default boolean
    Removes the given atoms
    default boolean
    Removes the given atoms
  • Method Details

    • add

      boolean add(Atom atom)
      Stores the given atom
      Parameters:
      atom - to add
      Returns:
      true iff the atom is new
    • add

      default boolean add(FOFormula atoms)
      Stores the given atoms
      Parameters:
      atoms - to add
      Returns:
      true iff at least one atom is new
    • addAll

      default boolean addAll(Collection<Atom> atoms)
      Stores the given atoms
      Parameters:
      atoms - to add
      Returns:
      true iff at least one atom is new
    • addAll

      default boolean addAll(Stream<Atom> atoms)
      Stores the given atoms
      Parameters:
      atoms - to add
      Returns:
      true iff at least one atom is new
    • remove

      boolean remove(Atom atom)
      Removes the given atom
      Parameters:
      atom - to remove
      Returns:
      true iff the atom is removed
    • remove

      default boolean remove(FOFormula atoms)
      Removes the given atoms
      Parameters:
      atoms - to remove
      Returns:
      true iff at least one atom is removed
    • removeAll

      default boolean removeAll(Collection<Atom> atoms)
      Removes the given atoms
      Parameters:
      atoms - to remove
      Returns:
      true iff at least one atom is removed
    • removeAll

      default boolean removeAll(Stream<Atom> atoms)
      Removes the given atoms
      Parameters:
      atoms - to remove
      Returns:
      true iff at least one atom is removed
    • clear

      default void clear()
      Deletes all atoms