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

Public Member Functions

 JarowinklerSimilarity ()
 
RelDataType inferReturnType (SqlOperatorBinding opBinding)
 

Static Private Member Functions

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

Detailed Description

Definition at line 1600 of file HeavyDBSqlOperatorTable.java.

Constructor & Destructor Documentation

com.mapd.calcite.parser.HeavyDBSqlOperatorTable.JarowinklerSimilarity.JarowinklerSimilarity ( )
inline

Definition at line 1601 of file HeavyDBSqlOperatorTable.java.

References heavydb.dtypes.STRING.

1601  {
1602  super("JAROWINKLER_SIMILARITY",
1603  SqlKind.OTHER_FUNCTION,
1604  null,
1605  null,
1606  OperandTypes.family(getSignatureFamilies()),
1608  }
tuple STRING
Definition: dtypes.py:31

Member Function Documentation

static java.util.List<SqlTypeFamily> com.mapd.calcite.parser.HeavyDBSqlOperatorTable.JarowinklerSimilarity.getSignatureFamilies ( )
inlinestaticprivate

Definition at line 1610 of file HeavyDBSqlOperatorTable.java.

References heavydb.dtypes.STRING.

1610  {
1611  java.util.ArrayList<SqlTypeFamily> families =
1612  new java.util.ArrayList<SqlTypeFamily>();
1613  families.add(SqlTypeFamily.STRING);
1614  families.add(SqlTypeFamily.STRING);
1615  return families;
1616  }
tuple STRING
Definition: dtypes.py:31
RelDataType com.mapd.calcite.parser.HeavyDBSqlOperatorTable.JarowinklerSimilarity.inferReturnType ( SqlOperatorBinding  opBinding)
inline

Definition at line 1619 of file HeavyDBSqlOperatorTable.java.

1619  {
1620  assert opBinding.getOperandCount() == 2;
1621  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
1622  RelDataType dataType = typeFactory.createSqlType(SqlTypeName.BIGINT);
1623  return typeFactory.createTypeWithNullability(dataType, true);
1624  }

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