public class DenodoDBFunctionSymbolFactory extends AbstractSQLDBFunctionSymbolFactory
ABS_STR, abstractRootDBType, abstractRootType, ADD_STR, AND_STR, CEIL_STR, CHAR_LENGTH_STR, COALESCE_STR, CONCAT_OP_STR, CONCAT_STR, CURRENT_TIMESTAMP_STR, dbBooleanType, dbDecimalType, dbDoubleType, dbIntegerType, dbStringType, dbTypeFactory, DIVIDE_STR, FLOOR_STR, LCASE_STR, LENGTH_STR, LOWER_STR, MULTIPLY_STR, NOT_STR, NULLIF_STR, OR_STR, RAND_STR, REGEXP_LIKE_STR, REGEXP_REPLACE_STR, REPLACE_STR, RIGHT_STR, ROUND_STR, SUBSTR_STR, SUBSTRING_STR, SUBTRACT_STR, typeFactory, UCASE_STR, UPPER_STR| Modifier | Constructor and Description |
|---|---|
protected |
DenodoDBFunctionSymbolFactory(it.unibz.inf.ontop.model.type.TypeFactory typeFactory) |
| Modifier and Type | Method and Description |
|---|---|
protected it.unibz.inf.ontop.model.term.functionsymbol.db.DBConcatFunctionSymbol |
createDBConcatOperator(int arity) |
protected it.unibz.inf.ontop.model.term.functionsymbol.db.DBIsTrueFunctionSymbol |
createDBIsTrue(it.unibz.inf.ontop.model.type.DBTermType dbBooleanType) |
protected static com.google.common.collect.ImmutableTable<String,Integer,it.unibz.inf.ontop.model.term.functionsymbol.db.DBFunctionSymbol> |
createDenodoRegularFunctionTable(it.unibz.inf.ontop.model.type.TypeFactory typeFactory) |
protected it.unibz.inf.ontop.model.term.functionsymbol.db.DBConcatFunctionSymbol |
createNullRejectingDBConcat(int arity) |
protected it.unibz.inf.ontop.model.term.functionsymbol.db.DBConcatFunctionSymbol |
createRegularDBConcat(int arity)
CONCAT regular function symbol, not an operator (like || or +)
|
it.unibz.inf.ontop.model.term.functionsymbol.db.DBBooleanFunctionSymbol |
getDBRegexpMatches2()
Supported in the WHERE clause.
|
it.unibz.inf.ontop.model.term.functionsymbol.db.DBBooleanFunctionSymbol |
getDBRegexpMatches3() |
it.unibz.inf.ontop.model.term.functionsymbol.db.DBFunctionSymbol |
getDBRegexpReplace3() |
it.unibz.inf.ontop.model.term.functionsymbol.db.DBFunctionSymbol |
getDBRegexpReplace4() |
it.unibz.inf.ontop.model.term.functionsymbol.db.DBFunctionSymbol |
getDBRight() |
it.unibz.inf.ontop.model.term.functionsymbol.db.DBBooleanFunctionSymbol |
getDBStartsWith() |
it.unibz.inf.ontop.model.term.functionsymbol.db.DBFunctionSymbol |
getDBSubString2() |
it.unibz.inf.ontop.model.term.functionsymbol.db.DBFunctionSymbol |
getDBSubString3() |
protected String |
getUUIDNameInDialect() |
protected String |
serializeContains(com.google.common.collect.ImmutableList<? extends it.unibz.inf.ontop.model.term.ImmutableTerm> terms,
Function<it.unibz.inf.ontop.model.term.ImmutableTerm,String> termConverter,
it.unibz.inf.ontop.model.term.TermFactory termFactory) |
protected String |
serializeDateTimeNorm(com.google.common.collect.ImmutableList<? extends it.unibz.inf.ontop.model.term.ImmutableTerm> terms,
Function<it.unibz.inf.ontop.model.term.ImmutableTerm,String> termConverter,
it.unibz.inf.ontop.model.term.TermFactory termFactory) |
protected String |
serializeMD5(com.google.common.collect.ImmutableList<? extends it.unibz.inf.ontop.model.term.ImmutableTerm> terms,
Function<it.unibz.inf.ontop.model.term.ImmutableTerm,String> termConverter,
it.unibz.inf.ontop.model.term.TermFactory termFactory) |
protected String |
serializeSHA1(com.google.common.collect.ImmutableList<? extends it.unibz.inf.ontop.model.term.ImmutableTerm> terms,
Function<it.unibz.inf.ontop.model.term.ImmutableTerm,String> termConverter,
it.unibz.inf.ontop.model.term.TermFactory termFactory) |
protected String |
serializeSHA256(com.google.common.collect.ImmutableList<? extends it.unibz.inf.ontop.model.term.ImmutableTerm> terms,
Function<it.unibz.inf.ontop.model.term.ImmutableTerm,String> termConverter,
it.unibz.inf.ontop.model.term.TermFactory termFactory) |
protected String |
serializeSHA512(com.google.common.collect.ImmutableList<? extends it.unibz.inf.ontop.model.term.ImmutableTerm> terms,
Function<it.unibz.inf.ontop.model.term.ImmutableTerm,String> termConverter,
it.unibz.inf.ontop.model.term.TermFactory termFactory) |
protected String |
serializeStrAfter(com.google.common.collect.ImmutableList<? extends it.unibz.inf.ontop.model.term.ImmutableTerm> terms,
Function<it.unibz.inf.ontop.model.term.ImmutableTerm,String> termConverter,
it.unibz.inf.ontop.model.term.TermFactory termFactory)
See serializeStrBefore() for the inconsistencies of the SUBSTRING functions
|
protected String |
serializeStrBefore(com.google.common.collect.ImmutableList<? extends it.unibz.inf.ontop.model.term.ImmutableTerm> terms,
Function<it.unibz.inf.ontop.model.term.ImmutableTerm,String> termConverter,
it.unibz.inf.ontop.model.term.TermFactory termFactory)
The documentation of Denodo does not correspond to the implementation.
|
protected String |
serializeTz(com.google.common.collect.ImmutableList<? extends it.unibz.inf.ontop.model.term.ImmutableTerm> terms,
Function<it.unibz.inf.ontop.model.term.ImmutableTerm,String> termConverter,
it.unibz.inf.ontop.model.term.TermFactory termFactory) |
createAbsFunctionSymbol, createAddOperator, createBooleanDenormFunctionSymbol, createBooleanInequality, createBooleanNormFunctionSymbol, createCeilFunctionSymbol, createCoalesceFunctionSymbol, createDateInequality, createDateTimeDenormFunctionSymbol, createDatetimeInequality, createDateTimeNormFunctionSymbol, createDatetimeToDatetimeCastFunctionSymbol, createDBAnd, createDBAvg, createDBBooleanCase, createDBCase, createDBCount, createDBIfThenElse, createDBIsNotNull, createDBIsNull, createDBMax, createDBMin, createDBNotFunctionSymbol, createDBOr, createDBStrictEquality, createDBStrictNEquality, createDBSum, createDecimalToDecimalCastFunctionSymbol, createDecimalToStringCastFunctionSymbol, createDefaultCastToStringFunctionSymbol, createDefaultInequality, createDefaultRegularFunctionTable, createDivideOperator, createFloatDoubleToFloatDoubleCastFunctionSymbol, createFloatDoubleToStringCastFunctionSymbol, createFloorFunctionSymbol, createIntegerToIntegerCastFunctionSymbol, createIntegerToStringCastFunctionSymbol, createIsStringEmpty, createMultiplyOperator, createNonStrictDateEquality, createNonStrictDatetimeEquality, createNonStrictDefaultEquality, createNonStrictNumericEquality, createNonStrictStringEquality, createNumericInequality, createR2RMLIRISafeEncode, createRegularBooleanFunctionSymbol, createRegularUntypedFunctionSymbol, createRoundFunctionSymbol, createSimpleCastFunctionSymbol, createSimpleCastFunctionSymbol, createStringInequality, createStringToStringCastFunctionSymbol, createSubtractOperator, createUntypedAddOperator, createUntypedDivideOperator, createUntypedMultiplyOperator, createUntypedSubtractOperator, getDBAnd, getDBCharLength, getDBConcatOperator, getDBIfThenElse, getDBIsNotNull, getDBIsNull, getDBIsStringEmpty, getDBLower, getDBNow, getDBOr, getDBRand, getDBReplace, getDBUpper, getDBUUID, getIsTrue, getNullRejectingDBConcat, getRandNameInDialect, init, isAnd, isCoalesce, isConcat, isOr, serializeDay, serializeDayFromDate, serializeDayFromDatetime, serializeHours, serializeMinutes, serializeMonth, serializeMonthFromDate, serializeMonthFromDatetime, serializeSeconds, serializeYear, serializeYearFromDate, serializeYearFromDatetimecanonicalizeRegularFunctionSymbolName, createContainsFunctionSymbol, createCurrentDateTimeFunctionSymbol, createDayFromDateFunctionSymbol, createDayFromDatetimeFunctionSymbol, createDBBinaryMathOperator, createDBBooleanIfElseNull, createDBCountTable, createDBGroupConcat, createDenormalizationTable, createExtractFunctionSymbol, createFalseOrNullFunctionSymbol, createHoursFunctionSymbol, createLikeFunctionSymbol, createMD5FunctionSymbol, createMinutesFunctionSymbol, createMonthFromDateFunctionSymbol, createMonthFromDatetimeFunctionSymbol, createNormalizationTable, createRegularIfElseNull, createSecondsFunctionSymbol, createSHA1FunctionSymbol, createSHA256FunctionSymbol, createSHA512FunctionSymbol, createStrAfterFunctionSymbol, createStrBeforeFunctionSymbol, createStrEndsFunctionSymbol, createStrStartsFunctionSymbol, createTrueOrNullFunctionSymbol, createTypeNullFunctionSymbol, createTzFunctionSymbol, createUntypedDBBinaryMathOperator, createYearFromDateFunctionSymbol, createYearFromDatetimeFunctionSymbol, getAbs, getBnodeStringTemplateFunctionSymbol, getCeil, getConversion2RDFLexicalFunctionSymbol, getConversionFromRDFLexical2DBFunctionSymbol, getCurrentDateTimeSymbol, getDBBooleanCase, getDBBooleanIfElseNull, getDBBooleanInequality, getDBCase, getDBCastFunctionSymbol, getDBCastFunctionSymbol, getDBCoalesce, getDBContains, getDBCount, getDBDateInequality, getDBDatetimeInequality, getDBDayFromDate, getDBDayFromDatetime, getDBDefaultInequality, getDBEndsWith, getDBHours, getDBIfElseNull, getDBIntIndex, getDBLike, getDBMathBinaryOperator, getDBMax, getDBMd5, getDBMin, getDBMinutes, getDBMonthFromDate, getDBMonthFromDatetime, getDBNonStrictDateEquality, getDBNonStrictDatetimeEquality, getDBNonStrictDefaultEquality, getDBNonStrictNumericEquality, getDBNonStrictStringEquality, getDBNot, getDBNumericInequality, getDBSeconds, getDBSha1, getDBSha256, getDBSha512, getDBStrAfter, getDBStrBefore, getDBStrictEquality, getDBStrictNEquality, getDBStringInequality, getDBSum, getDBTz, getDBYearFromDate, getDBYearFromDatetime, getExtractFunctionSymbol, getFalseOrNullFunctionSymbol, getFloor, getFreshBnodeStringTemplateFunctionSymbol, getIRIStringTemplateFunctionSymbol, getNullIgnoringDBAvg, getNullIgnoringDBGroupConcat, getNullIgnoringDBSum, getR2RMLIRISafeEncode, getRegularDBBooleanFunctionSymbol, getRegularDBFunctionSymbol, getRound, getTemporaryConversionToDBStringFunctionSymbol, getTrueOrNullFunctionSymbol, getTypedNullFunctionSymbol, getUntypedDBMathBinaryOperator, serializeCurrentDateTime, serializeExtract@Inject protected DenodoDBFunctionSymbolFactory(it.unibz.inf.ontop.model.type.TypeFactory typeFactory)
protected static com.google.common.collect.ImmutableTable<String,Integer,it.unibz.inf.ontop.model.term.functionsymbol.db.DBFunctionSymbol> createDenodoRegularFunctionTable(it.unibz.inf.ontop.model.type.TypeFactory typeFactory)
public it.unibz.inf.ontop.model.term.functionsymbol.db.DBFunctionSymbol getDBRight()
getDBRight in interface it.unibz.inf.ontop.model.term.functionsymbol.db.DBFunctionSymbolFactorygetDBRight in class AbstractSQLDBFunctionSymbolFactorypublic it.unibz.inf.ontop.model.term.functionsymbol.db.DBBooleanFunctionSymbol getDBStartsWith()
getDBStartsWith in interface it.unibz.inf.ontop.model.term.functionsymbol.db.DBFunctionSymbolFactorygetDBStartsWith in class it.unibz.inf.ontop.model.term.functionsymbol.db.impl.AbstractDBFunctionSymbolFactoryprotected String serializeStrBefore(com.google.common.collect.ImmutableList<? extends it.unibz.inf.ontop.model.term.ImmutableTerm> terms, Function<it.unibz.inf.ontop.model.term.ImmutableTerm,String> termConverter, it.unibz.inf.ontop.model.term.TermFactory termFactory)
There is also another function:
SUBSTRING (
Instead, we get the desired output with:
SUBSTR(
serializeStrBefore in class it.unibz.inf.ontop.model.term.functionsymbol.db.impl.AbstractDBFunctionSymbolFactoryprotected String serializeStrAfter(com.google.common.collect.ImmutableList<? extends it.unibz.inf.ontop.model.term.ImmutableTerm> terms, Function<it.unibz.inf.ontop.model.term.ImmutableTerm,String> termConverter, it.unibz.inf.ontop.model.term.TermFactory termFactory)
serializeStrAfter in class it.unibz.inf.ontop.model.term.functionsymbol.db.impl.AbstractDBFunctionSymbolFactoryprotected String serializeMD5(com.google.common.collect.ImmutableList<? extends it.unibz.inf.ontop.model.term.ImmutableTerm> terms, Function<it.unibz.inf.ontop.model.term.ImmutableTerm,String> termConverter, it.unibz.inf.ontop.model.term.TermFactory termFactory)
serializeMD5 in class it.unibz.inf.ontop.model.term.functionsymbol.db.impl.AbstractDBFunctionSymbolFactoryprotected String serializeSHA1(com.google.common.collect.ImmutableList<? extends it.unibz.inf.ontop.model.term.ImmutableTerm> terms, Function<it.unibz.inf.ontop.model.term.ImmutableTerm,String> termConverter, it.unibz.inf.ontop.model.term.TermFactory termFactory)
serializeSHA1 in class it.unibz.inf.ontop.model.term.functionsymbol.db.impl.AbstractDBFunctionSymbolFactoryprotected String serializeSHA256(com.google.common.collect.ImmutableList<? extends it.unibz.inf.ontop.model.term.ImmutableTerm> terms, Function<it.unibz.inf.ontop.model.term.ImmutableTerm,String> termConverter, it.unibz.inf.ontop.model.term.TermFactory termFactory)
serializeSHA256 in class it.unibz.inf.ontop.model.term.functionsymbol.db.impl.AbstractDBFunctionSymbolFactoryprotected String serializeSHA512(com.google.common.collect.ImmutableList<? extends it.unibz.inf.ontop.model.term.ImmutableTerm> terms, Function<it.unibz.inf.ontop.model.term.ImmutableTerm,String> termConverter, it.unibz.inf.ontop.model.term.TermFactory termFactory)
serializeSHA512 in class it.unibz.inf.ontop.model.term.functionsymbol.db.impl.AbstractDBFunctionSymbolFactoryprotected String serializeTz(com.google.common.collect.ImmutableList<? extends it.unibz.inf.ontop.model.term.ImmutableTerm> terms, Function<it.unibz.inf.ontop.model.term.ImmutableTerm,String> termConverter, it.unibz.inf.ontop.model.term.TermFactory termFactory)
serializeTz in class it.unibz.inf.ontop.model.term.functionsymbol.db.impl.AbstractDBFunctionSymbolFactoryprotected it.unibz.inf.ontop.model.term.functionsymbol.db.DBConcatFunctionSymbol createNullRejectingDBConcat(int arity)
createNullRejectingDBConcat in class AbstractSQLDBFunctionSymbolFactoryprotected it.unibz.inf.ontop.model.term.functionsymbol.db.DBConcatFunctionSymbol createDBConcatOperator(int arity)
createDBConcatOperator in class AbstractSQLDBFunctionSymbolFactoryprotected it.unibz.inf.ontop.model.term.functionsymbol.db.DBConcatFunctionSymbol createRegularDBConcat(int arity)
AbstractSQLDBFunctionSymbolFactorycreateRegularDBConcat in class AbstractSQLDBFunctionSymbolFactoryprotected String getUUIDNameInDialect()
getUUIDNameInDialect in class AbstractSQLDBFunctionSymbolFactorypublic it.unibz.inf.ontop.model.term.functionsymbol.db.DBFunctionSymbol getDBSubString2()
getDBSubString2 in interface it.unibz.inf.ontop.model.term.functionsymbol.db.DBFunctionSymbolFactorygetDBSubString2 in class AbstractSQLDBFunctionSymbolFactorypublic it.unibz.inf.ontop.model.term.functionsymbol.db.DBFunctionSymbol getDBSubString3()
getDBSubString3 in interface it.unibz.inf.ontop.model.term.functionsymbol.db.DBFunctionSymbolFactorygetDBSubString3 in class AbstractSQLDBFunctionSymbolFactoryprotected String serializeDateTimeNorm(com.google.common.collect.ImmutableList<? extends it.unibz.inf.ontop.model.term.ImmutableTerm> terms, Function<it.unibz.inf.ontop.model.term.ImmutableTerm,String> termConverter, it.unibz.inf.ontop.model.term.TermFactory termFactory)
serializeDateTimeNorm in class AbstractSQLDBFunctionSymbolFactoryprotected String serializeContains(com.google.common.collect.ImmutableList<? extends it.unibz.inf.ontop.model.term.ImmutableTerm> terms, Function<it.unibz.inf.ontop.model.term.ImmutableTerm,String> termConverter, it.unibz.inf.ontop.model.term.TermFactory termFactory)
serializeContains in class it.unibz.inf.ontop.model.term.functionsymbol.db.impl.AbstractDBFunctionSymbolFactoryprotected it.unibz.inf.ontop.model.term.functionsymbol.db.DBIsTrueFunctionSymbol createDBIsTrue(it.unibz.inf.ontop.model.type.DBTermType dbBooleanType)
createDBIsTrue in class AbstractSQLDBFunctionSymbolFactorypublic it.unibz.inf.ontop.model.term.functionsymbol.db.DBBooleanFunctionSymbol getDBRegexpMatches2()
getDBRegexpMatches2 in interface it.unibz.inf.ontop.model.term.functionsymbol.db.DBFunctionSymbolFactorygetDBRegexpMatches2 in class AbstractSQLDBFunctionSymbolFactorypublic it.unibz.inf.ontop.model.term.functionsymbol.db.DBBooleanFunctionSymbol getDBRegexpMatches3()
getDBRegexpMatches3 in interface it.unibz.inf.ontop.model.term.functionsymbol.db.DBFunctionSymbolFactorygetDBRegexpMatches3 in class AbstractSQLDBFunctionSymbolFactorypublic it.unibz.inf.ontop.model.term.functionsymbol.db.DBFunctionSymbol getDBRegexpReplace3()
getDBRegexpReplace3 in interface it.unibz.inf.ontop.model.term.functionsymbol.db.DBFunctionSymbolFactorygetDBRegexpReplace3 in class AbstractSQLDBFunctionSymbolFactorypublic it.unibz.inf.ontop.model.term.functionsymbol.db.DBFunctionSymbol getDBRegexpReplace4()
getDBRegexpReplace4 in interface it.unibz.inf.ontop.model.term.functionsymbol.db.DBFunctionSymbolFactorygetDBRegexpReplace4 in class AbstractSQLDBFunctionSymbolFactoryCopyright © 2009–2020 Free University of Bozen-Bolzano. All rights reserved.