Class SchemaFieldConfig
java.lang.Object
com.sap.ai.sdk.foundationmodels.rpt.generated.model.SchemaFieldConfig
Configuration for a single field in the input data schema.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for SchemaFieldConfig. -
Method Summary
Modifier and TypeMethodDescriptionstatic SchemaFieldConfig.Buildercreate()Create a type-safe, fluent-api builder object to construct a newSchemaFieldConfiginstance with all required arguments.dtype(ColumnType dtype) Set the dtype of thisSchemaFieldConfiginstance and return the same instance.booleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theSchemaFieldConfig.getDtype()The data type of the target column.inthashCode()voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisSchemaFieldConfiginstance.voidsetDtype(ColumnType dtype) Set the dtype of thisSchemaFieldConfiginstance.toMap()Get the value of all properties of thisSchemaFieldConfiginstance including unrecognized properties.toString()
-
Constructor Details
-
SchemaFieldConfig
protected SchemaFieldConfig()Default constructor for SchemaFieldConfig.
-
-
Method Details
-
dtype
Set the dtype of thisSchemaFieldConfiginstance and return the same instance.- Parameters:
dtype- The data type of the target column. Supported types are ['string', 'numeric', 'date'].- Returns:
- The same instance of this
SchemaFieldConfigclass
-
getDtype
The data type of the target column. Supported types are ['string', 'numeric', 'date'].- Returns:
- dtype The dtype of this
SchemaFieldConfiginstance.
-
setDtype
Set the dtype of thisSchemaFieldConfiginstance.- Parameters:
dtype- The data type of the target column. Supported types are ['string', 'numeric', 'date'].
-
getCustomFieldNames
Get the names of the unrecognizable properties of theSchemaFieldConfig.- Returns:
- The set of properties names
-
getCustomField
@Nullable @Deprecated public Object getCustomField(@Nonnull String name) throws NoSuchElementException Deprecated.UsetoMap()instead.Get the value of an unrecognizable property of thisSchemaFieldConfiginstance.- Parameters:
name- The name of the property- Returns:
- The value of the property
- Throws:
NoSuchElementException- If no property with the given name could be found.
-
toMap
Get the value of all properties of thisSchemaFieldConfiginstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisSchemaFieldConfiginstance. If the map previously contained a mapping for the key, the old value is replaced by the specified value.- Parameters:
customFieldName- The name of the propertycustomFieldValue- The value of the property
-
equals
-
hashCode
public int hashCode() -
toString
-
create
Create a type-safe, fluent-api builder object to construct a newSchemaFieldConfiginstance with all required arguments.
-
toMap()instead.