Class com::mapd::calcite::parser::MapDSqlOperatorTable

class MapDSqlOperatorTable : public ChainedSqlOperatorTable

Author

michael

Public Functions

com.mapd.calcite.parser.MapDSqlOperatorTable.MapDSqlOperatorTable(SqlOperatorTable parentTable)
void com.mapd.calcite.parser.MapDSqlOperatorTable.addOperator(SqlOperator op)

Adds an operator to this table.

Parameters
  • op:

Public Static Functions

static void com.mapd.calcite.parser.MapDSqlOperatorTable.addUDF(MapDSqlOperatorTable opTab, final Map< String, ExtensionFunction > extSigs)

Public Static Attributes

final SqlArrayValueConstructorAllowingEmpty com.mapd.calcite.parser.MapDSqlOperatorTable.ARRAY_VALUE_CONSTRUCTOR= new SqlArrayValueConstructorAllowingEmpty()

Private Members

final ListSqlOperatorTable com.mapd.calcite.parser.MapDSqlOperatorTable.listOpTab

Mock operator table for testing purposes. Contains the standard SQL operator table, plus a list of operators.

Private Static Functions

static String com.mapd.calcite.parser.MapDSqlOperatorTable.dropSuffix(final String str)
class All : public SqlFunction

Public Functions

com.mapd.calcite.parser.MapDSqlOperatorTable.All.All()
RelDataType com.mapd.calcite.parser.MapDSqlOperatorTable.All.inferReturnType(SqlOperatorBinding opBinding)
class Any : public SqlFunction

Public Functions

com.mapd.calcite.parser.MapDSqlOperatorTable.Any.Any()
RelDataType com.mapd.calcite.parser.MapDSqlOperatorTable.Any.inferReturnType(SqlOperatorBinding opBinding)
class ArrayLength : public SqlFunction

Public Functions

com.mapd.calcite.parser.MapDSqlOperatorTable.ArrayLength.ArrayLength()
RelDataType com.mapd.calcite.parser.MapDSqlOperatorTable.ArrayLength.inferReturnType(SqlOperatorBinding opBinding)
class CharLength : public SqlFunction

Public Functions

com.mapd.calcite.parser.MapDSqlOperatorTable.CharLength.CharLength()
RelDataType com.mapd.calcite.parser.MapDSqlOperatorTable.CharLength.inferReturnType(SqlOperatorBinding opBinding)
class Dateadd : public SqlFunction

Public Functions

com.mapd.calcite.parser.MapDSqlOperatorTable.Dateadd.Dateadd()
RelDataType com.mapd.calcite.parser.MapDSqlOperatorTable.Dateadd.inferReturnType(SqlOperatorBinding opBinding)
class Datediff : public SqlFunction

Public Functions

com.mapd.calcite.parser.MapDSqlOperatorTable.Datediff.Datediff()
RelDataType com.mapd.calcite.parser.MapDSqlOperatorTable.Datediff.inferReturnType(SqlOperatorBinding opBinding)
class Datepart : public SqlFunction

Public Functions

com.mapd.calcite.parser.MapDSqlOperatorTable.Datepart.Datepart()
RelDataType com.mapd.calcite.parser.MapDSqlOperatorTable.Datepart.inferReturnType(SqlOperatorBinding opBinding)
class Datetime : public SqlFunction

Public Functions

com.mapd.calcite.parser.MapDSqlOperatorTable.Datetime.Datetime()
RelDataType com.mapd.calcite.parser.MapDSqlOperatorTable.Datetime.inferReturnType(SqlOperatorBinding opBinding)
class DedupFunction : public SqlFunction

“DEDUP” user-defined function.

Public Functions

com.mapd.calcite.parser.MapDSqlOperatorTable.DedupFunction.DedupFunction()
RelDataType com.mapd.calcite.parser.MapDSqlOperatorTable.DedupFunction.inferReturnType(SqlOperatorBinding opBinding)
class ExtTableFunction : public SqlFunction, public SqlTableFunction

Public Functions

