Class DefaultStoreFactory
java.lang.Object
fr.lirmm.graphik.integraal.core.factory.DefaultStoreFactory
- All Implemented Interfaces:
StoreFactory
Default singleton implementation of
StoreFactory.- Author:
- Clément Sipieter (INRIA) <clement@6pi.fr>
-
Method Summary
Modifier and TypeMethodDescriptionfr.lirmm.graphik.integraal.core.atomset.graph.DefaultInMemoryGraphStorecreate()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.static DefaultStoreFactoryinstance()Returns the shared store factory instance.
-
Method Details
-
instance
Returns the shared store factory instance.- Returns:
- the shared instance
-
create
public fr.lirmm.graphik.integraal.core.atomset.graph.DefaultInMemoryGraphStore create()Description copied from interface:StoreFactoryCreates an empty store.- Specified by:
createin interfaceStoreFactory- Returns:
- the created store
-
create
Description copied from interface:StoreFactoryCreates a store initialized with the provided atoms.- Specified by:
createin interfaceStoreFactory- Parameters:
atoms- the atoms to add- Returns:
- the created store
-
create
public fr.lirmm.graphik.integraal.api.store.Store create(CloseableIterator<Atom> atoms) throws IteratorException Description copied from interface:StoreFactoryCreates a store initialized from an atom iterator.- Specified by:
createin interfaceStoreFactory- Parameters:
atoms- the atoms to add- Returns:
- the created store
- Throws:
IteratorException- if the iterator cannot be consumed
-
create
public fr.lirmm.graphik.integraal.api.store.Store create(CloseableIteratorWithoutException<Atom> atoms) Description copied from interface:StoreFactoryCreates a store initialized from an atom iterator that does not throw checked exceptions.- Specified by:
createin interfaceStoreFactory- Parameters:
atoms- the atoms to add- Returns:
- the created store
-
create
Description copied from interface:StoreFactoryCreates a store initialized from another atom set.- Specified by:
createin interfaceStoreFactory- Parameters:
src- the source atom set- Returns:
- the created store
- Throws:
IteratorException- if the source iterator cannot be consumed
-
create
Description copied from interface:StoreFactoryCreates a store initialized from an in-memory atom set.- Specified by:
createin interfaceStoreFactory- Parameters:
src- the source atom set- Returns:
- the created store
-
create
Description copied from interface:StoreFactoryCreates a store containing a single atom.- Specified by:
createin interfaceStoreFactory- Parameters:
atom- the atom to add- Returns:
- the created store
-