@Translator(name="google-spreadsheet", description="A translator for Google Spreadsheet") public class SpreadsheetExecutionFactory extends ExecutionFactory<javax.resource.cci.ConnectionFactory,GoogleSpreadsheetConnection>
ExecutionFactory.Format, ExecutionFactory.NullOrder, ExecutionFactory.SupportedJoinCriteria, ExecutionFactory.TransactionSupport| Modifier and Type | Field and Description |
|---|---|
static org.teiid.core.BundleUtil |
UTIL |
DEFAULT_MAX_FROM_GROUPS, DEFAULT_MAX_IN_CRITERIA_SIZE| Constructor and Description |
|---|
SpreadsheetExecutionFactory() |
| Modifier and Type | Method and Description |
|---|---|
ProcedureExecution |
createDirectExecution(List<Argument> arguments,
Command command,
ExecutionContext executionContext,
RuntimeMetadata metadata,
GoogleSpreadsheetConnection connection) |
ProcedureExecution |
createProcedureExecution(Call command,
ExecutionContext executionContext,
RuntimeMetadata metadata,
GoogleSpreadsheetConnection connection) |
ResultSetExecution |
createResultSetExecution(QueryExpression command,
ExecutionContext executionContext,
RuntimeMetadata metadata,
GoogleSpreadsheetConnection connection) |
UpdateExecution |
createUpdateExecution(Command command,
ExecutionContext executionContext,
RuntimeMetadata metadata,
GoogleSpreadsheetConnection connection) |
MetadataProcessor<GoogleSpreadsheetConnection> |
getMetadataProcessor()
Get a MetadataProcessor for the translator to read the metadata.
|
List<String> |
getSupportedFunctions()
Get list of all supported function names.
|
void |
start()
Initialize the connector with supplied configuration
|
boolean |
supportsAggregatesAvg()
Support indicates connector can accept the AVG aggregate function
|
boolean |
supportsAggregatesCount()
Support indicates connector can accept the COUNT aggregate function
|
boolean |
supportsAggregatesMax()
Support indicates connector can accept the MAX aggregate function
|
boolean |
supportsAggregatesMin()
Support indicates connector can accept the MIN aggregate function
|
boolean |
supportsAggregatesSum()
Support indicates connector can accept the SUM aggregate function
|
boolean |
supportsCompareCriteriaEquals()
Support indicates connector accepts criteria of form (element = constant)
|
boolean |
supportsCompareCriteriaOrdered()
Support indicates connector accepts criteria of form (element <=|>= constant)
The query engine will may pushdown queries containing < or > if NOT is also supported. |
boolean |
supportsGroupBy()
Whether the source supports an explicit GROUP BY clause
|
boolean |
supportsHaving()
Whether the source supports the HAVING clause
|
boolean |
supportsInCriteria()
Support indicates connector accepts criteria of form (element IN set)
|
boolean |
supportsLikeCriteria()
Support indicates connector accepts criteria of form (element LIKE constant)
|
boolean |
supportsNotCriteria()
Support indicates connector accepts logical criteria NOT
|
boolean |
supportsOrCriteria()
Support indicates connector accepts logical criteria connected by OR
|
boolean |
supportsOrderBy()
Support indicates connector accepts ORDER BY clause, including multiple elements
and ascending and descending sorts.
|
boolean |
supportsRowLimit()
Gets whether the connector can limit the number of rows returned by a query.
|
boolean |
supportsRowOffset()
Gets whether the connector supports a SQL clause (similar to the LIMIT with an offset) that can return
result sets that start in the middle of the resulting rows returned by a query
|
addPushDownFunction, areLobsUsableAfterClose, closeConnection, createExecution, getCacheDirective, getCollationLocale, getConnection, getConnection, getDefaultNullOrder, getDirectQueryProcedureName, getExcludedCommonTableExpressionName, getInstance, getLanguageFactory, getMaxDependentInPredicates, getMaxFromGroups, getMaxInCriteriaSize, getMetadata, getNativeQueryProcedureName, getPushDownFunctions, getRequiredLikeEscape, getSupportedJoinCriteria, getTransactionSupport, getTypeFacility, initCapabilities, isCopyLobs, isForkable, isImmutable, isSourceRequired, isSourceRequiredForCapabilities, isSourceRequiredForMetadata, isThreadBound, requiresCriteria, returnsSingleUpdateCount, setCollationLocale, setCopyLobs, setDirectQueryProcedureName, setExcludedCommonTableExpressionName, setImmutable, setMaxDependentInPredicates, setMaxInCriteriaSize, setNativeQueryProcedureName, setRequiresCriteria, setSourceRequired, setSourceRequiredForMetadata, setSupportedJoinCriteria, setSupportsDirectQueryProcedure, setSupportsFullOuterJoins, setSupportsInnerJoins, setSupportsNativeQueries, setSupportsOrderBy, setSupportsOuterJoins, setSupportsSelectDistinct, setThreadBound, setTransactionSupport, supportsAdvancedOlapOperations, supportsAggregatesCountStar, supportsAggregatesDistinct, supportsAggregatesEnhancedNumeric, supportsAliasedTable, supportsArrayAgg, supportsArrayType, supportsBatchedUpdates, supportsBulkUpdate, supportsCommonTableExpressions, supportsCompareCriteriaOrderedExclusive, supportsConvert, supportsCorrelatedSubqueries, supportsCorrelatedSubqueryLimit, supportsDependentJoins, supportsDirectQueryProcedure, supportsElementaryOlapOperations, supportsExcept, supportsExistsCriteria, supportsFormatLiteral, supportsFullDependentJoins, supportsFullOuterJoins, supportsFunctionsInGroupBy, supportsGroupByMultipleDistinctAggregates, supportsGroupByRollup, supportsInCriteriaSubquery, supportsInlineViews, supportsInnerJoins, supportsInsertWithQueryExpression, supportsIntersect, supportsIsNullCriteria, supportsLateralJoin, supportsLateralJoinCondition, supportsLikeCriteriaEscapeCharacter, supportsLikeRegex, supportsNativeQueries, supportsOnlyCorrelatedSubqueries, supportsOnlyFormatLiterals, supportsOnlyLiteralComparison, supportsOnlySingleTableGroupBy, supportsOrderByNullOrdering, supportsOrderByUnrelated, supportsOrderByWithExtendedGrouping, supportsOuterJoins, supportsPartialFiltering, supportsProcedureTable, supportsQuantifiedCompareCriteriaAll, supportsQuantifiedCompareCriteriaSome, supportsRecursiveCommonTableExpressions, supportsScalarSubqueries, supportsScalarSubqueryProjection, supportsSearchedCaseExpressions, supportsSelectDistinct, supportsSelectExpression, supportsSelectExpressionArrayType, supportsSelectWithoutFrom, supportsSelfJoins, supportsSetQueryOrderBy, supportsSimilarTo, supportsStringAgg, supportsSubqueryCommonTableExpressions, supportsSubqueryInOn, supportsUnions, supportsUpsert, supportsWindowDistinctAggregates, supportsWindowOrderByWithAggregates, useAnsiJoin, useBindingsForDependentJoinpublic void start()
throws TranslatorException
ExecutionFactorystart in class ExecutionFactory<javax.resource.cci.ConnectionFactory,GoogleSpreadsheetConnection>TranslatorExceptionpublic ResultSetExecution createResultSetExecution(QueryExpression command, ExecutionContext executionContext, RuntimeMetadata metadata, GoogleSpreadsheetConnection connection) throws TranslatorException
createResultSetExecution in class ExecutionFactory<javax.resource.cci.ConnectionFactory,GoogleSpreadsheetConnection>TranslatorExceptionpublic UpdateExecution createUpdateExecution(Command command, ExecutionContext executionContext, RuntimeMetadata metadata, GoogleSpreadsheetConnection connection) throws TranslatorException
createUpdateExecution in class ExecutionFactory<javax.resource.cci.ConnectionFactory,GoogleSpreadsheetConnection>TranslatorExceptionpublic ProcedureExecution createDirectExecution(List<Argument> arguments, Command command, ExecutionContext executionContext, RuntimeMetadata metadata, GoogleSpreadsheetConnection connection) throws TranslatorException
createDirectExecution in class ExecutionFactory<javax.resource.cci.ConnectionFactory,GoogleSpreadsheetConnection>TranslatorExceptionpublic ProcedureExecution createProcedureExecution(Call command, ExecutionContext executionContext, RuntimeMetadata metadata, GoogleSpreadsheetConnection connection) throws TranslatorException
createProcedureExecution in class ExecutionFactory<javax.resource.cci.ConnectionFactory,GoogleSpreadsheetConnection>TranslatorExceptionpublic MetadataProcessor<GoogleSpreadsheetConnection> getMetadataProcessor()
ExecutionFactorygetMetadataProcessor in class ExecutionFactory<javax.resource.cci.ConnectionFactory,GoogleSpreadsheetConnection>public boolean supportsCompareCriteriaEquals()
ExecutionFactorysupportsCompareCriteriaEquals in class ExecutionFactory<javax.resource.cci.ConnectionFactory,GoogleSpreadsheetConnection>public boolean supportsInCriteria()
ExecutionFactorysupportsInCriteria in class ExecutionFactory<javax.resource.cci.ConnectionFactory,GoogleSpreadsheetConnection>public boolean supportsLikeCriteria()
ExecutionFactorysupportsLikeCriteria in class ExecutionFactory<javax.resource.cci.ConnectionFactory,GoogleSpreadsheetConnection>public boolean supportsOrCriteria()
ExecutionFactorysupportsOrCriteria in class ExecutionFactory<javax.resource.cci.ConnectionFactory,GoogleSpreadsheetConnection>public boolean supportsNotCriteria()
ExecutionFactorysupportsNotCriteria in class ExecutionFactory<javax.resource.cci.ConnectionFactory,GoogleSpreadsheetConnection>public boolean supportsAggregatesCount()
ExecutionFactorysupportsAggregatesCount in class ExecutionFactory<javax.resource.cci.ConnectionFactory,GoogleSpreadsheetConnection>public boolean supportsAggregatesMax()
ExecutionFactorysupportsAggregatesMax in class ExecutionFactory<javax.resource.cci.ConnectionFactory,GoogleSpreadsheetConnection>public boolean supportsAggregatesMin()
ExecutionFactorysupportsAggregatesMin in class ExecutionFactory<javax.resource.cci.ConnectionFactory,GoogleSpreadsheetConnection>public boolean supportsAggregatesSum()
ExecutionFactorysupportsAggregatesSum in class ExecutionFactory<javax.resource.cci.ConnectionFactory,GoogleSpreadsheetConnection>public boolean supportsAggregatesAvg()
ExecutionFactorysupportsAggregatesAvg in class ExecutionFactory<javax.resource.cci.ConnectionFactory,GoogleSpreadsheetConnection>public boolean supportsGroupBy()
ExecutionFactorysupportsGroupBy in class ExecutionFactory<javax.resource.cci.ConnectionFactory,GoogleSpreadsheetConnection>public boolean supportsOrderBy()
ExecutionFactorysupportsOrderBy in class ExecutionFactory<javax.resource.cci.ConnectionFactory,GoogleSpreadsheetConnection>public boolean supportsHaving()
ExecutionFactorysupportsHaving in class ExecutionFactory<javax.resource.cci.ConnectionFactory,GoogleSpreadsheetConnection>public boolean supportsCompareCriteriaOrdered()
ExecutionFactorysupportsCompareCriteriaOrdered in class ExecutionFactory<javax.resource.cci.ConnectionFactory,GoogleSpreadsheetConnection>public boolean supportsRowLimit()
ExecutionFactorysupportsRowLimit in class ExecutionFactory<javax.resource.cci.ConnectionFactory,GoogleSpreadsheetConnection>public boolean supportsRowOffset()
ExecutionFactorysupportsRowOffset in class ExecutionFactory<javax.resource.cci.ConnectionFactory,GoogleSpreadsheetConnection>public List<String> getSupportedFunctions()
ExecutionFactorygetSupportedFunctions in class ExecutionFactory<javax.resource.cci.ConnectionFactory,GoogleSpreadsheetConnection>for a listing of system pushdown functions. Note that
not all system functions are listed as some functions will use a common name
such as CONCAT vs. the || operator, and other functions will be rewritten and
not pushed down, such as SPACE.
Note: User defined functions should be specified fully qualified.Copyright © 2017 JBoss by Red Hat. All rights reserved.