public abstract class DataType
extends java.lang.Object
Constructor and Description |
---|
DataType() |
Modifier and Type | Method and Description |
---|---|
protected static void |
buildFormattedString(DataType dataType,
java.lang.String prefix,
scala.collection.mutable.StringBuilder builder) |
java.lang.String |
catalogString()
String representation for the type saved in external catalogs.
|
abstract int |
defaultSize()
The default size of a value of this data type, used internally for size estimation.
|
static DataType |
fromJson(java.lang.String json) |
java.lang.String |
json()
The compact JSON representation of this data type.
|
java.lang.String |
prettyJson()
The pretty (i.e.
|
java.lang.String |
simpleString()
Readable string representation for the type.
|
java.lang.String |
sql() |
java.lang.String |
typeName()
Name of the type used in JSON serialization.
|
public static DataType fromJson(java.lang.String json)
protected static void buildFormattedString(DataType dataType, java.lang.String prefix, scala.collection.mutable.StringBuilder builder)
public abstract int defaultSize()
public java.lang.String typeName()
public java.lang.String json()
public java.lang.String prettyJson()
public java.lang.String simpleString()
public java.lang.String catalogString()
public java.lang.String sql()