Class LmdbStore

    • Constructor Detail

      • LmdbStore

        public LmdbStore()
        Creates a new LmdbStore with default settings.
      • LmdbStore

        public LmdbStore​(LmdbStoreConfig config)
        Creates a new LmdbStore.
      • LmdbStore

        public LmdbStore​(File dataDir)
        Creates a new LmdbStore with default settings.
    • Method Detail

      • setDataDir

        public void setDataDir​(File dataDir)
        Specified by:
        setDataDir in interface Sail
        Overrides:
        setDataDir in class org.eclipse.rdf4j.sail.helpers.AbstractSail
      • initializeInternal

        protected void initializeInternal()
                                   throws SailException
        Initializes this LmdbStore.
        Overrides:
        initializeInternal in class org.eclipse.rdf4j.sail.helpers.AbstractSail
        Throws:
        SailException - If this LmdbStore could not be initialized using the parameters that have been set.
      • shutDownInternal

        protected void shutDownInternal()
                                 throws SailException
        Specified by:
        shutDownInternal in class org.eclipse.rdf4j.sail.helpers.AbstractSail
        Throws:
        SailException
      • shutDown

        public void shutDown()
                      throws SailException
        Specified by:
        shutDown in interface Sail
        Overrides:
        shutDown in class org.eclipse.rdf4j.sail.helpers.AbstractSail
        Throws:
        SailException
      • isWritable

        public boolean isWritable()
        Specified by:
        isWritable in interface Sail
      • getValueFactory

        public org.eclipse.rdf4j.model.ValueFactory getValueFactory()
        Specified by:
        getValueFactory in interface Sail
      • getTransactionLock

        protected org.eclipse.rdf4j.common.concurrent.locks.Lock getTransactionLock​(org.eclipse.rdf4j.common.transaction.IsolationLevel level)
                                                                             throws SailException
        This call will block when IsolationLevels.NONE is provided when there are active transactions with a higher isolation and block when a higher isolation is provided when there are active transactions with IsolationLevels.NONE isolation. Store is either exclusively in IsolationLevels.NONE isolation with potentially zero or more transactions, or exclusively in higher isolation mode with potentially zero or more transactions.
        Parameters:
        level - indicating desired mode IsolationLevels.NONE or higher
        Returns:
        Lock used to prevent Store from switching isolation modes
        Throws:
        SailException
      • getCollectionFactory

        public Supplier<org.eclipse.rdf4j.collection.factory.api.CollectionFactory> getCollectionFactory()
        Specified by:
        getCollectionFactory in interface Sail