Package org.aksw.commons.sql.codec.util
Class SqlCodecUtils
java.lang.Object
org.aksw.commons.sql.codec.util.SqlCodecUtils
Factory methods for typical SqlCodecs
- Author:
- Claus Stadler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SqlCodeccreateSqlCodec(String stringLiteralQuoteChar, String idQuoteChar, String... idDequoteChars) Create an sql codec.static SqlCodecCreate an sql codec that encodes with double quotesstatic SqlCodecstatic SqlCodecCreate an sql codec suitable for use with apache spark - uses backticks for escaping sql identifiers
-
Constructor Details
-
SqlCodecUtils
public SqlCodecUtils()
-
-
Method Details
-
createSqlCodec
public static SqlCodec createSqlCodec(String stringLiteralQuoteChar, String idQuoteChar, String... idDequoteChars) Create an sql codec. The only supported dequote char for string literals is its quote char. Multiple dequote chars are supported for identifiers. -
createSqlCodecDefault
Create an sql codec that encodes with double quotes -
createSqlCodecDoubleQuotes
-
createSqlCodecForApacheSpark
Create an sql codec suitable for use with apache spark - uses backticks for escaping sql identifiers
-