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

Classes

class  EscapeOptional
 

Public Member Functions

 RegexpLike ()
 
RelDataType inferReturnType (SqlOperatorBinding opBinding)
 

Static Private Member Functions

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

Detailed Description

Definition at line 614 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

◆ RegexpLike()

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

Definition at line 615 of file MapDSqlOperatorTable.java.

615  {
616  super("REGEXP_LIKE",
617  SqlKind.OTHER_FUNCTION,
618  null,
619  null,
620  OperandTypes.family(getSignatureFamilies(), new EscapeOptional()),
621  SqlFunctionCategory.SYSTEM);
622  }
static java.util.List< SqlTypeFamily > getSignatureFamilies()

Member Function Documentation

◆ getSignatureFamilies()

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

Definition at line 624 of file MapDSqlOperatorTable.java.

624  {
625  java.util.ArrayList<SqlTypeFamily> families =
626  new java.util.ArrayList<SqlTypeFamily>();
627  families.add(SqlTypeFamily.STRING);
628  families.add(SqlTypeFamily.STRING);
629  families.add(SqlTypeFamily.STRING);
630  return families;
631  }

◆ inferReturnType()

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

Definition at line 646 of file MapDSqlOperatorTable.java.

646  {
647  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
648  return typeFactory.createSqlType(SqlTypeName.BOOLEAN);
649  }

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