Class DefaultStoreFactory

java.lang.Object
fr.lirmm.graphik.integraal.core.factory.DefaultStoreFactory
All Implemented Interfaces:
StoreFactory

public final class DefaultStoreFactory extends Object implements StoreFactory
Default singleton implementation of StoreFactory.
Author:
Clément Sipieter (INRIA) <clement@6pi.fr>
  • Method Summary

    Modifier and Type
    Method
    Description
    fr.lirmm.graphik.integraal.core.atomset.graph.DefaultInMemoryGraphStore
    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.
    Returns the shared store factory instance.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • instance

      public static DefaultStoreFactory 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: StoreFactory
      Creates an empty store.
      Specified by:
      create in interface StoreFactory
      Returns:
      the created store
    • create

      public fr.lirmm.graphik.integraal.api.store.Store create(Atom[] atoms)
      Description copied from interface: StoreFactory
      Creates a store initialized with the provided atoms.
      Specified by:
      create in interface StoreFactory
      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: StoreFactory
      Creates a store initialized from an atom iterator.
      Specified by:
      create in interface StoreFactory
      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: StoreFactory
      Creates a store initialized from an atom iterator that does not throw checked exceptions.
      Specified by:
      create in interface StoreFactory
      Parameters:
      atoms - the atoms to add
      Returns:
      the created store
    • create

      public fr.lirmm.graphik.integraal.api.store.Store create(AtomSet src) throws IteratorException
      Description copied from interface: StoreFactory
      Creates a store initialized from another atom set.
      Specified by:
      create in interface StoreFactory
      Parameters:
      src - the source atom set
      Returns:
      the created store
      Throws:
      IteratorException - if the source iterator cannot be consumed
    • create

      public fr.lirmm.graphik.integraal.api.store.Store create(InMemoryAtomSet src)
      Description copied from interface: StoreFactory
      Creates a store initialized from an in-memory atom set.
      Specified by:
      create in interface StoreFactory
      Parameters:
      src - the source atom set
      Returns:
      the created store
    • create

      public fr.lirmm.graphik.integraal.api.store.Store create(Atom atom)
      Description copied from interface: StoreFactory
      Creates a store containing a single atom.
      Specified by:
      create in interface StoreFactory
      Parameters:
      atom - the atom to add
      Returns:
      the created store