OmniSciDB  95562058bd
 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 628 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 629 of file MapDSqlOperatorTable.java.

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

629  {
630  super("SAMPLE_RATIO",
631  SqlKind.OTHER_FUNCTION,
632  null,
633  null,
634  OperandTypes.family(signature()),
635  SqlFunctionCategory.SYSTEM);
636  }

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

639  {
640  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
641  return typeFactory.createSqlType(SqlTypeName.BOOLEAN);
642  }
static java.util.List<SqlTypeFamily> com.mapd.calcite.parser.MapDSqlOperatorTable.SampleRatio.signature ( )
inlinestaticprivate

Definition at line 644 of file MapDSqlOperatorTable.java.

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

644  {
645  java.util.ArrayList<SqlTypeFamily> families =
646  new java.util.ArrayList<SqlTypeFamily>();
647  families.add(SqlTypeFamily.NUMERIC);
648  return families;
649  }

+ Here is the caller graph for this function:


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