Class: Aws::S3Vectors::Types::VectorData

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-s3vectors/lib/aws-sdk-s3vectors/types.rb

Overview

Note:

VectorData is a union - when making an API calls you must set exactly one of the members.

Note:

VectorData is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of VectorData corresponding to the set member.

Amazon S3 Vectors is in preview release for Amazon S3 and is subject to change.

The vector data in different formats.

Direct Known Subclasses

Float32, Unknown

Defined Under Namespace

Classes: Float32, Unknown

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#float32Array<Float>

The vector data as 32-bit floating point numbers. The number of elements in this array must exactly match the dimension of the vector index where the operation is being performed.

Returns:

  • (Array<Float>)


1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
# File 'gems/aws-sdk-s3vectors/lib/aws-sdk-s3vectors/types.rb', line 1261

class VectorData < Struct.new(
  :float32,
  :unknown)
  SENSITIVE = []
  include Aws::Structure
  include Aws::Structure::Union

  class Float32 < VectorData; end
  class Unknown < VectorData; end
end

#unknownObject

Returns the value of attribute unknown

Returns:

  • (Object)

    the current value of unknown



1261
1262
1263
# File 'gems/aws-sdk-s3vectors/lib/aws-sdk-s3vectors/types.rb', line 1261

def unknown
  @unknown
end