OmniSciDB  4201147b46
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
com.mapd.calcite.parser.HeavyDBSqlOperatorTable.SampleRatio Class Reference
+ Inheritance diagram for com.mapd.calcite.parser.HeavyDBSqlOperatorTable.SampleRatio:
+ Collaboration diagram for com.mapd.calcite.parser.HeavyDBSqlOperatorTable.SampleRatio:

Public Member Functions

 SampleRatio ()
 
RelDataType inferReturnType (SqlOperatorBinding opBinding)
 

Static Private Member Functions

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

Detailed Description

Definition at line 642 of file HeavyDBSqlOperatorTable.java.

Constructor & Destructor Documentation

com.mapd.calcite.parser.HeavyDBSqlOperatorTable.SampleRatio.SampleRatio ( )
inline

Definition at line 643 of file HeavyDBSqlOperatorTable.java.

References com.mapd.calcite.parser.HeavyDBSqlOperatorTable.SampleRatio.signature().

643  {
644  super("SAMPLE_RATIO",
645  SqlKind.OTHER_FUNCTION,
646  null,
647  null,
648  OperandTypes.family(signature()),
649  SqlFunctionCategory.SYSTEM);
650  }

+ Here is the call graph for this function:

Member Function Documentation

RelDataType com.mapd.calcite.parser.HeavyDBSqlOperatorTable.SampleRatio.inferReturnType ( SqlOperatorBinding  opBinding)
inline

Definition at line 653 of file HeavyDBSqlOperatorTable.java.

653  {
654  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
655  return typeFactory.createSqlType(SqlTypeName.BOOLEAN);
656  }
static java.util.List<SqlTypeFamily> com.mapd.calcite.parser.HeavyDBSqlOperatorTable.SampleRatio.signature ( )
inlinestaticprivate

Definition at line 658 of file HeavyDBSqlOperatorTable.java.

Referenced by com.mapd.calcite.parser.HeavyDBSqlOperatorTable.SampleRatio.SampleRatio().

658  {
659  java.util.ArrayList<SqlTypeFamily> families =
660  new java.util.ArrayList<SqlTypeFamily>();
661  families.add(SqlTypeFamily.NUMERIC);
662  return families;
663  }

+ Here is the caller graph for this function:


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