Interface StoreFactory
- All Known Implementing Classes:
DefaultStoreFactory
public interface StoreFactory
Factory for creating stores from atoms, atom sets, or iterators.
- Author:
- Clément Sipieter (INRIA) <clement@6pi.fr>
-
Method Summary
Modifier and TypeMethodDescriptionfr.lirmm.graphik.integraal.api.store.Storecreate()Creates an empty store.fr.lirmm.graphik.integraal.api.store.StoreCreates a store containing a single atom.fr.lirmm.graphik.integraal.api.store.StoreCreates a store initialized with the provided atoms.fr.lirmm.graphik.integraal.api.store.StoreCreates a store initialized from another atom set.fr.lirmm.graphik.integraal.api.store.Storecreate(InMemoryAtomSet src) Creates a store initialized from an in-memory atom set.fr.lirmm.graphik.integraal.api.store.Storecreate(CloseableIterator<Atom> atoms) Creates a store initialized from an atom iterator.fr.lirmm.graphik.integraal.api.store.StoreCreates a store initialized from an atom iterator that does not throw checked exceptions.
-
Method Details
-
create
Creates an empty store.- Returns:
- the created store
- Throws:
AtomSetException- if the store cannot be created
-
create
Creates a store initialized with the provided atoms.- Parameters:
atoms- the atoms to add- Returns:
- the created store
- Throws:
AtomSetException- if the store cannot be created
-
create
fr.lirmm.graphik.integraal.api.store.Store create(AtomSet src) throws AtomSetException, IteratorException Creates a store initialized from another atom set.- Parameters:
src- the source atom set- Returns:
- the created store
- Throws:
AtomSetException- if the store cannot be createdIteratorException- if the source iterator cannot be consumed
-
create
Creates a store initialized from an in-memory atom set.- Parameters:
src- the source atom set- Returns:
- the created store
- Throws:
AtomSetException- if the store cannot be created
-
create
fr.lirmm.graphik.integraal.api.store.Store create(CloseableIterator<Atom> atoms) throws AtomSetException, IteratorException Creates a store initialized from an atom iterator.- Parameters:
atoms- the atoms to add- Returns:
- the created store
- Throws:
AtomSetException- if the store cannot be createdIteratorException- if the iterator cannot be consumed
-
create
fr.lirmm.graphik.integraal.api.store.Store create(CloseableIteratorWithoutException<Atom> atoms) throws AtomSetException Creates a store initialized from an atom iterator that does not throw checked exceptions.- Parameters:
atoms- the atoms to add- Returns:
- the created store
- Throws:
AtomSetException- if the store cannot be created
-
create
Creates a store containing a single atom.- Parameters:
atom- the atom to add- Returns:
- the created store
- Throws:
AtomSetException- if the store cannot be created
-