OmniSciDB  c07336695a
com.mapd.calcite.parser.MapDSqlOperatorTable.ST_Distance Class Reference
+ Inheritance diagram for com.mapd.calcite.parser.MapDSqlOperatorTable.ST_Distance:
+ Collaboration diagram for com.mapd.calcite.parser.MapDSqlOperatorTable.ST_Distance:

Public Member Functions

RelDataType inferReturnType (SqlOperatorBinding opBinding)
 

Package Functions

 ST_Distance ()
 

Static Private Member Functions

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

Detailed Description

Definition at line 883 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

◆ ST_Distance()

com.mapd.calcite.parser.MapDSqlOperatorTable.ST_Distance.ST_Distance ( )
inlinepackage

Definition at line 884 of file MapDSqlOperatorTable.java.

884  {
885  super("ST_Distance",
886  SqlKind.OTHER_FUNCTION,
887  null,
888  null,
889  OperandTypes.family(signature()),
890  SqlFunctionCategory.SYSTEM);
891  }

Member Function Documentation

◆ inferReturnType()

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

Definition at line 894 of file MapDSqlOperatorTable.java.

894  {
895  assert opBinding.getOperandCount() == 2;
896  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
897  return typeFactory.createSqlType(SqlTypeName.DOUBLE);
898  }

◆ signature()

static java.util.List<SqlTypeFamily> com.mapd.calcite.parser.MapDSqlOperatorTable.ST_Distance.signature ( )
inlinestaticprivate

Definition at line 900 of file MapDSqlOperatorTable.java.

900  {
901  java.util.List<SqlTypeFamily> st_distance_sig =
902  new java.util.ArrayList<SqlTypeFamily>();
903  st_distance_sig.add(SqlTypeFamily.ANY);
904  st_distance_sig.add(SqlTypeFamily.ANY);
905  return st_distance_sig;
906  }

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