OmniSciDB  04ee39c94c
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 700 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

◆ Truncate()

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

Definition at line 701 of file MapDSqlOperatorTable.java.

701  {
702  super("TRUNCATE",
703  SqlKind.OTHER_FUNCTION,
704  null,
705  null,
706  OperandTypes.family(signature()),
707  SqlFunctionCategory.NUMERIC);
708  }
static java.util.List< SqlTypeFamily > signature()

Member Function Documentation

◆ inferReturnType()

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

Definition at line 711 of file MapDSqlOperatorTable.java.

711  {
712  assert opBinding.getOperandCount() == 2;
713  return opBinding.getOperandType(0);
714  }

◆ signature()

static java.util.List<SqlTypeFamily> com.mapd.calcite.parser.MapDSqlOperatorTable.Truncate.signature ( )
inlinestaticprivate

Definition at line 716 of file MapDSqlOperatorTable.java.

716  {
717  java.util.List<SqlTypeFamily> truncate_sig =
718  new java.util.ArrayList<SqlTypeFamily>();
719  truncate_sig.add(SqlTypeFamily.NUMERIC);
720  truncate_sig.add(SqlTypeFamily.INTEGER);
721  return truncate_sig;
722  }

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