Interface DynamoDbAsyncVectorIndex<T>
- Type Parameters:
T- The type of the modelled object.
- All Known Implementing Classes:
DefaultDynamoDbAsyncVectorIndex
Asynchronous interface for running vector search commands against a specific DynamoDb vector index linked to a mapped table.
By default, all command methods throw an UnsupportedOperationException to prevent interface extensions from breaking
implementing classes.
-
Method Summary
Modifier and TypeMethodDescriptionGets the physical vector index name that operations performed by this object will be executed against.Gets theDynamoDbEnhancedClientExtensionassociated with this mapped resource.default CompletableFuture<SearchVectorsEnhancedResponse<T>> searchVectorsWithResponse(Consumer<SearchVectorsEnhancedRequest.Builder> requestConsumer) Executes a vector similarity search against this vector index and returns the full enhanced response.default CompletableFuture<SearchVectorsEnhancedResponse<T>> Executes a vector similarity search against this vector index and returns the full enhanced response.Gets the physical table name that operations performed by this object will be executed against.Gets theTableSchemaobject that this mapped vector index was built with.
-
Method Details
-
searchVectorsWithResponse
default CompletableFuture<SearchVectorsEnhancedResponse<T>> searchVectorsWithResponse(SearchVectorsEnhancedRequest request) Executes a vector similarity search against this vector index and returns the full enhanced response.- Parameters:
request- ASearchVectorsEnhancedRequestdefining the search parameters.- Returns:
- A
CompletableFutureofSearchVectorsEnhancedResponse.
-
searchVectorsWithResponse
default CompletableFuture<SearchVectorsEnhancedResponse<T>> searchVectorsWithResponse(Consumer<SearchVectorsEnhancedRequest.Builder> requestConsumer) Executes a vector similarity search against this vector index and returns the full enhanced response.- Parameters:
requestConsumer- AConsumerofSearchVectorsEnhancedRequest.Builder.- Returns:
- A
CompletableFutureofSearchVectorsEnhancedResponse.
-
mapperExtension
DynamoDbEnhancedClientExtension mapperExtension()Gets theDynamoDbEnhancedClientExtensionassociated with this mapped resource.- Returns:
- The
DynamoDbEnhancedClientExtensionassociated with this mapped resource.
-
tableSchema
TableSchema<T> tableSchema()Gets theTableSchemaobject that this mapped vector index was built with.- Returns:
- The
TableSchemaobject for this mapped vector index.
-
tableName
String tableName()Gets the physical table name that operations performed by this object will be executed against.- Returns:
- The physical table name.
-
indexName
String indexName()Gets the physical vector index name that operations performed by this object will be executed against.- Returns:
- The physical vector index name.
-