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 Details

    • ImportColumnDescriptor

      public ImportColumnDescriptor(String columnName, String sourceName)
    • ImportColumnDescriptor

      public ImportColumnDescriptor(String columnName, String sourceName, Class<?> sourceType, String formula)
    • ImportColumnDescriptor

      public ImportColumnDescriptor(String columnName, String sourceName, Class<?> sourceType, String formula, String default_value)
    • 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 column
      sourceName - The name of the column in the source (query, CSV, etc)
      sourceType - The data type that should be used to interpret the source value
      formula - A formula through which the source value will be processed before being set into the target column
      default_value - A value to use if the source value is empty or cannot be read
      transform - A transform function to call that will provide a lambda function to process source data into the target column
      propertyName - if sourceType is constant, the property name to use for this column
      additionalAttributes - 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

      public ImportColumnDescriptor(String columnName, String sourceName, String sourceType, String formula)
  • Method Details

    • getColumnName

      public String getColumnName()
    • getSourceName

      public String getSourceName()
    • getFormula

      public String getFormula()
    • getArgName

      public String getArgName()
    • getSourceType

      public Class<?> getSourceType()
    • getTransform

      public String getTransform()
    • getNullable

      public boolean getNullable()
    • getDefault

      public String getDefault()
    • getPropertyName

      public String getPropertyName()
    • getSourceTypeName

      public String getSourceTypeName()
    • getAdditionalAttributes

      public Map<String,String> getAdditionalAttributes()
    • withColumnName

      public ImportSchemaDescriptor.ImportColumnDescriptor withColumnName(String columnName)