Class VolatileVectorStore
- java.lang.Object
-
- com.microsoft.semantickernel.data.VolatileVectorStore
-
- All Implemented Interfaces:
VectorStore
public class VolatileVectorStore extends Object implements VectorStore
Represents a volatile vector store. A volatile vector store is an in-memory vector store that does not persist data.
-
-
Constructor Summary
Constructors Constructor Description VolatileVectorStore()Creates a new instance of the volatile vector store.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <Key,Record>
VectorStoreRecordCollection<Key,Record>getCollection(String collectionName, VectorStoreRecordCollectionOptions<Key,Record> options)Gets a collection from the vector store.reactor.core.publisher.Mono<List<String>>getCollectionNamesAsync()Gets the names of all collections in the vector store.
-
-
-
Method Detail
-
getCollection
public <Key,Record> VectorStoreRecordCollection<Key,Record> getCollection(@Nonnull String collectionName, @Nonnull VectorStoreRecordCollectionOptions<Key,Record> options)
Gets a collection from the vector store.- Specified by:
getCollectionin interfaceVectorStore- Type Parameters:
Key- The key type.Record- The record type.- Parameters:
collectionName- The name of the collection.options- The options for the collection.- Returns:
- The collection.
-
getCollectionNamesAsync
public reactor.core.publisher.Mono<List<String>> getCollectionNamesAsync()
Gets the names of all collections in the vector store.- Specified by:
getCollectionNamesAsyncin interfaceVectorStore- Returns:
- A list of collection names.
-
-