Class TableTextIndexDefinition
java.lang.Object
com.datastax.astra.client.tables.definition.indexes.TableIndexDefinition<TableTextIndexDefinitionOptions>
com.datastax.astra.client.tables.definition.indexes.TableTextIndexDefinition
Represents a definition for table vector indices, allowing configuration of
vector-specific options such as similarity metrics and source models.
This class provides a fluent interface for building vector index definitions.
Example usage:
TableTextIndexDefinition vectorIndexDefinition = new TableTextIndexDefinition()
.column("feature_vector")
.options(new TableTextIndexDefinitionOptions());
-
Field Summary
Fields inherited from class com.datastax.astra.client.tables.definition.indexes.TableIndexDefinition
apiSupport, column, constructor, options -
Constructor Summary
ConstructorsModifierConstructorDescriptionConstructs a newTableVectorIndexDefinitioninstance.protectedConstructs a newTableVectorIndexDefinitioninstance with the specified options. -
Method Summary
Modifier and TypeMethodDescriptionSetter for the analyzeranalyzer(AnalyzerTypes analyzerTypes) Setter for the analyzer with a typeSetter for the column namecolumn(String column, TableIndexMapTypes type) Setter for the column nameoptions(TableTextIndexDefinitionOptions options) Setter for the optionsMethods inherited from class com.datastax.astra.client.tables.definition.indexes.TableIndexDefinition
mapImpl
-
Constructor Details
-
TableTextIndexDefinition
public TableTextIndexDefinition()Constructs a newTableVectorIndexDefinitioninstance. -
TableTextIndexDefinition
Constructs a newTableVectorIndexDefinitioninstance with the specified options.- Parameters:
options- the options to use for the vector index.
-
-
Method Details
-
column
Setter for the column name- Overrides:
columnin classTableIndexDefinition<TableTextIndexDefinitionOptions>- Parameters:
column- the name of the column to index.- Returns:
- self reference
-
column
Setter for the column name- Overrides:
columnin classTableIndexDefinition<TableTextIndexDefinitionOptions>- Parameters:
column- the name of the column to index.type- the type of the index.- Returns:
- self reference
-
options
Setter for the options- Overrides:
optionsin classTableIndexDefinition<TableTextIndexDefinitionOptions>- Parameters:
options- the options of the index.- Returns:
- self reference
-
analyzer
Setter for the analyzer- Parameters:
analyzer- Value for analyzer- Returns:
- Self reference
-
analyzer
Setter for the analyzer with a type- Parameters:
analyzerTypes- Type of the analyzer- Returns:
- Self reference
-