OmniSciDB  471d68cefb
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups 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 814 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 815 of file MapDSqlOperatorTable.java.

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

815  {
816  super("TRUNCATE",
817  SqlKind.OTHER_FUNCTION,
818  null,
819  null,
820  OperandTypes.family(signature()),
822  }
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 825 of file MapDSqlOperatorTable.java.

825  {
826  assert opBinding.getOperandCount() == 2;
827  return opBinding.getOperandType(0);
828  }
static java.util.List<SqlTypeFamily> com.mapd.calcite.parser.MapDSqlOperatorTable.Truncate.signature ( )
inlinestaticprivate

Definition at line 830 of file MapDSqlOperatorTable.java.

References INTEGER, and NUMERIC.

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

830  {
831  java.util.List<SqlTypeFamily> truncate_sig =
832  new java.util.ArrayList<SqlTypeFamily>();
833  truncate_sig.add(SqlTypeFamily.NUMERIC);
834  truncate_sig.add(SqlTypeFamily.INTEGER);
835  return truncate_sig;
836  }
#define NUMERIC
#define INTEGER

+ Here is the caller graph for this function:


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