Class

com.snowplowanalytics.iglu.schemaddl.redshift

Column

Related Doc: package redshift

Permalink

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])

    Permalink

    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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. val attributesDdl: String

    Permalink

    column_attributes ready to output if exists

  6. def clone(): AnyRef

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

    Permalink

    set of column_attributes such as ENCODE

  8. val columnConstraints: Set[ColumnConstraint]

    Permalink

    set of column_constraints such as NOT NULL

  9. val columnName: String

    Permalink

    column_name

  10. val constraintsDdl: String

    Permalink

    column_constraints ready to output if exists

  11. val dataType: DataType

    Permalink

    data_type such as INTEGER, VARCHAR, etc

  12. val dataTypeDdl: String

    Permalink

    data_type ready to output

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

    Permalink
    Definition Classes
    AnyRef
  14. def finalize(): Unit

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

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

    Permalink
    Definition Classes
    Any
  17. val nameDdl: String

    Permalink

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

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

    Permalink
    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  22. def toDdl: String

    Permalink

    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

    Permalink

    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

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

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

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

    Permalink

    Aggregates all warnings from child elements

    Aggregates all warnings from child elements

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

    Permalink

    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