com.snowplowanalytics.iglu.schemaddl.redshift

Column

case class Column(columnName: String, dataType: DataType, columnAttributes: Set[ColumnAttribute] = ..., columnConstraints: Set[ColumnConstraint] = ...) extends Ddl with Product with Serializable

Class holding all information about Redshift's column

columnName

column_name

dataType

data_type such as INTEGER, VARCHAR, etc

columnAttributes

set of column_attributes such as ENCODE

columnConstraints

set of column_constraints such as NOT NULL

Linear Supertypes
Serializable, Serializable, Product, Equals, Ddl, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Column
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Ddl
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Column(columnName: String, dataType: DataType, columnAttributes: Set[ColumnAttribute] = ..., columnConstraints: Set[ColumnConstraint] = ...)

    columnName

    column_name

    dataType

    data_type such as INTEGER, VARCHAR, etc

    columnAttributes

    set of column_attributes such as ENCODE

    columnConstraints

    set of column_constraints such as NOT NULL

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. val attributesDdl: String

    column_attributes ready to output if exists

  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. val columnAttributes: Set[ColumnAttribute]

    set of column_attributes such as ENCODE

  10. val columnConstraints: Set[ColumnConstraint]

    set of column_constraints such as NOT NULL

  11. val columnName: String

    column_name

  12. val constraintsDdl: String

    column_constraints ready to output if exists

  13. val dataType: DataType

    data_type such as INTEGER, VARCHAR, etc

  14. val dataTypeDdl: String

    data_type ready to output

  15. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  16. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  18. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  19. val nameDdl: String

    column_name ready to output with surrounding quotes to prevent odd chars from breaking the table

  20. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  21. final def notify(): Unit

    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  24. def toDdl: String

    Compact way to output column

    Compact way to output column

    returns

    string representing column without formatting

    Definition Classes
    ColumnDdl
  25. def toFormattedDdl(tabs: (Int, Int, Int, Int, Int)): String

    Formatted column's DDL Calling method must provide length for each tab via Tuple5

    Formatted column's DDL Calling method must provide length for each tab via Tuple5

    tabs

    tuple of lengths (prepend, table_name, data_type, etc)

    returns

    formatted DDL

  26. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. val warnings: List[String]

    Aggregates all warnings from child elements

    Aggregates all warnings from child elements

    Definition Classes
    ColumnDdl
  30. def withTabs(spaces: Int, str: String): String

    Append specified amount of spaces to the string to produce formatted DDL

    Append specified amount of spaces to the string to produce formatted DDL

    spaces

    amount of spaces

    str

    string itself

    returns

    string with spaces

    Definition Classes
    Ddl

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Ddl

Inherited from AnyRef

Inherited from Any

Ungrouped