Search in sources :

Example 6 with SpreadsheetSQLVisitor

use of org.teiid.translator.google.visitor.SpreadsheetSQLVisitor in project teiid by teiid.

the class SpreadsheetQueryExecution method execute.

@Override
public void execute() throws TranslatorException {
    SpreadsheetSQLVisitor visitor = new SpreadsheetSQLVisitor(connection.getSpreadsheetInfo());
    visitor.translateSQL(query);
    rowIterator = connection.executeQuery(visitor.getWorksheetTitle(), visitor.getTranslatedSQL(), visitor.getOffsetValue(), visitor.getLimitValue(), executionContext.getBatchSize()).iterator();
}
Also used : SpreadsheetSQLVisitor(org.teiid.translator.google.visitor.SpreadsheetSQLVisitor)

Aggregations

SpreadsheetSQLVisitor (org.teiid.translator.google.visitor.SpreadsheetSQLVisitor)6 Select (org.teiid.language.Select)2 Test (org.junit.Test)1 LanguageBridgeFactory (org.teiid.dqp.internal.datamgr.LanguageBridgeFactory)1 Argument (org.teiid.language.Argument)1 Expression (org.teiid.language.Expression)1 Literal (org.teiid.language.Literal)1