Class SearchResultItem<T>

java.lang.Object
software.amazon.awssdk.enhanced.dynamodb.model.SearchResultItem<T>
Type Parameters:
T - The type of the mapped item.

@SdkPublicApi @ThreadSafe public final class SearchResultItem<T> extends Object
A single vector search hit containing a mapped item and its similarity score.
  • Method Details

    • builder

      public static <T> SearchResultItem.Builder<T> builder()
    • item

      public T item()
      The mapped item returned by the search operation.
    • score

      public Double score()
      The similarity score for this item, as returned by the service.
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object