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

Public Member Functions

 SampleRatio ()
 
RelDataType inferReturnType (SqlOperatorBinding opBinding)
 

Static Private Member Functions

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

Detailed Description

Definition at line 620 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 621 of file MapDSqlOperatorTable.java.

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

621  {
622  super("SAMPLE_RATIO",
623  SqlKind.OTHER_FUNCTION,
624  null,
625  null,
626  OperandTypes.family(signature()),
627  SqlFunctionCategory.SYSTEM);
628  }

+ Here is the call graph for this function:

Member Function Documentation

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

Definition at line 631 of file MapDSqlOperatorTable.java.

References BOOLEAN.

631  {
632  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
633  return typeFactory.createSqlType(SqlTypeName.BOOLEAN);
634  }
#define BOOLEAN
static java.util.List<SqlTypeFamily> com.mapd.calcite.parser.MapDSqlOperatorTable.SampleRatio.signature ( )
inlinestaticprivate

Definition at line 636 of file MapDSqlOperatorTable.java.

References NUMERIC.

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

636  {
637  java.util.ArrayList<SqlTypeFamily> families =
638  new java.util.ArrayList<SqlTypeFamily>();
639  families.add(SqlTypeFamily.NUMERIC);
640  return families;
641  }
#define NUMERIC

+ Here is the caller graph for this function:


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