Table of Contents

Class AlterTableAddVectorize

Namespace
DataStax.AstraDB.DataApi.Tables
Assembly
DataStax.AstraDB.DataApi.dll

Represents an operation to add vectorization services to specific columns.

public class AlterTableAddVectorize : IAlterTableOperation
Inheritance
AlterTableAddVectorize
Implements
Inherited Members

Constructors

AlterTableAddVectorize(Dictionary<string, VectorServiceOptions>)

Initializes a new instance with the specified vectorization settings.

public AlterTableAddVectorize(Dictionary<string, VectorServiceOptions> columns)

Parameters

columns Dictionary<string, VectorServiceOptions>

The columns and their vector services.

Properties

Columns

Gets the columns and associated vector service options.

public Dictionary<string, VectorServiceOptions> Columns { get; }

Property Value

Dictionary<string, VectorServiceOptions>

Methods

ToJsonFragment()

Converts the operation to its JSON representation.

public object ToJsonFragment()

Returns

object

A serializable object representing the operation.