case class Column(columnName: String, dataType: DataType, columnAttributes: Set[ColumnAttribute] = Set.empty[ColumnAttribute], columnConstraints: Set[ColumnConstraint] = Set.empty[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
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Column(columnName: String, dataType: DataType, columnAttributes: Set[ColumnAttribute] = Set.empty[ColumnAttribute], columnConstraints: Set[ColumnConstraint] = Set.empty[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: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. val attributesDdl: String

    column_attributes ready to output if exists

  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  7. val columnAttributes: Set[ColumnAttribute]
  8. val columnConstraints: Set[ColumnConstraint]
  9. val columnName: String
  10. val constraintsDdl: String

    column_constraints ready to output if exists

  11. val dataType: DataType
  12. val dataTypeDdl: String

    data_type ready to output

  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. val nameDdl: String

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

  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  22. def toDdl: String

    Compact way to output column

    Compact way to output column

    returns

    string representing column without formatting

    Definition Classes
    ColumnDdl
  23. 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

  24. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  27. val warnings: List[String]

    Aggregates all warnings from child elements

    Aggregates all warnings from child elements

    Definition Classes
    ColumnDdl
  28. 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