Package com.illumon.iris.utils
Class ImportSchemaDescriptor.ImportColumnDescriptor
java.lang.Object
com.illumon.iris.utils.ImportSchemaDescriptor.ImportColumnDescriptor
- All Implemented Interfaces:
Serializable
- Enclosing class:
- ImportSchemaDescriptor
public static class ImportSchemaDescriptor.ImportColumnDescriptor
extends Object
implements Serializable
A class to wrap up details of an ImportColumn.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionImportColumnDescriptor
(String columnName, String sourceName) ImportColumnDescriptor
(String columnName, String sourceName, Class<?> sourceType, String formula) ImportColumnDescriptor
(String columnName, String sourceName, Class<?> sourceType, String formula, String default_value) ImportColumnDescriptor
(String columnName, String sourceName, Class<?> sourceType, String formula, String default_value, String transform, String propertyName, Map<String, String> additionalAttributes, boolean nullable) Main constructor, that takes all properties.ImportColumnDescriptor
(String columnName, String sourceName, String sourceType, String formula) -
Method Summary
-
Constructor Details
-
ImportColumnDescriptor
-
ImportColumnDescriptor
-
ImportColumnDescriptor
-
ImportColumnDescriptor
public ImportColumnDescriptor(String columnName, String sourceName, Class<?> sourceType, String formula, String default_value, String transform, String propertyName, @NotNull Map<String, String> additionalAttributes, boolean nullable) Main constructor, that takes all properties.- Parameters:
columnName
- The Iris table name of the columnsourceName
- The name of the column in the source (query, CSV, etc)sourceType
- The data type that should be used to interpret the source valueformula
- A formula through which the source value will be processed before being set into the target columndefault_value
- A value to use if the source value is empty or cannot be readtransform
- A transform function to call that will provide a lambda function to process source data into the target columnpropertyName
- if sourceType is constant, the property name to use for this columnadditionalAttributes
- A Map of attribute name and attribute value details to be added to the ImportColumn entry. These are normally needed to provide additional direction to a transform
-
ImportColumnDescriptor
-
-
Method Details
-
getColumnName
-
getSourceName
-
getFormula
-
getArgName
-
getSourceType
-
getTransform
-
getNullable
public boolean getNullable() -
getDefault
-
getPropertyName
-
getSourceTypeName
-
getAdditionalAttributes
-
withColumnName
-