Interface CreateVectorIndexAction.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<CreateVectorIndexAction.Builder,,CreateVectorIndexAction> SdkBuilder<CreateVectorIndexAction.Builder,,CreateVectorIndexAction> SdkPojo
- Enclosing class:
CreateVectorIndexAction
-
Method Summary
Modifier and TypeMethodDescriptiondimensions(Long dimensions) The number of dimensions in each vector.distanceFunction(String distanceFunction) The distance function used to calculate similarity.distanceFunction(VectorDistanceFunction distanceFunction) The distance function used to calculate similarity.The name of the vector index.default CreateVectorIndexAction.Builderprojection(Consumer<Projection.Builder> projection) Specifies attributes that are copied (projected) from the table into the vector index.projection(Projection projection) Specifies attributes that are copied (projected) from the table into the vector index.searchSchema(Collection<SearchSchemaElement> searchSchema) The partition key and inline filter attribute definitions for the vector index.searchSchema(Consumer<SearchSchemaElement.Builder>... searchSchema) The partition key and inline filter attribute definitions for the vector index.searchSchema(SearchSchemaElement... searchSchema) The partition key and inline filter attribute definitions for the vector index.default CreateVectorIndexAction.BuildervectorAttribute(Consumer<VectorAttributeDefinition.Builder> vectorAttribute) The attribute that contains vector embeddings.vectorAttribute(VectorAttributeDefinition vectorAttribute) The attribute that contains vector embeddings.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
indexName
The name of the vector index. Must be unique within the table.
- Parameters:
indexName- The name of the vector index. Must be unique within the table.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vectorAttribute
The attribute that contains vector embeddings. If multiple vector indexes reference the same attribute, they must all use the same number of dimensions.
- Parameters:
vectorAttribute- The attribute that contains vector embeddings. If multiple vector indexes reference the same attribute, they must all use the same number of dimensions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vectorAttribute
default CreateVectorIndexAction.Builder vectorAttribute(Consumer<VectorAttributeDefinition.Builder> vectorAttribute) The attribute that contains vector embeddings. If multiple vector indexes reference the same attribute, they must all use the same number of dimensions.
This is a convenience method that creates an instance of theVectorAttributeDefinition.Builderavoiding the need to create one manually viaVectorAttributeDefinition.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tovectorAttribute(VectorAttributeDefinition).- Parameters:
vectorAttribute- a consumer that will call methods onVectorAttributeDefinition.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
searchSchema
The partition key and inline filter attribute definitions for the vector index.
- Parameters:
searchSchema- The partition key and inline filter attribute definitions for the vector index.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
searchSchema
The partition key and inline filter attribute definitions for the vector index.
- Parameters:
searchSchema- The partition key and inline filter attribute definitions for the vector index.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
searchSchema
The partition key and inline filter attribute definitions for the vector index.
This is a convenience method that creates an instance of theSearchSchemaElement.Builderavoiding the need to create one manually viaSearchSchemaElement.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosearchSchema(List<SearchSchemaElement>).- Parameters:
searchSchema- a consumer that will call methods onSearchSchemaElement.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
projection
Specifies attributes that are copied (projected) from the table into the vector index.
- Parameters:
projection- Specifies attributes that are copied (projected) from the table into the vector index.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
projection
Specifies attributes that are copied (projected) from the table into the vector index.
This is a convenience method that creates an instance of theProjection.Builderavoiding the need to create one manually viaProjection.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toprojection(Projection).- Parameters:
projection- a consumer that will call methods onProjection.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
dimensions
The number of dimensions in each vector.
- Parameters:
dimensions- The number of dimensions in each vector.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
distanceFunction
The distance function used to calculate similarity. Valid values:
COSINE,EUCLIDEAN,DOT_PRODUCT.- Parameters:
distanceFunction- The distance function used to calculate similarity. Valid values:COSINE,EUCLIDEAN,DOT_PRODUCT.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
distanceFunction
The distance function used to calculate similarity. Valid values:
COSINE,EUCLIDEAN,DOT_PRODUCT.- Parameters:
distanceFunction- The distance function used to calculate similarity. Valid values:COSINE,EUCLIDEAN,DOT_PRODUCT.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-