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

Public Member Functions

 LevenshteinDistance ()
 
RelDataType inferReturnType (SqlOperatorBinding opBinding)
 

Static Private Member Functions

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

Detailed Description

Definition at line 1627 of file HeavyDBSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 1628 of file HeavyDBSqlOperatorTable.java.

References heavydb.dtypes.STRING.

1628  {
1629  super("LEVENSHTEIN_DISTANCE",
1630  SqlKind.OTHER_FUNCTION,
1631  null,
1632  null,
1633  OperandTypes.family(getSignatureFamilies()),
1635  }
tuple STRING
Definition: dtypes.py:31

Member Function Documentation

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

Definition at line 1637 of file HeavyDBSqlOperatorTable.java.

References heavydb.dtypes.STRING.

1637  {
1638  java.util.ArrayList<SqlTypeFamily> families =
1639  new java.util.ArrayList<SqlTypeFamily>();
1640  families.add(SqlTypeFamily.STRING);
1641  families.add(SqlTypeFamily.STRING);
1642  return families;
1643  }
tuple STRING
Definition: dtypes.py:31
RelDataType com.mapd.calcite.parser.HeavyDBSqlOperatorTable.LevenshteinDistance.inferReturnType ( SqlOperatorBinding  opBinding)
inline

Definition at line 1646 of file HeavyDBSqlOperatorTable.java.

1646  {
1647  assert opBinding.getOperandCount() == 2;
1648  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
1649  RelDataType dataType = typeFactory.createSqlType(SqlTypeName.BIGINT);
1650  return typeFactory.createTypeWithNullability(dataType, true);
1651  }

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