title: Integertype() in schema StructType
body: <p>I am trying to define a schema to convert a blank list into dataframe as per syntax below:</p>
  
  <pre><code>data=[]
  
  schema = StructType([
  StructField("Table_Flag",StringType(),True),
  StructField("TableID",IntegerType(),False),
  StructField("Entry_No",StringType(),True),
  StructField("Dimension_Code",StringType(),True),
  StructField("Dimension_Value_Code",StringType(),True)
  ])
  
  data=spark.createDataFrame(data,schema)
  </code></pre>
  
  <p>but it is giving a error of name 'IntegerType' is not defined.
  I have tried with BooleanType, DecimalType, FloatType,IntegralType but none is working. Only StringType and DataType is available as datatypes.
  As per documentation types.py IntegerType is defined in examples.</p>
  
  <p>Please suggest. I am working on spark version 2.0.1</p>