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 Type
    Method
    Description
    fr.lirmm.graphik.integraal.api.store.Store
    Creates an empty store.
    fr.lirmm.graphik.integraal.api.store.Store
    create(Atom atom)
    Creates a store containing a single atom.
    fr.lirmm.graphik.integraal.api.store.Store
    create(Atom[] atoms)
    Creates a store initialized with the provided atoms.
    fr.lirmm.graphik.integraal.api.store.Store
    Creates a store initialized from another atom set.
    fr.lirmm.graphik.integraal.api.store.Store
    Creates a store initialized from an in-memory atom set.
    fr.lirmm.graphik.integraal.api.store.Store
    Creates a store initialized from an atom iterator.
    fr.lirmm.graphik.integraal.api.store.Store
    Creates a store initialized from an atom iterator that does not throw checked exceptions.
  • Method Details

    • create

      fr.lirmm.graphik.integraal.api.store.Store create() throws AtomSetException
      Creates an empty store.
      Returns:
      the created store
      Throws:
      AtomSetException - if the store cannot be created
    • create

      fr.lirmm.graphik.integraal.api.store.Store create(Atom[] atoms) throws AtomSetException
      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 created
      IteratorException - if the source iterator cannot be consumed
    • create

      fr.lirmm.graphik.integraal.api.store.Store create(InMemoryAtomSet src) throws AtomSetException
      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 created
      IteratorException - 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

      fr.lirmm.graphik.integraal.api.store.Store create(Atom atom) throws AtomSetException
      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