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.

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>)


1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
# File 'gems/aws-sdk-s3vectors/lib/aws-sdk-s3vectors/types.rb', line 1370

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



1370
1371
1372
# File 'gems/aws-sdk-s3vectors/lib/aws-sdk-s3vectors/types.rb', line 1370

def unknown
  @unknown
end