All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.sirix.access.ResourceStore Maven / Gradle / Ivy

Go to download

SirixDB is a hybrid on-disk and in-memory document oriented, versioned database system. It has a lightweight buffer manager, stores everything in a huge persistent and durable tree and allows efficient reconstruction of every revision. Furthermore, SirixDB implements change tracking, diffing and supports time travel queries.

There is a newer version: 0.11.0
Show newest version
package org.sirix.access;

import org.sirix.api.NodeReadOnlyTrx;
import org.sirix.api.NodeTrx;
import org.sirix.api.ResourceManager;
import org.sirix.cache.BufferManager;

import org.checkerframework.checker.nullness.qual.NonNull;
import java.nio.file.Path;


public interface ResourceStore>
    extends AutoCloseable {

  /**
   * Open a resource, that is get an instance of a {@link ResourceManager} in order to read/write from
   * the resource.
   *
   * @param resourceConfig The resource configuration.
   * @param bufferManager The buffer manager.
   * @param resourceFile The resource to open.
   * @return A resource manager.
   * @throws NullPointerException if one if the arguments is {@code null}
   */
  R openResource(@NonNull ResourceConfiguration resourceConfig,
                 @NonNull BufferManager bufferManager, @NonNull Path resourceFile);

  boolean hasOpenResourceManager(Path resourceFile);

  R getOpenResourceManager(Path resourceFile);

  @Override
  void close();

  boolean closeResourceManager(Path resourceFile);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy