Package org.apache.flink.cdc.runtime.ai
Enum AiImageFunctionDef
- java.lang.Object
-
- java.lang.Enum<AiImageFunctionDef>
-
- org.apache.flink.cdc.runtime.ai.AiImageFunctionDef
-
- All Implemented Interfaces:
Serializable,Comparable<AiImageFunctionDef>
public enum AiImageFunctionDef extends Enum<AiImageFunctionDef>
Built-in AI image function definitions.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAiImageFunctionDef.CapabilityCapability required by an image AI function.
-
Enum Constant Summary
Enum Constants Enum Constant Description AI_IMAGE_COMPLETEAI_IMAGE_EMBED
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AiImageFunctionDef.CapabilitygetCapability()StringgetFunctionName()RowTypegetInputType()Returns the parameter types after the model argument.DataTypegetOutputType()static AiImageFunctionDefvalueOf(String name)Returns the enum constant of this type with the specified name.static AiImageFunctionDef[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AI_IMAGE_COMPLETE
public static final AiImageFunctionDef AI_IMAGE_COMPLETE
-
AI_IMAGE_EMBED
public static final AiImageFunctionDef AI_IMAGE_EMBED
-
-
Method Detail
-
values
public static AiImageFunctionDef[] 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 (AiImageFunctionDef c : AiImageFunctionDef.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AiImageFunctionDef 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 argument.
-
getOutputType
public DataType getOutputType()
-
getCapability
public AiImageFunctionDef.Capability getCapability()
-
-