Package it.unibz.inf.ontop.dbschema.impl
Class SparkSQLQuotedIDFactory
- java.lang.Object
-
- it.unibz.inf.ontop.dbschema.impl.SQLStandardQuotedIDFactory
-
- it.unibz.inf.ontop.dbschema.impl.SparkSQLQuotedIDFactory
-
- All Implemented Interfaces:
QuotedIDFactory
public class SparkSQLQuotedIDFactory extends SQLStandardQuotedIDFactory
Creates QuotedIdentifiers following the rules of SparkSQL: - double and single quotes are not tolerated for schema and attributes definition - you need to use backticks
-
-
Field Summary
-
Fields inherited from class it.unibz.inf.ontop.dbschema.impl.SQLStandardQuotedIDFactory
NO_QUOTATION, QUOTATION_STRING
-
-
Constructor Summary
Constructors Constructor Description SparkSQLQuotedIDFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QuotedIDcreateAttributeID(String s)protected QuotedIDcreateFromString(String s)RelationIDcreateRelationID(String tableId)StringgetIDQuotationString()-
Methods inherited from class it.unibz.inf.ontop.dbschema.impl.SQLStandardQuotedIDFactory
createRelationID
-
-
-
-
Method Detail
-
createAttributeID
public QuotedID createAttributeID(String s)
- Specified by:
createAttributeIDin interfaceQuotedIDFactory- Overrides:
createAttributeIDin classSQLStandardQuotedIDFactory
-
createRelationID
public RelationID createRelationID(String tableId)
- Specified by:
createRelationIDin interfaceQuotedIDFactory- Overrides:
createRelationIDin classSQLStandardQuotedIDFactory
-
createFromString
protected QuotedID createFromString(@Nonnull String s)
- Overrides:
createFromStringin classSQLStandardQuotedIDFactory
-
getIDQuotationString
public String getIDQuotationString()
- Specified by:
getIDQuotationStringin interfaceQuotedIDFactory- Overrides:
getIDQuotationStringin classSQLStandardQuotedIDFactory
-
-