Package io.squashql.query.database
Class SnowflakeQueryEngine
java.lang.Object
io.squashql.query.database.AQueryEngine<T>
io.squashql.jdbc.JdbcQueryEngine<SnowflakeDatastore>
io.squashql.query.database.SnowflakeQueryEngine
- All Implemented Interfaces:
QueryEngine<SnowflakeDatastore>
-
Nested Class Summary
Nested classes/interfaces inherited from class io.squashql.jdbc.JdbcQueryEngine
JdbcQueryEngine.ThrowingFunction<T extends Object,R extends Object> -
Field Summary
FieldsModifier and TypeFieldDescriptionhttps://docs.snowflake.com/en/sql-reference/functions-aggregation.html.Fields inherited from class io.squashql.query.database.AQueryEngine
datastoreFields inherited from interface io.squashql.query.database.QueryEngine
GRAND_TOTAL, TOTAL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ResultSetReaderstatic Lists.DoubleListparseVectorString(String vectorString) Parses a string representation of a vector and returns a list of doubles.queryRewriter(DatabaseQuery query) protected BiFunction<ResultSetMetaData,Integer, Class<?>> Methods inherited from class io.squashql.jdbc.JdbcQueryEngine
createHeaderList, executeQuery, executeRawSql, getColumnTypes, getTypeValue, retrieveAggregatesMethods inherited from class io.squashql.query.database.AQueryEngine
createSqlStatement, datastore, execute, transformToColumnFormat, transformToRowFormat
-
Field Details
-
SUPPORTED_AGGREGATION_FUNCTIONS
https://docs.snowflake.com/en/sql-reference/functions-aggregation.html. NOTE there is more but only a subset is proposed here.
-
-
Constructor Details
-
SnowflakeQueryEngine
-
-
Method Details
-
typeToClassConverter
- Specified by:
typeToClassConverterin classJdbcQueryEngine<SnowflakeDatastore>
-
createResultSetReader
- Overrides:
createResultSetReaderin classJdbcQueryEngine<SnowflakeDatastore>
-
parseVectorString
Parses a string representation of a vector and returns a list of doubles.- Parameters:
vectorString- The string representation of the vector.- Returns:
- A list of doubles representing the vector.
-
supportedAggregationFunctions
-
queryRewriter
-