Package org.apache.flink.cdc.runtime.ai
Enum AiTextFunctionDef
- java.lang.Object
-
- java.lang.Enum<AiTextFunctionDef>
-
- org.apache.flink.cdc.runtime.ai.AiTextFunctionDef
-
- All Implemented Interfaces:
Serializable,Comparable<AiTextFunctionDef>
public enum AiTextFunctionDef extends Enum<AiTextFunctionDef>
Built-in AI text generation function definitions.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AI_CLASSIFYAI_COMPLETEAI_EXTRACTAI_MASKAI_SENTIMENTAI_SUMMARIZEAI_TRANSLATE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringbuildPrompt(Object... args)StringgetFunctionName()RowTypegetInputType()Returns the parameter types after the model and input arguments.RowTypegetOutputType()static AiTextFunctionDefvalueOf(String name)Returns the enum constant of this type with the specified name.static AiTextFunctionDef[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AI_COMPLETE
public static final AiTextFunctionDef AI_COMPLETE
-
AI_CLASSIFY
public static final AiTextFunctionDef AI_CLASSIFY
-
AI_TRANSLATE
public static final AiTextFunctionDef AI_TRANSLATE
-
AI_SUMMARIZE
public static final AiTextFunctionDef AI_SUMMARIZE
-
AI_SENTIMENT
public static final AiTextFunctionDef AI_SENTIMENT
-
AI_EXTRACT
public static final AiTextFunctionDef AI_EXTRACT
-
AI_MASK
public static final AiTextFunctionDef AI_MASK
-
-
Method Detail
-
values
public static AiTextFunctionDef[] 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 (AiTextFunctionDef c : AiTextFunctionDef.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AiTextFunctionDef 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 RowType getInputType()
Returns the parameter types after the model and input arguments.
-
getOutputType
public RowType getOutputType()
-
-