OmniSciDB  b24e664e58
 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 732 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 733 of file MapDSqlOperatorTable.java.

References com.mapd.calcite.parser.MapDSqlOperatorTable.Truncate.signature().

733  {
734  super("TRUNCATE",
735  SqlKind.OTHER_FUNCTION,
736  null,
737  null,
738  OperandTypes.family(signature()),
739  SqlFunctionCategory.NUMERIC);
740  }
static java.util.List< SqlTypeFamily > signature()

+ 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 743 of file MapDSqlOperatorTable.java.

References assert().

743  {
744  assert opBinding.getOperandCount() == 2;
745  return opBinding.getOperandType(0);
746  }
int64_t const int32_t sz assert(dest)

+ Here is the call graph for this function:

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

Definition at line 748 of file MapDSqlOperatorTable.java.

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

748  {
749  java.util.List<SqlTypeFamily> truncate_sig =
750  new java.util.ArrayList<SqlTypeFamily>();
751  truncate_sig.add(SqlTypeFamily.NUMERIC);
752  truncate_sig.add(SqlTypeFamily.INTEGER);
753  return truncate_sig;
754  }

+ Here is the caller graph for this function:


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