class CSVInferSchema extends Serializable
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- CSVInferSchema
- Serializable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new CSVInferSchema(options: CSVOptions)
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
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def infer(tokenRDD: RDD[Array[String]], header: Array[String]): StructType
Similar to the JSON schema inference
Similar to the JSON schema inference
- Infer type of each row 2. Merge row types to find common type 3. Replace any null types with string type
- def inferField(typeSoFar: DataType, field: String): DataType
Infer type of string field.
Infer type of string field. Given known type Double, and a string "1", there is no point checking if it is an Int, as the final type must be Double or higher.
- def inferRowType(rowSoFar: Array[DataType], next: Array[String]): Array[DataType]
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def mergeRowTypes(first: Array[DataType], second: Array[DataType]): Array[DataType]
- 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()
- val options: CSVOptions
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def toStructFields(fieldTypes: Array[DataType], header: Array[String]): Array[StructField]
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()