Class EnhancedVectorIndex

java.lang.Object
software.amazon.awssdk.enhanced.dynamodb.model.EnhancedVectorIndex

@SdkPublicApi @ThreadSafe public final class EnhancedVectorIndex extends Object
Enhanced model representation of a vector index on a DynamoDb table. This is optionally used with the createTable operation in the enhanced client.

Vector indexes are distinct from global and local secondary indexes; they define vector search configuration including embedding dimensions, distance function, and search schema elements.

  • Method Details

    • builder

      public static EnhancedVectorIndex.Builder builder()
    • toBuilder

      public EnhancedVectorIndex.Builder toBuilder()
    • indexName

      public String indexName()
      The name of the vector index.
    • vectorAttributeName

      public String vectorAttributeName()
      The name of the table attribute that stores the vector embedding for this index.
    • dimensions

      public int dimensions()
      The number of dimensions in the vector embedding.
    • distanceFunction

      public DistanceFunction distanceFunction()
      The distance function used for similarity search on this index.
    • projection

      public Projection projection()
      The attribute projection setting for this vector index.
    • searchSchemaElements

      public List<SearchSchemaElement> searchSchemaElements()
      The search schema elements for this vector index, including the hash attribute and optional inline filters.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object