SqlReturnTypeInference com.mapd.calcite.parser.MapDSqlOperatorTable.ExtTableFunction.getRowTypeInference()
Set<RelColumnMapping> com.mapd.calcite.parser.MapDSqlOperatorTable.ExtTableFunction.getColumnMappings()

Private Functions

void com.mapd.calcite.parser.MapDSqlOperatorTable.ExtTableFunction.debugPrint(String msg, Boolean debugMode)

Private Members

final List<SqlTypeName> com.mapd.calcite.parser.MapDSqlOperatorTable.ExtTableFunction.outs
final List<String> com.mapd.calcite.parser.MapDSqlOperatorTable.ExtTableFunction.arg_names
final List<String> com.mapd.calcite.parser.MapDSqlOperatorTable.ExtTableFunction.out_names
final Map<String, String> com.mapd.calcite.parser.MapDSqlOperatorTable.ExtTableFunction.options
class KeyForString : public SqlFunction

Public Functions

com.mapd.calcite.parser.MapDSqlOperatorTable.KeyForString.KeyForString()
RelDataType com.mapd.calcite.parser.MapDSqlOperatorTable.KeyForString.inferReturnType(SqlOperatorBinding opBinding)
class LastSample : public SqlAggFunction

Public Functions

com.mapd.calcite.parser.MapDSqlOperatorTable.LastSample.LastSample()
RelDataType com.mapd.calcite.parser.MapDSqlOperatorTable.LastSample.inferReturnType(SqlOperatorBinding opBinding)
class Length : public SqlFunction

Public Functions

com.mapd.calcite.parser.MapDSqlOperatorTable.Length.Length()
RelDataType com.mapd.calcite.parser.MapDSqlOperatorTable.Length.inferReturnType(SqlOperatorBinding opBinding)
class Likely : public SqlFunction

Public Functions

com.mapd.calcite.parser.MapDSqlOperatorTable.Likely.Likely()
RelDataType com.mapd.calcite.parser.MapDSqlOperatorTable.Likely.inferReturnType(SqlOperatorBinding opBinding)
class MyUDFFunction : public SqlFunction

“MyUDFFunction” user-defined function test. our udf’s will look like system functions to calcite as it has no access to the code

Public Functions

com.mapd.calcite.parser.MapDSqlOperatorTable.MyUDFFunction.MyUDFFunction()
RelDataType com.mapd.calcite.parser.MapDSqlOperatorTable.MyUDFFunction.inferReturnType(SqlOperatorBinding opBinding)
class Now : public SqlFunction

Public Functions

com.mapd.calcite.parser.MapDSqlOperatorTable.Now.Now()
RelDataType com.mapd.calcite.parser.MapDSqlOperatorTable.Now.inferReturnType(SqlOperatorBinding opBinding)
class nsTimestamp : public SqlFunction

Public Functions

com.mapd.calcite.parser.MapDSqlOperatorTable.nsTimestamp.nsTimestamp()
RelDataType com.mapd.calcite.parser.MapDSqlOperatorTable.nsTimestamp.inferReturnType(SqlOperatorBinding opBinding)
class OffsetInFragment : public SqlFunction

Public Functions

com.mapd.calcite.parser.MapDSqlOperatorTable.OffsetInFragment.OffsetInFragment()
RelDataType com.mapd.calcite.parser.MapDSqlOperatorTable.OffsetInFragment.inferReturnType(SqlOperatorBinding opBinding)
class PgDateTrunc : public SqlFunction

Public Functions

com.mapd.calcite.parser.MapDSqlOperatorTable.PgDateTrunc.PgDateTrunc()
RelDataType com.mapd.calcite.parser.MapDSqlOperatorTable.PgDateTrunc.inferReturnType(SqlOperatorBinding opBinding)
class PgExtract : public SqlFunction

Public Functions

com.mapd.calcite.parser.MapDSqlOperatorTable.PgExtract.PgExtract()
RelDataType com.mapd.calcite.parser.MapDSqlOperatorTable.PgExtract.inferReturnType(SqlOperatorBinding opBinding)
class PgILike : public SqlFunction

