Interface VectorIndexDescription.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<VectorIndexDescription.Builder,,VectorIndexDescription> SdkBuilder<VectorIndexDescription.Builder,,VectorIndexDescription> SdkPojo
- Enclosing class:
VectorIndexDescription
-
Method Summary
Modifier and TypeMethodDescriptionbackfilling(Boolean backfilling) Specifies whether the index is currently backfilling.dimensions(Long dimensions) The number of dimensions in each vector.distanceFunction(String distanceFunction) The distance function used to calculate similarity between vectors.distanceFunction(VectorDistanceFunction distanceFunction) The distance function used to calculate similarity between vectors.The Amazon Resource Name (ARN) that uniquely identifies the vector index.The name of the vector index.indexSizeBytes(Long indexSizeBytes) The total size of the vector index, in bytes.indexStatus(String indexStatus) The current state of the vector index:indexStatus(IndexStatus indexStatus) The current state of the vector index:The number of items indexed in the vector index.default VectorIndexDescription.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 search schema that defines partition key and inline filter attributes for the vector index.searchSchema(Consumer<SearchSchemaElement.Builder>... searchSchema) The search schema that defines partition key and inline filter attributes for the vector index.searchSchema(SearchSchemaElement... searchSchema) The search schema that defines partition key and inline filter attributes for the vector index.default VectorIndexDescription.BuildervectorAttribute(Consumer<VectorAttributeDefinition.Builder> vectorAttribute) The vector attribute configuration for the index.vectorAttribute(VectorAttributeDefinition vectorAttribute) The vector attribute configuration for the index.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.
- Parameters:
indexName- The name of the vector index.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
searchSchema
The search schema that defines partition key and inline filter attributes for the vector index.
- Parameters:
searchSchema- The search schema that defines partition key and inline filter attributes for the vector index.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
searchSchema
The search schema that defines partition key and inline filter attributes for the vector index.
- Parameters:
searchSchema- The search schema that defines partition key and inline filter attributes for the vector index.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
searchSchema
The search schema that defines partition key and inline filter attributes 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:
-
vectorAttribute
The vector attribute configuration for the index.
- Parameters:
vectorAttribute- The vector attribute configuration for the index.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vectorAttribute
default VectorIndexDescription.Builder vectorAttribute(Consumer<VectorAttributeDefinition.Builder> vectorAttribute) The vector attribute configuration for the index.
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:
-
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 between vectors.
- Parameters:
distanceFunction- The distance function used to calculate similarity between vectors.- 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 between vectors.
- Parameters:
distanceFunction- The distance function used to calculate similarity between vectors.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
indexStatus
The current state of the vector index:
-
CREATING- The index is being created. -
ACTIVE- The index is ready for use. -
DELETING- The index is being deleted.
- Parameters:
indexStatus- The current state of the vector index:-
CREATING- The index is being created. -
ACTIVE- The index is ready for use. -
DELETING- The index is being deleted.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
indexStatus
The current state of the vector index:
-
CREATING- The index is being created. -
ACTIVE- The index is ready for use. -
DELETING- The index is being deleted.
- Parameters:
indexStatus- The current state of the vector index:-
CREATING- The index is being created. -
ACTIVE- The index is ready for use. -
DELETING- The index is being deleted.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
backfilling
Specifies whether the index is currently backfilling. During backfill,
SearchVectorsoperations might return incomplete results.- Parameters:
backfilling- Specifies whether the index is currently backfilling. During backfill,SearchVectorsoperations might return incomplete results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
indexSizeBytes
The total size of the vector index, in bytes. Amazon DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.
- Parameters:
indexSizeBytes- The total size of the vector index, in bytes. Amazon DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
itemCount
The number of items indexed in the vector index. Amazon DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.
- Parameters:
itemCount- The number of items indexed in the vector index. Amazon DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
indexArn
The Amazon Resource Name (ARN) that uniquely identifies the vector index.
- Parameters:
indexArn- The Amazon Resource Name (ARN) that uniquely identifies the vector index.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-