Teiid 8.3.0.Final

org.teiid.translator.yahoo
Class YahooExecutionFactory

java.lang.Object
  extended by org.teiid.translator.ExecutionFactory<Object,Object>
      extended by org.teiid.translator.yahoo.YahooExecutionFactory

@Translator(name="yahoo",
            description="A translator for testing to obtain stock quotes from Yahoo web site")
public class YahooExecutionFactory
extends ExecutionFactory<Object,Object>


Nested Class Summary
 
Nested classes/interfaces inherited from class org.teiid.translator.ExecutionFactory
ExecutionFactory.Format, ExecutionFactory.NullOrder, ExecutionFactory.SupportedJoinCriteria
 
Field Summary
static int YAHOO_MAX_SET_SIZE
           
 
Fields inherited from class org.teiid.translator.ExecutionFactory
DEFAULT_MAX_FROM_GROUPS, DEFAULT_MAX_IN_CRITERIA_SIZE
 
Constructor Summary
YahooExecutionFactory()
           
 
Method Summary
 ResultSetExecution createResultSetExecution(QueryExpression command, ExecutionContext executionContext, RuntimeMetadata metadata, Object connectionFactory)
           
 void getMetadata(MetadataFactory metadataFactory, Object connection)
          Implement to provide metadata to the metadata for use by the engine.
 boolean isSourceRequired()
          Flag that indicates if a underlying source connection required for this execution factory to work
 void start()
          Initialize the connector with supplied configuration
 boolean supportsCompareCriteriaEquals()
          Support indicates connector accepts criteria of form (element = constant)
 boolean supportsInCriteria()
          Support indicates connector accepts criteria of form (element IN set)
 boolean supportsOnlyLiteralComparison()
           
 
Methods inherited from class org.teiid.translator.ExecutionFactory
addPushDownFunction, areLobsUsableAfterClose, closeConnection, createDirectExecution, createExecution, createProcedureExecution, createUpdateExecution, getCacheDirective, getConnection, getConnection, getDefaultNullOrder, getInstance, getLanguageFactory, getMaxDependentInPredicates, getMaxFromGroups, getMaxInCriteriaSize, getNativeQueryProcedureName, getPushDownFunctions, getSupportedFunctions, getSupportedJoinCriteria, getTypeFacility, isCopyLobs, isForkable, isImmutable, isSourceRequiredForMetadata, requiresCriteria, setCopyLobs, setImmutable, setMaxDependentInPredicates, setMaxInCriteriaSize, setNativeQueryProcedureName, setRequiresCriteria, setSourceRequired, setSourceRequiredForMetadata, setSupportedJoinCriteria, setSupportsFullOuterJoins, setSupportsInnerJoins, setSupportsNativeQueries, setSupportsOrderBy, setSupportsOuterJoins, setSupportsSelectDistinct, supportsAdvancedOlapOperations, supportsAggregatesAvg, supportsAggregatesCount, supportsAggregatesCountStar, supportsAggregatesDistinct, supportsAggregatesEnhancedNumeric, supportsAggregatesMax, supportsAggregatesMin, supportsAggregatesSum, supportsAliasedTable, supportsArrayAgg, supportsArrayType, supportsBatchedUpdates, supportsBulkUpdate, supportsCommonTableExpressions, supportsCompareCriteriaOrdered, supportsConvert, supportsCorrelatedSubqueries, supportsDependentJoins, supportsElementaryOlapOperations, supportsExcept, supportsExistsCriteria, supportsFormatLiteral, supportsFullOuterJoins, supportsFunctionsInGroupBy, supportsGroupBy, supportsHaving, supportsInCriteriaSubquery, supportsInlineViews, supportsInnerJoins, supportsInsertWithQueryExpression, supportsIntersect, supportsIsNullCriteria, supportsLikeCriteria, supportsLikeCriteriaEscapeCharacter, supportsLikeRegex, supportsNativeQueries, supportsNotCriteria, supportsOnlyCorrelatedSubqueries, supportsOnlyFormatLiterals, supportsOnlySingleTableGroupBy, supportsOrCriteria, supportsOrderBy, supportsOrderByNullOrdering, supportsOrderByUnrelated, supportsOuterJoins, supportsQuantifiedCompareCriteriaAll, supportsQuantifiedCompareCriteriaSome, supportsRowLimit, supportsRowOffset, supportsScalarSubqueries, supportsSearchedCaseExpressions, supportsSelectDistinct, supportsSelectExpression, supportsSelfJoins, supportsSetQueryOrderBy, supportsSimilarTo, supportsSubqueryInOn, supportsUnions, supportsWindowDistinctAggregates, supportsWindowOrderByWithAggregates, useAnsiJoin
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

YAHOO_MAX_SET_SIZE

public static final int YAHOO_MAX_SET_SIZE
See Also:
Constant Field Values
Constructor Detail

YahooExecutionFactory

public YahooExecutionFactory()
Method Detail

start

public void start()
           throws TranslatorException
Description copied from class: ExecutionFactory
Initialize the connector with supplied configuration

Overrides:
start in class ExecutionFactory<Object,Object>
Throws:
TranslatorException

createResultSetExecution

public ResultSetExecution createResultSetExecution(QueryExpression command,
                                                   ExecutionContext executionContext,
                                                   RuntimeMetadata metadata,
                                                   Object connectionFactory)
                                            throws TranslatorException
Overrides:
createResultSetExecution in class ExecutionFactory<Object,Object>
Throws:
TranslatorException

supportsCompareCriteriaEquals

public boolean supportsCompareCriteriaEquals()
Description copied from class: ExecutionFactory
Support indicates connector accepts criteria of form (element = constant)

Overrides:
supportsCompareCriteriaEquals in class ExecutionFactory<Object,Object>

supportsInCriteria

public boolean supportsInCriteria()
Description copied from class: ExecutionFactory
Support indicates connector accepts criteria of form (element IN set)

Overrides:
supportsInCriteria in class ExecutionFactory<Object,Object>

isSourceRequired

public boolean isSourceRequired()
Description copied from class: ExecutionFactory
Flag that indicates if a underlying source connection required for this execution factory to work

Overrides:
isSourceRequired in class ExecutionFactory<Object,Object>
Returns:

getMetadata

public void getMetadata(MetadataFactory metadataFactory,
                        Object connection)
                 throws TranslatorException
Description copied from class: ExecutionFactory
Implement to provide metadata to the metadata for use by the engine. This is the primary method of creating metadata for dynamic VDBs.

Overrides:
getMetadata in class ExecutionFactory<Object,Object>
connection - may be null if the source is not required
Throws:
TranslatorException - to indicate a recoverable error, otherwise a RuntimeException
See Also:
ExecutionFactory.isSourceRequiredForMetadata()

supportsOnlyLiteralComparison

public boolean supportsOnlyLiteralComparison()
Overrides:
supportsOnlyLiteralComparison in class ExecutionFactory<Object,Object>
Returns:
true if only Literal comparisons (equality, ordered, like, etc.) are supported for non-join conditions.

Teiid 8.3.0.Final

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.