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) |
abstract int |
defaultSize()
The default size of a value of this data type, used internally for size estimation.
|
static DataType |
fromCaseClassString(java.lang.String string)
Deprecated.
As of 1.2.0, replaced by
DataType.fromJson() |
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 |
typeName()
Name of the type used in JSON serialization.
|
public static DataType fromJson(java.lang.String json)
public static DataType fromCaseClassString(java.lang.String string)
DataType.fromJson()
string
- (undocumented)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()