Class SparkSQLDBFunctionSymbolFactory
java.lang.Object
it.unibz.inf.ontop.model.term.functionsymbol.db.impl.AbstractDBFunctionSymbolFactory
it.unibz.inf.ontop.model.term.functionsymbol.db.impl.AbstractSQLDBFunctionSymbolFactory
net.sansa_stack.query.spark.ontop.SparkSQLDBFunctionSymbolFactory
- All Implemented Interfaces:
it.unibz.inf.ontop.model.term.functionsymbol.db.DBFunctionSymbolFactory
public class SparkSQLDBFunctionSymbolFactory
extends it.unibz.inf.ontop.model.term.functionsymbol.db.impl.AbstractSQLDBFunctionSymbolFactory
- Author:
- Lorenz Buehmann
-
Field Summary
Fields inherited from class it.unibz.inf.ontop.model.term.functionsymbol.db.impl.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_REPLACE_STR, REPLACE_STR, RIGHT_STR, ROUND_STR, ST_ASTEXT, ST_CONTAINS, ST_CONTAINSPROPERLY, ST_COVEREDBY, ST_COVERS, ST_CROSSES, ST_DISJOINT, ST_DISTANCE, ST_DISTANCE_SPHERE, ST_DISTANCE_SPHEROID, ST_EQUALS, ST_FLIP_COORDINATES, ST_GEOMFROMTEXT, ST_INTERSECTS, ST_MAKEPOINT, ST_OVERLAPS, ST_SETSRID, ST_TOUCHES, ST_TRANSFORM, ST_WITHIN, SUBSTR_STR, SUBSTRING_STR, SUBTRACT_STR, typeFactory, UCASE_STR, UPPER_STR -
Method Summary
Modifier and TypeMethodDescriptionprotected Optional<it.unibz.inf.ontop.model.term.functionsymbol.db.DBFunctionSymbol>createCeilFunctionSymbol(it.unibz.inf.ontop.model.type.DBTermType dbTermType) protected it.unibz.inf.ontop.model.term.functionsymbol.db.DBFunctionSymbolcreateDBAvg(it.unibz.inf.ontop.model.type.DBTermType inputType, boolean isDistinct) protected it.unibz.inf.ontop.model.term.functionsymbol.db.DBConcatFunctionSymbolcreateDBConcatOperator(int arity) protected it.unibz.inf.ontop.model.term.functionsymbol.db.DBFunctionSymbolcreateDBGroupConcat(it.unibz.inf.ontop.model.type.DBTermType dbStringType, boolean isDistinct) protected it.unibz.inf.ontop.model.term.functionsymbol.db.DBFunctionSymbolcreateEncodeURLorIRI(boolean preserveInternationalChars) protected Optional<it.unibz.inf.ontop.model.term.functionsymbol.db.DBFunctionSymbol>createFloorFunctionSymbol(it.unibz.inf.ontop.model.type.DBTermType dbTermType) protected it.unibz.inf.ontop.model.term.functionsymbol.db.DBConcatFunctionSymbolcreateNullRejectingDBConcat(int arity) protected it.unibz.inf.ontop.model.term.functionsymbol.db.DBConcatFunctionSymbolcreateRegularDBConcat(int arity) Treats NULLs as empty stringsprotected Optional<it.unibz.inf.ontop.model.term.functionsymbol.db.DBFunctionSymbol>createRoundFunctionSymbol(it.unibz.inf.ontop.model.type.DBTermType dbTermType) protected static it.unibz.inf.ontop.com.google.common.collect.ImmutableTable<String,Integer, it.unibz.inf.ontop.model.term.functionsymbol.db.DBFunctionSymbol> createSparkRegularFunctionTable(it.unibz.inf.ontop.model.type.TypeFactory typeFactory) it.unibz.inf.ontop.model.term.functionsymbol.db.DBBooleanFunctionSymbolit.unibz.inf.ontop.model.term.functionsymbol.db.DBBooleanFunctionSymbolprotected Stringprotected StringserializeContains(it.unibz.inf.ontop.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 StringserializeDateTimeNorm(it.unibz.inf.ontop.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) Asks the timezone to be includedprotected StringserializeMD5(it.unibz.inf.ontop.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 StringserializeSHA1(it.unibz.inf.ontop.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 StringserializeSHA256(it.unibz.inf.ontop.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 StringserializeSHA512(it.unibz.inf.ontop.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 StringserializeStrAfter(it.unibz.inf.ontop.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 StringserializeStrBefore(it.unibz.inf.ontop.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 StringserializeTz(it.unibz.inf.ontop.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) Methods inherited from class it.unibz.inf.ontop.model.term.functionsymbol.db.impl.AbstractSQLDBFunctionSymbolFactory
createAbsFunctionSymbol, createAddOperator, createBooleanCoalesceFunctionSymbol, createBooleanDenormFunctionSymbol, createBooleanInequality, createBooleanNormFunctionSymbol, createCoalesceFunctionSymbol, createDateInequality, createDateTimeDenormFunctionSymbol, createDatetimeInequality, createDateTimeNormFunctionSymbol, createDatetimeToDatetimeCastFunctionSymbol, createDBAnd, createDBBooleanCase, createDBCase, createDBCount, createDBIfThenElse, createDBIsNotNull, createDBIsNull, createDBIsTrue, createDBMax, createDBMin, createDBNotFunctionSymbol, createDBOr, createDBStrictEquality, createDBStrictNEquality, createDBSum, createDecimalToDecimalCastFunctionSymbol, createDecimalToStringCastFunctionSymbol, createDefaultCastToStringFunctionSymbol, createDefaultInequality, createDefaultRegularFunctionTable, createDivideOperator, createFloatDoubleToFloatDoubleCastFunctionSymbol, createFloatDoubleToStringCastFunctionSymbol, createGeometryNormFunctionSymbol, createIntegerToIntegerCastFunctionSymbol, createIntegerToStringCastFunctionSymbol, createIsStringEmpty, createMultiplyOperator, createNonStrictDateEquality, createNonStrictDatetimeEquality, createNonStrictDefaultEquality, createNonStrictNumericEquality, createNonStrictStringEquality, createNumericInequality, createRegularBooleanFunctionSymbol, createRegularUntypedFunctionSymbol, createSimpleCastFunctionSymbol, createSimpleCastFunctionSymbol, createStringInequality, createStringToStringCastFunctionSymbol, createSubtractOperator, createUntypedAddOperator, createUntypedDivideOperator, createUntypedMultiplyOperator, createUntypedSubtractOperator, getDBAnd, getDBAsText, getDBBoundary, getDBBuffer, getDBCharLength, getDBConcatOperator, getDBConvexHull, getDBDifference, getDBEnvelope, getDBGetSRID, getDBIfThenElse, getDBIntersection, getDBIsNotNull, getDBIsNull, getDBIsStringEmpty, getDBLower, getDBNow, getDBNullIf, getDBOr, getDBRand, getDBRegexpReplace3, getDBRegexpReplace4, getDBRelate, getDBRelateMatrix, getDBReplace, getDBRight, getDBSTContains, getDBSTContainsProperly, getDBSTCoveredBy, getDBSTCovers, getDBSTCrosses, getDBSTDisjoint, getDBSTDistance, getDBSTDistanceSphere, getDBSTDistanceSpheroid, getDBSTEquals, getDBSTFlipCoordinates, getDBSTGeomFromText, getDBSTIntersects, getDBSTMakePoint, getDBSTOverlaps, getDBSTSetSRID, getDBSTTouches, getDBSTTransform, getDBSTWithin, getDBSubString2, getDBSubString3, getDBSymDifference, getDBUnion, getDBUpper, getDBUUID, getIsTrue, getNullRejectingDBConcat, getRandNameInDialect, init, isAnd, isCoalesce, isConcat, isOr, serializeDay, serializeDayFromDate, serializeDayFromDatetime, serializeDaysBetween, serializeDaysBetweenFromDate, serializeDaysBetweenFromDateTime, serializeDBRowNumber, serializeHours, serializeHoursBetween, serializeMillisBetween, serializeMinutes, serializeMinutesBetween, serializeMonth, serializeMonthFromDate, serializeMonthFromDatetime, serializeSeconds, serializeSecondsBetween, serializeWeeksBetween, serializeWeeksBetweenFromDate, serializeWeeksBetweenFromDateTime, serializeYear, serializeYearFromDate, serializeYearFromDatetimeMethods inherited from class it.unibz.inf.ontop.model.term.functionsymbol.db.impl.AbstractDBFunctionSymbolFactory
canonicalizeRegularFunctionSymbolName, createContainsFunctionSymbol, createCurrentDateTimeFunctionSymbol, createDayFromDateFunctionSymbol, createDayFromDatetimeFunctionSymbol, createDaysBetweenFromDateFunctionSymbol, createDaysBetweenFromDateTimeFunctionSymbol, createDBBinaryMathOperator, createDBBooleanIfElseNull, createDBCountTable, createDBIriStringResolver, createDBRowNumber, createDBRowUniqueStr, createDenormalizationTable, createExtractFunctionSymbol, createFalseOrNullFunctionSymbol, createHoursBetweenFromDateTimeFunctionSymbol, createHoursFunctionSymbol, createLikeFunctionSymbol, createMD5FunctionSymbol, createMillisBetweenFromDateTimeFunctionSymbol, createMinutesBetweenFromDateTimeFunctionSymbol, createMinutesFunctionSymbol, createMonthFromDateFunctionSymbol, createMonthFromDatetimeFunctionSymbol, createNormalizationTable, createRegularIfElseNull, createSecondsBetweenFromDateTimeFunctionSymbol, createSecondsFunctionSymbol, createSHA1FunctionSymbol, createSHA256FunctionSymbol, createSHA512FunctionSymbol, createSimilarToFunctionSymbol, createStrAfterFunctionSymbol, createStrBeforeFunctionSymbol, createStrEndsFunctionSymbol, createStrStartsFunctionSymbol, createTrueOrNullFunctionSymbol, createTypeNullFunctionSymbol, createTzFunctionSymbol, createUntypedDBBinaryMathOperator, createWeeksBetweenFromDateFunctionSymbol, createWeeksBetweenFromDateTimeFunctionSymbol, createYearFromDateFunctionSymbol, createYearFromDatetimeFunctionSymbol, getAbs, getBnodeStringTemplateFunctionSymbol, getCeil, getConversion2RDFLexicalFunctionSymbol, getConversionFromRDFLexical2DBFunctionSymbol, getCurrentDateTimeSymbol, getDBBooleanCase, getDBBooleanCoalesce, getDBBooleanIfElseNull, getDBBooleanInequality, getDBCase, getDBCastFunctionSymbol, getDBCastFunctionSymbol, getDBCoalesce, getDBContains, getDBCount, getDBDateInequality, getDBDatetimeInequality, getDBDayFromDate, getDBDayFromDatetime, getDBDaysBetweenFromDate, getDBDaysBetweenFromDateTime, getDBDefaultInequality, getDBEncodeForURI, getDBEndsWith, getDBHours, getDBHoursBetweenFromDateTime, getDBIfElseNull, getDBIntIndex, getDBIriStringResolver, getDBLike, getDBMathBinaryOperator, getDBMax, getDBMd5, getDBMillisBetweenFromDateTime, getDBMin, getDBMinutes, getDBMinutesBetweenFromDateTime, getDBMonthFromDate, getDBMonthFromDatetime, getDBNonStrictDateEquality, getDBNonStrictDatetimeEquality, getDBNonStrictDefaultEquality, getDBNonStrictNumericEquality, getDBNonStrictStringEquality, getDBNot, getDBNumericInequality, getDBRowNumber, getDBRowUniqueStr, getDBSeconds, getDBSecondsBetweenFromDateTime, getDBSha1, getDBSha256, getDBSha512, getDBSimilarTo, getDBStartsWith, getDBStrAfter, getDBStrBefore, getDBStrictEquality, getDBStrictNEquality, getDBStringInequality, getDBSum, getDBTz, getDBWeeksBetweenFromDate, getDBWeeksBetweenFromDateTime, getDBYearFromDate, getDBYearFromDatetime, getExtractFunctionSymbol, getFalseOrNullFunctionSymbol, getFloor, getFreshBnodeStringTemplateFunctionSymbol, getIRIStringTemplateFunctionSymbol, getNullIgnoringDBAvg, getNullIgnoringDBGroupConcat, getNullIgnoringDBSum, getR2RMLIRISafeEncode, getRegularDBBooleanFunctionSymbol, getRegularDBFunctionSymbol, getRound, getTemporaryConversionToDBStringFunctionSymbol, getTrueOrNullFunctionSymbol, getTypedNullFunctionSymbol, getUntypedDBMathBinaryOperator, serializeCurrentDateTime, serializeDBRowUniqueStr, serializeExtract
-
Method Details
-
createSparkRegularFunctionTable
-
serializeContains
protected String serializeContains(it.unibz.inf.ontop.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) - Specified by:
serializeContainsin classit.unibz.inf.ontop.model.term.functionsymbol.db.impl.AbstractDBFunctionSymbolFactory
-
serializeStrBefore
protected String serializeStrBefore(it.unibz.inf.ontop.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) - Specified by:
serializeStrBeforein classit.unibz.inf.ontop.model.term.functionsymbol.db.impl.AbstractDBFunctionSymbolFactory
-
serializeStrAfter
protected String serializeStrAfter(it.unibz.inf.ontop.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) - Specified by:
serializeStrAfterin classit.unibz.inf.ontop.model.term.functionsymbol.db.impl.AbstractDBFunctionSymbolFactory
-
serializeMD5
protected String serializeMD5(it.unibz.inf.ontop.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) - Specified by:
serializeMD5in classit.unibz.inf.ontop.model.term.functionsymbol.db.impl.AbstractDBFunctionSymbolFactory
-
serializeSHA1
protected String serializeSHA1(it.unibz.inf.ontop.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) - Specified by:
serializeSHA1in classit.unibz.inf.ontop.model.term.functionsymbol.db.impl.AbstractDBFunctionSymbolFactory
-
serializeSHA256
protected String serializeSHA256(it.unibz.inf.ontop.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) - Specified by:
serializeSHA256in classit.unibz.inf.ontop.model.term.functionsymbol.db.impl.AbstractDBFunctionSymbolFactory
-
serializeSHA512
protected String serializeSHA512(it.unibz.inf.ontop.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) - Specified by:
serializeSHA512in classit.unibz.inf.ontop.model.term.functionsymbol.db.impl.AbstractDBFunctionSymbolFactory
-
serializeTz
protected String serializeTz(it.unibz.inf.ontop.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) - Specified by:
serializeTzin classit.unibz.inf.ontop.model.term.functionsymbol.db.impl.AbstractDBFunctionSymbolFactory
-
createNullRejectingDBConcat
protected it.unibz.inf.ontop.model.term.functionsymbol.db.DBConcatFunctionSymbol createNullRejectingDBConcat(int arity) - Specified by:
createNullRejectingDBConcatin classit.unibz.inf.ontop.model.term.functionsymbol.db.impl.AbstractSQLDBFunctionSymbolFactory
-
createDBConcatOperator
protected it.unibz.inf.ontop.model.term.functionsymbol.db.DBConcatFunctionSymbol createDBConcatOperator(int arity) - Specified by:
createDBConcatOperatorin classit.unibz.inf.ontop.model.term.functionsymbol.db.impl.AbstractSQLDBFunctionSymbolFactory
-
createRegularDBConcat
protected it.unibz.inf.ontop.model.term.functionsymbol.db.DBConcatFunctionSymbol createRegularDBConcat(int arity) Treats NULLs as empty strings- Specified by:
createRegularDBConcatin classit.unibz.inf.ontop.model.term.functionsymbol.db.impl.AbstractSQLDBFunctionSymbolFactory
-
createCeilFunctionSymbol
protected Optional<it.unibz.inf.ontop.model.term.functionsymbol.db.DBFunctionSymbol> createCeilFunctionSymbol(it.unibz.inf.ontop.model.type.DBTermType dbTermType) - Overrides:
createCeilFunctionSymbolin classit.unibz.inf.ontop.model.term.functionsymbol.db.impl.AbstractSQLDBFunctionSymbolFactory
-
createFloorFunctionSymbol
protected Optional<it.unibz.inf.ontop.model.term.functionsymbol.db.DBFunctionSymbol> createFloorFunctionSymbol(it.unibz.inf.ontop.model.type.DBTermType dbTermType) - Overrides:
createFloorFunctionSymbolin classit.unibz.inf.ontop.model.term.functionsymbol.db.impl.AbstractSQLDBFunctionSymbolFactory
-
createRoundFunctionSymbol
protected Optional<it.unibz.inf.ontop.model.term.functionsymbol.db.DBFunctionSymbol> createRoundFunctionSymbol(it.unibz.inf.ontop.model.type.DBTermType dbTermType) - Overrides:
createRoundFunctionSymbolin classit.unibz.inf.ontop.model.term.functionsymbol.db.impl.AbstractSQLDBFunctionSymbolFactory
-
serializeDateTimeNorm
protected String serializeDateTimeNorm(it.unibz.inf.ontop.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) Asks the timezone to be included- Specified by:
serializeDateTimeNormin classit.unibz.inf.ontop.model.term.functionsymbol.db.impl.AbstractSQLDBFunctionSymbolFactory
-
createDBAvg
protected it.unibz.inf.ontop.model.term.functionsymbol.db.DBFunctionSymbol createDBAvg(it.unibz.inf.ontop.model.type.DBTermType inputType, boolean isDistinct) - Overrides:
createDBAvgin classit.unibz.inf.ontop.model.term.functionsymbol.db.impl.AbstractSQLDBFunctionSymbolFactory
-
getUUIDNameInDialect
- Specified by:
getUUIDNameInDialectin classit.unibz.inf.ontop.model.term.functionsymbol.db.impl.AbstractSQLDBFunctionSymbolFactory
-
getDBRegexpMatches2
public it.unibz.inf.ontop.model.term.functionsymbol.db.DBBooleanFunctionSymbol getDBRegexpMatches2()- Specified by:
getDBRegexpMatches2in interfaceit.unibz.inf.ontop.model.term.functionsymbol.db.DBFunctionSymbolFactory- Overrides:
getDBRegexpMatches2in classit.unibz.inf.ontop.model.term.functionsymbol.db.impl.AbstractSQLDBFunctionSymbolFactory
-
getDBRegexpMatches3
public it.unibz.inf.ontop.model.term.functionsymbol.db.DBBooleanFunctionSymbol getDBRegexpMatches3()- Specified by:
getDBRegexpMatches3in interfaceit.unibz.inf.ontop.model.term.functionsymbol.db.DBFunctionSymbolFactory- Overrides:
getDBRegexpMatches3in classit.unibz.inf.ontop.model.term.functionsymbol.db.impl.AbstractSQLDBFunctionSymbolFactory
-
createDBGroupConcat
protected it.unibz.inf.ontop.model.term.functionsymbol.db.DBFunctionSymbol createDBGroupConcat(it.unibz.inf.ontop.model.type.DBTermType dbStringType, boolean isDistinct) - Overrides:
createDBGroupConcatin classit.unibz.inf.ontop.model.term.functionsymbol.db.impl.AbstractDBFunctionSymbolFactory
-
createEncodeURLorIRI
protected it.unibz.inf.ontop.model.term.functionsymbol.db.DBFunctionSymbol createEncodeURLorIRI(boolean preserveInternationalChars) - Overrides:
createEncodeURLorIRIin classit.unibz.inf.ontop.model.term.functionsymbol.db.impl.AbstractSQLDBFunctionSymbolFactory
-