@InterfaceStability.Stable
public abstract class DataType
extends Object
Constructor and Description |
---|
DataType() |
Modifier and Type | Method and Description |
---|---|
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 boolean |
equalsStructurally(DataType from,
DataType to)
Returns true if the two data types share the same "shape", i.e.
|
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 |
sql() |
String |
typeName()
Name of the type used in JSON serialization.
|
public static DataType fromJson(String json)
public static boolean equalsStructurally(DataType from, DataType to)
from
- (undocumented)to
- (undocumented)public abstract int defaultSize()
public String typeName()
public String json()
public String prettyJson()
public String simpleString()
public String catalogString()
public String sql()