io.sirix.access.ResourceStore Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sirix-core Show documentation
Show all versions of sirix-core Show documentation
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.
package io.sirix.access;
import io.sirix.cache.BufferManager;
import org.checkerframework.checker.nullness.qual.NonNull;
import io.sirix.api.NodeReadOnlyTrx;
import io.sirix.api.NodeTrx;
import io.sirix.api.ResourceSession;
import java.nio.file.Path;
public interface ResourceStore>
extends AutoCloseable {
/**
* Open a resource, that is get an instance of a {@link ResourceSession} in order to read/write from
* the resource.
*
* @param resourceConfig The resource configuration.
* @param bufferManager The buffer manager.
* @param resourcePath The resource to open.
* @return A resource manager.
* @throws NullPointerException if one if the arguments is {@code null}
*/
R beginResourceSession(@NonNull ResourceConfiguration resourceConfig, @NonNull BufferManager bufferManager,
@NonNull Path resourcePath);
boolean hasOpenResourceSession(Path resourcePath);
R getOpenResourceSession(Path resourcePath);
@Override
void close();
boolean closeResourceSession(Path resourceFile);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy