Verified Owner
Top Description Fields Constructors Methods
org.jabref.logic.ai.util

public abstract Class MVStoreBase

extends Object
implements AutoCloseable
Class Inheritance
All Implemented Interfaces
java.lang.AutoCloseable
Known Direct Subclasses
org.jabref.logic.ai.summarization.repositories.MVStoreSummariesRepository, org.jabref.logic.ai.ingestion.repositories.MVStoreIngestedDocumentsRepository, org.jabref.logic.ai.embedding.MVStoreEmbeddingStore, org.jabref.logic.ai.chatting.repositories.MVStoreChatHistoryRepository, org.jabref.logic.citation.repository.BibEntryCitationsAndReferencesRepositoryShell
Imports
java.io.IOException, java.nio.file.Files, .Path, org.jabref.logic.util.NotificationService, org.h2.mvstore.MVStore, .MVStoreException, org.jspecify.annotations.NonNull, org.slf4j.Logger, .LoggerFactory

This is a base class for the AI artifacts (summaries, chat messages, etc.). It sets up and wraps an MVStore, and also provides a way to load an in-memory storage in case there are problems while initializing the on-disk version. It also uses a NotificationService to notify the user about errors.

Field Summary

Modifier and TypeField and Description
private static final Logger
protected MVStore

Constructor Summary

AccessConstructor and Description
public
protected

Method Summary

Modifier and TypeMethod and Description
public void
close()

Implements java.lang.AutoCloseable.close.

Closes this resource, relinquishing any underlying resources.

public void
protected abstract String
protected abstract String
private MVStore
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

LOGGERback to summary
private static final Logger LOGGER
mvStoreback to summary
protected MVStore mvStore

Constructor Detail

MVStoreBaseback to summary
public MVStoreBase(@NonNull Path path, NotificationService dialogService)
MVStoreBaseback to summary
protected MVStoreBase()

Method Detail

closeback to summary
public void close()

Implements java.lang.AutoCloseable.close.

Doc from java.lang.AutoCloseable.close.

Closes this resource, relinquishing any underlying resources. This method is invoked automatically on objects managed by the try-with-resources statement.

commitback to summary
public void commit()
errorMessageForOpeningback to summary
protected abstract String errorMessageForOpening()
errorMessageForOpeningLocalizedback to summary
protected abstract String errorMessageForOpeningLocalized()
openInMemoryStoreback to summary
private MVStore openInMemoryStore()