Package org.apache.flink.cdc.runtime.ai
Enum AiEmbeddingFunctionDef
- java.lang.Object
-
- java.lang.Enum<AiEmbeddingFunctionDef>
-
- org.apache.flink.cdc.runtime.ai.AiEmbeddingFunctionDef
-
- All Implemented Interfaces:
Serializable,Comparable<AiEmbeddingFunctionDef>
public enum AiEmbeddingFunctionDef extends Enum<AiEmbeddingFunctionDef>
Built-in AI embedding function definitions with configurable input and output types.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AI_EMBED
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetFunctionName()DataTypegetInputType()The type of the input value (e.g.DataTypegetOutputType()The type of the output value (e.g.static AiEmbeddingFunctionDefvalueOf(String name)Returns the enum constant of this type with the specified name.static AiEmbeddingFunctionDef[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AI_EMBED
public static final AiEmbeddingFunctionDef AI_EMBED
-
-
Method Detail
-
values
public static AiEmbeddingFunctionDef[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AiEmbeddingFunctionDef c : AiEmbeddingFunctionDef.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AiEmbeddingFunctionDef valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getFunctionName
public String getFunctionName()
-
getInputType
public DataType getInputType()
The type of the input value (e.g. STRING for text embedding).
-
getOutputType
public DataType getOutputType()
The type of the output value (e.g. ARRAY<FLOAT> for vector embedding).
-
-