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
- Alphabetic
- By Inheritance
- Column
- Serializable
- Serializable
- Product
- Equals
- Ddl
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
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
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
val
attributesDdl: String
column_attributes ready to output if exists
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- val columnAttributes: Set[ColumnAttribute]
- val columnConstraints: Set[ColumnConstraint]
- val columnName: String
-
val
constraintsDdl: String
column_constraints ready to output if exists
- val dataType: DataType
-
val
dataTypeDdl: String
data_type ready to output
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
val
nameDdl: String
column_name ready to output with surrounding quotes to prevent odd chars from breaking the table
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toDdl: String
Compact way to output column
-
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
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
val
warnings: List[String]
Aggregates all warnings from child elements
-
def
withTabs(spaces: Int, str: String): String
Append specified amount of
to the string to produce formatted DDLspaces
Append specified amount of
to the string to produce formatted DDLspaces
- spaces
amount of spaces
- str
string itself
- returns
string with spaces
- Definition Classes
- Ddl