|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object org.apache.spark.sql.types.DataType
public abstract class DataType
:: DeveloperApi :: The base type of all Spark SQL data types.
Constructor Summary | |
---|---|
DataType()
|
Method Summary | |
---|---|
abstract int |
defaultSize()
The default size of a value of this data type, used internally for size estimation. |
static DataType |
fromCaseClassString(String string)
Deprecated. As of 1.2.0, replaced by DataType.fromJson() |
static DataType |
fromJson(String json)
|
String |
json()
The compact JSON representation of this data type. |
String |
prettyJson()
The pretty (i.e. |
String |
simpleString()
Readable string representation for the type. |
String |
typeName()
Name of the type used in JSON serialization. |
Methods inherited from class Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DataType()
Method Detail |
---|
public static DataType fromJson(String json)
public static DataType fromCaseClassString(String string)
DataType.fromJson()
string
- (undocumented)
public abstract int defaultSize()
public String typeName()
public String json()
public String prettyJson()
public String simpleString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |