VolatileVectorStoreRecordCollection<Record> Class
- java.
lang. Object - com.
microsoft. semantickernel. data. VolatileVectorStoreRecordCollection<Record>
- com.
Type Parameters
- Record
The type of record in the collection.
Implements
public class VolatileVectorStoreRecordCollection<Record>
implements VectorStoreRecordCollection<java.lang.String,Record>
Represents a volatile vector store record collection.
Constructor Summary
| Constructor | Description |
|---|---|
| VolatileVectorStoreRecordCollection(String collectionName, VolatileVectorStoreRecordCollectionOptions<Record> options) |
Creates a new instance of the volatile vector store record collection. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| reactor.core.publisher.Mono<java.lang.Boolean> |
collectionExistsAsync()
Checks if the collection exists in the store. |
|
reactor.core.publisher.Mono<Vector |
createCollectionAsync()
Creates the collection in the store. |
|
reactor.core.publisher.Mono<Vector |
createCollectionIfNotExistsAsync()
Creates the collection in the store if it does not exist. |
| reactor.core.publisher.Mono<java.lang.Void> |
deleteAsync(String key, DeleteRecordOptions options)
Deletes a record from the store. |
| reactor.core.publisher.Mono<java.lang.Void> |
deleteBatchAsync(List<String> strings, DeleteRecordOptions options)
Deletes a batch of records from the store. |
| reactor.core.publisher.Mono<java.lang.Void> |
deleteCollectionAsync()
Deletes the collection from the store. |
| reactor.core.publisher.Mono<Record> |
getAsync(String key, GetRecordOptions options)
Gets a record from the store. |
| reactor.core.publisher.Mono<java.util.List<Record>> |
getBatchAsync(List<String> keys, GetRecordOptions options)
Gets a batch of records from the store. |
| java.lang.String |
getCollectionName()
Gets the name of the collection. |
|
reactor.core.publisher.Mono<Vector |
searchAsync(List<Float> vector, VectorSearchOptions options)
Vectorized search. |
| reactor.core.publisher.Mono<java.lang.String> |
upsertAsync(Record data, UpsertRecordOptions options)
Inserts or updates a record in the store. |
| reactor.core.publisher.Mono<java.util.List<java.lang.String>> |
upsertBatchAsync(List<Record> data, UpsertRecordOptions options)
Inserts or updates a batch of records in the store. |
Methods inherited from java.lang.Object
Constructor Details
VolatileVectorStoreRecordCollection
public VolatileVectorStoreRecordCollection(String collectionName, VolatileVectorStoreRecordCollectionOptions
Creates a new instance of the volatile vector store record collection.
Parameters:
Method Details
collectionExistsAsync
public Mono
Checks if the collection exists in the store.
Returns:
createCollectionAsync
public Mono
Creates the collection in the store.
Returns:
createCollectionIfNotExistsAsync
public Mono
Creates the collection in the store if it does not exist.
Returns:
deleteAsync
public Mono
Deletes a record from the store.
Parameters:
Returns:
deleteBatchAsync
public Mono
Deletes a batch of records from the store.
Parameters:
Returns:
deleteCollectionAsync
public Mono
Deletes the collection from the store.
Returns:
getAsync
public Mono
Gets a record from the store.
Parameters:
Returns:
getBatchAsync
public Mono> getBatchAsync(List
Gets a batch of records from the store.
Parameters:
Returns:
getCollectionName
public String getCollectionName()
Gets the name of the collection.
Returns:
searchAsync
public Mono
Vectorized search. This method searches for records that are similar to the given vector.
Parameters:
Returns:
upsertAsync
public Mono
Inserts or updates a record in the store.
Parameters:
Returns:
upsertBatchAsync
public Mono> upsertBatchAsync(List
Inserts or updates a batch of records in the store.
Parameters:
Returns: