Interface SearchVectorsRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<SearchVectorsRequest.Builder,,SearchVectorsRequest> DynamoDbRequest.Builder,SdkBuilder<SearchVectorsRequest.Builder,,SearchVectorsRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
SearchVectorsRequest
-
Method Summary
Modifier and TypeMethodDescriptionexpressionAttributeNames(Map<String, String> expressionAttributeNames) One or more substitution tokens for attribute names in an expression.expressionAttributeValues(Map<String, AttributeValue> expressionAttributeValues) One or more values that can be substituted in an expression.The name of the vector index to search.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.projectionExpression(String projectionExpression) A string that identifies one or more attributes to retrieve from the index.returnConsumedCapacity(String returnConsumedCapacity) Sets the value of the ReturnConsumedCapacity property for this object.returnConsumedCapacity(ReturnConsumedCapacity returnConsumedCapacity) Sets the value of the ReturnConsumedCapacity property for this object.searchConditionExpression(String searchConditionExpression) A condition expression used to filter the vector search results.searchVector(Collection<AttributeValue> searchVector) The search vector to compare against the indexed vectors.searchVector(Consumer<AttributeValue.Builder>... searchVector) The search vector to compare against the indexed vectors.searchVector(AttributeValue... searchVector) The search vector to compare against the indexed vectors.The name or Amazon Resource Name (ARN) of the table containing the vector index.The number of most similar results to return.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.dynamodb.model.DynamoDbRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
tableName
The name or Amazon Resource Name (ARN) of the table containing the vector index.
- Parameters:
tableName- The name or Amazon Resource Name (ARN) of the table containing the vector index.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
indexName
The name of the vector index to search. The index must be in the
ACTIVEstate.- Parameters:
indexName- The name of the vector index to search. The index must be in theACTIVEstate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
returnConsumedCapacity
Sets the value of the ReturnConsumedCapacity property for this object.- Parameters:
returnConsumedCapacity- The new value for the ReturnConsumedCapacity property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
returnConsumedCapacity
Sets the value of the ReturnConsumedCapacity property for this object.- Parameters:
returnConsumedCapacity- The new value for the ReturnConsumedCapacity property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
expressionAttributeNames
One or more substitution tokens for attribute names in an expression. Use the
#character in an expression to dereference an attribute name.- Parameters:
expressionAttributeNames- One or more substitution tokens for attribute names in an expression. Use the#character in an expression to dereference an attribute name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
expressionAttributeValues
SearchVectorsRequest.Builder expressionAttributeValues(Map<String, AttributeValue> expressionAttributeValues) One or more values that can be substituted in an expression. Use the
:character in an expression to dereference an attribute value.- Parameters:
expressionAttributeValues- One or more values that can be substituted in an expression. Use the:character in an expression to dereference an attribute value.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
projectionExpression
A string that identifies one or more attributes to retrieve from the index. Separate attribute names with commas. If not specified, the operation returns all attributes projected into the vector index.
Only attributes projected into the vector index can be retrieved.
- Parameters:
projectionExpression- A string that identifies one or more attributes to retrieve from the index. Separate attribute names with commas. If not specified, the operation returns all attributes projected into the vector index.Only attributes projected into the vector index can be retrieved.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
searchVector
The search vector to compare against the indexed vectors. Each element is a 32-bit IEEE-754 floating point number, provided in DynamoDB list format.
The number of dimensions must match the number of dimensions configured for the vector index.
- Parameters:
searchVector- The search vector to compare against the indexed vectors. Each element is a 32-bit IEEE-754 floating point number, provided in DynamoDB list format.The number of dimensions must match the number of dimensions configured for the vector index.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
searchVector
The search vector to compare against the indexed vectors. Each element is a 32-bit IEEE-754 floating point number, provided in DynamoDB list format.
The number of dimensions must match the number of dimensions configured for the vector index.
- Parameters:
searchVector- The search vector to compare against the indexed vectors. Each element is a 32-bit IEEE-754 floating point number, provided in DynamoDB list format.The number of dimensions must match the number of dimensions configured for the vector index.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
searchVector
The search vector to compare against the indexed vectors. Each element is a 32-bit IEEE-754 floating point number, provided in DynamoDB list format.
The number of dimensions must match the number of dimensions configured for the vector index.
This is a convenience method that creates an instance of theAttributeValue.Builderavoiding the need to create one manually viaAttributeValue.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosearchVector(List<AttributeValue>).- Parameters:
searchVector- a consumer that will call methods onAttributeValue.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
searchConditionExpression
A condition expression used to filter the vector search results. The expression can reference attributes defined in the vector index search schema, including
HASHandINLINE_FILTERkey elements.Only the equality operator (
=) is supported forHASHattributes. Comparison and range operators are supported forINLINE_FILTERattributes. Only top-level attributes from the search schema can be referenced.- Parameters:
searchConditionExpression- A condition expression used to filter the vector search results. The expression can reference attributes defined in the vector index search schema, includingHASHandINLINE_FILTERkey elements.Only the equality operator (
=) is supported forHASHattributes. Comparison and range operators are supported forINLINE_FILTERattributes. Only top-level attributes from the search schema can be referenced.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
topK
The number of most similar results to return.
- Parameters:
topK- The number of most similar results to return.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
SearchVectorsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
SearchVectorsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-