Class GridSqlType
- java.lang.Object
-
- org.apache.ignite.internal.processors.query.h2.sql.GridSqlType
-
public final class GridSqlType extends Object
SQL Data type based on H2.
-
-
Field Summary
Fields Modifier and Type Field Description static GridSqlTypeBIGINTstatic GridSqlTypeBOOLEANstatic GridSqlTypeDOUBLEstatic GridSqlTypeRESULT_SETstatic GridSqlTypeSTRINGstatic GridSqlTypeUNKNOWNstatic GridSqlTypeUUID
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intdisplaySize()Get the display size of this expression.static GridSqlTypefromColumn(org.h2.table.Column c)static GridSqlTypefromExpression(org.h2.expression.Expression e)longprecision()Get the precision of this expression.intscale()Get the scale of this expression.Stringsql()StringtoString()inttype()
-
-
-
Field Detail
-
UNKNOWN
public static final GridSqlType UNKNOWN
-
BIGINT
public static final GridSqlType BIGINT
-
DOUBLE
public static final GridSqlType DOUBLE
-
UUID
public static final GridSqlType UUID
-
BOOLEAN
public static final GridSqlType BOOLEAN
-
STRING
public static final GridSqlType STRING
-
RESULT_SET
public static final GridSqlType RESULT_SET
-
-
Method Detail
-
fromColumn
public static GridSqlType fromColumn(org.h2.table.Column c)
- Parameters:
c- Column to take type definition from.- Returns:
- Type.
-
fromExpression
public static GridSqlType fromExpression(org.h2.expression.Expression e)
- Parameters:
e- Expression to take type from.- Returns:
- Type.
-
type
public int type()
- Returns:
- Get H2 type.
-
scale
public int scale()
Get the scale of this expression.- Returns:
- Scale.
-
precision
public long precision()
Get the precision of this expression.- Returns:
- Precision.
-
displaySize
public int displaySize()
Get the display size of this expression.- Returns:
- the display size
-
sql
public String sql()
- Returns:
- SQL definition of the type.
-
-