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

Constructor & Destructor Documentation

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

Definition at line 615 of file MapDSqlOperatorTable.java.

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

615  {
616  super("SAMPLE_RATIO",
617  SqlKind.OTHER_FUNCTION,
618  null,
619  null,
620  OperandTypes.family(signature()),
621  SqlFunctionCategory.SYSTEM);
622  }

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

References BOOLEAN.

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

Definition at line 630 of file MapDSqlOperatorTable.java.

References NUMERIC.

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

630  {
631  java.util.ArrayList<SqlTypeFamily> families =
632  new java.util.ArrayList<SqlTypeFamily>();
633  families.add(SqlTypeFamily.NUMERIC);
634  return families;
635  }
#define NUMERIC

+ Here is the caller graph for this function:


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