OmniSciDB  fe05a0c208
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
com.mapd.calcite.parser.MapDSqlOperatorTable.Truncate Class Reference
+ Inheritance diagram for com.mapd.calcite.parser.MapDSqlOperatorTable.Truncate:
+ Collaboration diagram for com.mapd.calcite.parser.MapDSqlOperatorTable.Truncate:

Public Member Functions

RelDataType inferReturnType (SqlOperatorBinding opBinding)
 

Package Functions

 Truncate ()
 

Static Private Member Functions

static java.util.List
< SqlTypeFamily > 
signature ()
 

Detailed Description

Definition at line 780 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

com.mapd.calcite.parser.MapDSqlOperatorTable.Truncate.Truncate ( )
inlinepackage

Definition at line 781 of file MapDSqlOperatorTable.java.

References NUMERIC, and com.mapd.calcite.parser.MapDSqlOperatorTable.Truncate.signature().

781  {
782  super("TRUNCATE",
783  SqlKind.OTHER_FUNCTION,
784  null,
785  null,
786  OperandTypes.family(signature()),
788  }
static java.util.List< SqlTypeFamily > signature()
#define NUMERIC

+ Here is the call graph for this function:

Member Function Documentation

RelDataType com.mapd.calcite.parser.MapDSqlOperatorTable.Truncate.inferReturnType ( SqlOperatorBinding  opBinding)
inline

Definition at line 791 of file MapDSqlOperatorTable.java.

791  {
792  assert opBinding.getOperandCount() == 2;
793  return opBinding.getOperandType(0);
794  }
static java.util.List<SqlTypeFamily> com.mapd.calcite.parser.MapDSqlOperatorTable.Truncate.signature ( )
inlinestaticprivate

Definition at line 796 of file MapDSqlOperatorTable.java.

References INTEGER, and NUMERIC.

Referenced by com.mapd.calcite.parser.MapDSqlOperatorTable.Truncate.Truncate().

796  {
797  java.util.List<SqlTypeFamily> truncate_sig =
798  new java.util.ArrayList<SqlTypeFamily>();
799  truncate_sig.add(SqlTypeFamily.NUMERIC);
800  truncate_sig.add(SqlTypeFamily.INTEGER);
801  return truncate_sig;
802  }
#define NUMERIC
#define INTEGER

+ Here is the caller graph for this function:


The documentation for this class was generated from the following file: