public abstract class DataType
extends Object
Constructor and Description |
---|
DataType() |
Modifier and Type | Method and Description |
---|---|
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.
|
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()