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 TypeMethodDescriptiondefault booleanStores the given atomsbooleanStores the given atomdefault booleanaddAll(Collection<Atom> atoms) Stores the given atomsdefault booleanStores the given atomsdefault voidclear()Deletes all atomsdefault booleanRemoves the given atomsbooleanRemoves the given atomdefault booleanremoveAll(Collection<Atom> atoms) Removes the given atomsdefault booleanRemoves the given atoms
-
Method Details
-
add
Stores the given atom- Parameters:
atom- to add- Returns:
- true iff the atom is new
-
add
Stores the given atoms- Parameters:
atoms- to add- Returns:
- true iff at least one atom is new
-
addAll
Stores the given atoms- Parameters:
atoms- to add- Returns:
- true iff at least one atom is new
-
addAll
-
remove
Removes the given atom- Parameters:
atom- to remove- Returns:
- true iff the atom is removed
-
remove
Removes the given atoms- Parameters:
atoms- to remove- Returns:
- true iff at least one atom is removed
-
removeAll
Removes the given atoms- Parameters:
atoms- to remove- Returns:
- true iff at least one atom is removed
-
removeAll
-
clear
default void clear()Deletes all atoms
-