OmniSciDB  bf83d84833
 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 849 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 850 of file MapDSqlOperatorTable.java.

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

850  {
851  super("SAMPLE_RATIO",
852  SqlKind.OTHER_FUNCTION,
853  null,
854  null,
855  OperandTypes.family(signature()),
856  SqlFunctionCategory.SYSTEM);
857  }

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

860  {
861  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
862  return typeFactory.createSqlType(SqlTypeName.BOOLEAN);
863  }
static java.util.List<SqlTypeFamily> com.mapd.calcite.parser.MapDSqlOperatorTable.SampleRatio.signature ( )
inlinestaticprivate

Definition at line 865 of file MapDSqlOperatorTable.java.

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

865  {
866  java.util.ArrayList<SqlTypeFamily> families =
867  new java.util.ArrayList<SqlTypeFamily>();
868  families.add(SqlTypeFamily.NUMERIC);
869  return families;
870  }

+ Here is the caller graph for this function:


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