Interface PutInputVector.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<PutInputVector.Builder,
,PutInputVector> SdkBuilder<PutInputVector.Builder,
,PutInputVector> SdkPojo
- Enclosing class:
PutInputVector
-
Method Summary
Modifier and TypeMethodDescriptiondefault PutInputVector.Builder
data
(Consumer<VectorData.Builder> data) The vector data of the vector.data
(VectorData data) The vector data of the vector.The name of the vector.Metadata about the vector.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
key
The name of the vector. The key uniquely identifies the vector in a vector index.
- Parameters:
key
- The name of the vector. The key uniquely identifies the vector in a vector index.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
data
The vector data of the vector.
Vector dimensions must match the dimension count that's configured for the vector index.
-
For the
cosine
distance metric, zero vectors (vectors containing all zeros) aren't allowed. -
For both
cosine
andeuclidean
distance metrics, vector data must contain only valid floating-point values. Invalid values such as NaN (Not a Number) or Infinity aren't allowed.
- Parameters:
data
- The vector data of the vector.Vector dimensions must match the dimension count that's configured for the vector index.
-
For the
cosine
distance metric, zero vectors (vectors containing all zeros) aren't allowed. -
For both
cosine
andeuclidean
distance metrics, vector data must contain only valid floating-point values. Invalid values such as NaN (Not a Number) or Infinity aren't allowed.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
data
The vector data of the vector.
Vector dimensions must match the dimension count that's configured for the vector index.
-
For the
cosine
distance metric, zero vectors (vectors containing all zeros) aren't allowed. -
For both
cosine
andeuclidean
distance metrics, vector data must contain only valid floating-point values. Invalid values such as NaN (Not a Number) or Infinity aren't allowed.
VectorData.Builder
avoiding the need to create one manually viaVectorData.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todata(VectorData)
.- Parameters:
data
- a consumer that will call methods onVectorData.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
metadata
Metadata about the vector. All metadata entries undergo validation to ensure they meet the format requirements for size and data types.
- Parameters:
metadata
- Metadata about the vector. All metadata entries undergo validation to ensure they meet the format requirements for size and data types.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-