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

Public Member Functions

 Hash ()
 
RelDataType inferReturnType (SqlOperatorBinding opBinding)
 

Static Private Member Functions

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

Detailed Description

Definition at line 1751 of file HeavyDBSqlOperatorTable.java.

Constructor & Destructor Documentation

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

Definition at line 1752 of file HeavyDBSqlOperatorTable.java.

1752  {
1753  super("HASH",
1754  SqlKind.OTHER_FUNCTION,
1755  null,
1756  null,
1757  OperandTypes.family(getSignatureFamilies()),
1758  SqlFunctionCategory.SYSTEM);
1759  }
static java.util.List< SqlTypeFamily > getSignatureFamilies()

Member Function Documentation

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

Definition at line 1761 of file HeavyDBSqlOperatorTable.java.

References heavydb.dtypes.STRING.

1761  {
1762  java.util.ArrayList<SqlTypeFamily> families =
1763  new java.util.ArrayList<SqlTypeFamily>();
1764  // Todo(todd): Support any input type for HASH function
1765  // families.add(SqlTypeFamily.ANY);
1766  families.add(SqlTypeFamily.STRING);
1767  return families;
1768  }
tuple STRING
Definition: dtypes.py:31
RelDataType com.mapd.calcite.parser.HeavyDBSqlOperatorTable.Hash.inferReturnType ( SqlOperatorBinding  opBinding)
inline

Definition at line 1771 of file HeavyDBSqlOperatorTable.java.

1771  {
1772  assert opBinding.getOperandCount() == 1;
1773  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
1774  return typeFactory.createTypeWithNullability(
1775  typeFactory.createSqlType(SqlTypeName.BIGINT),
1776  opBinding.getOperandType(0).isNullable());
1777  }

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