Public Functions

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

Private Static Functions

static java.util.List<SqlTypeFamily> com.mapd.calcite.parser.MapDSqlOperatorTable.PgILike.getSignatureFamilies()
class EscapeOptional : public java::util::function::Predicate<Integer>, public com::google::common::base::Predicate<Integer>

Public Functions

boolean com.mapd.calcite.parser.MapDSqlOperatorTable.PgILike.EscapeOptional.test(Integer t)
boolean com.mapd.calcite.parser.MapDSqlOperatorTable.PgILike.EscapeOptional.apply(Integer t)
class PgUnnest : public SqlFunction

Public Functions

com.mapd.calcite.parser.MapDSqlOperatorTable.PgUnnest.PgUnnest()
RelDataType com.mapd.calcite.parser.MapDSqlOperatorTable.PgUnnest.inferReturnType(SqlOperatorBinding opBinding)
class RampFunction : public SqlFunction

“RAMP” user-defined function.

Public Functions

com.mapd.calcite.parser.MapDSqlOperatorTable.RampFunction.RampFunction()
RelDataType com.mapd.calcite.parser.MapDSqlOperatorTable.RampFunction.inferReturnType(SqlOperatorBinding opBinding)
class RegexpLike : public SqlFunction

Public Functions

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

Private Static Functions

static java.util.List<SqlTypeFamily> com.mapd.calcite.parser.MapDSqlOperatorTable.RegexpLike.getSignatureFamilies()
class EscapeOptional : public java::util::function::Predicate<Integer>, public com::google::common::base::Predicate<Integer>

Public Functions

boolean com.mapd.calcite.parser.MapDSqlOperatorTable.RegexpLike.EscapeOptional.test(Integer t)
boolean com.mapd.calcite.parser.MapDSqlOperatorTable.RegexpLike.EscapeOptional.apply(Integer t)
class Sample : public SqlAggFunction

Public Functions

com.mapd.calcite.parser.MapDSqlOperatorTable.Sample.Sample()
RelDataType com.mapd.calcite.parser.MapDSqlOperatorTable.Sample.inferReturnType(SqlOperatorBinding opBinding)
class SampleRatio : public SqlFunction

Public Functions

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

Private Static Functions

static java.util.List<SqlTypeFamily> com.mapd.calcite.parser.MapDSqlOperatorTable.SampleRatio.signature()
class Sign : public SqlFunction

Public Functions

com.mapd.calcite.parser.MapDSqlOperatorTable.Sign.Sign()
RelDataType com.mapd.calcite.parser.MapDSqlOperatorTable.Sign.inferReturnType(SqlOperatorBinding opBinding)
class SqlArrayValueConstructorAllowingEmpty : public SqlArrayValueConstructor

Public Functions

boolean com.mapd.calcite.parser.MapDSqlOperatorTable.SqlArrayValueConstructorAllowingEmpty.checkOperandTypes(SqlCallBinding callBinding, boolean throwOnFailure)

Protected Functions

RelDataType com.mapd.calcite.parser.MapDSqlOperatorTable.SqlArrayValueConstructorAllowingEmpty.getComponentType(RelDataTypeFactory typeFactory, List< RelDataType > argTypes)
class Unlikely : public SqlFunction

Public Functions

com.mapd.calcite.parser.MapDSqlOperatorTable.Unlikely.Unlikely()
RelDataType com.mapd.calcite.parser.MapDSqlOperatorTable.Unlikely.inferReturnType(SqlOperatorBinding opBinding)
class usTimestamp : public SqlFunction

Public Functions

com.mapd.calcite.parser.MapDSqlOperatorTable.usTimestamp.usTimestamp()
RelDataType com.mapd.calcite.parser.MapDSqlOperatorTable.usTimestamp.inferReturnType(SqlOperatorBinding opBinding)
class WidthBucket : public SqlFunction

Public Functions

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

Private Static Functions

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