Package org.teiid.translator.simpledb
Class SimpleDBQueryExecution
- java.lang.Object
-
- org.teiid.translator.simpledb.SimpleDBQueryExecution
-
- All Implemented Interfaces:
org.teiid.translator.Execution,org.teiid.translator.ResultSetExecution
- Direct Known Subclasses:
SimpleDBDirectQueryExecution
public class SimpleDBQueryExecution extends Object implements org.teiid.translator.ResultSetExecution
-
-
Field Summary
Fields Modifier and Type Field Description protected org.teiid.translator.simpledb.api.SimpleDBConnectionconnectionprotected Iterator<com.amazonaws.services.simpledb.model.Item>listIterator
-
Constructor Summary
Constructors Constructor Description SimpleDBQueryExecution(org.teiid.language.Select command, org.teiid.translator.ExecutionContext executionContext, org.teiid.metadata.RuntimeMetadata metadata, org.teiid.translator.simpledb.api.SimpleDBConnection connection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<?>buildRow(com.amazonaws.services.simpledb.model.Item item)voidcancel()voidclose()protected Map<String,List<String>>createAttributeMap(List<com.amazonaws.services.simpledb.model.Attribute> attributes)voidexecute()protected voidexecuteDirect(String sql, String next)protected StringgetSQL()List<?>next()
-
-
-
Field Detail
-
connection
protected org.teiid.translator.simpledb.api.SimpleDBConnection connection
-
listIterator
protected Iterator<com.amazonaws.services.simpledb.model.Item> listIterator
-
-
Constructor Detail
-
SimpleDBQueryExecution
public SimpleDBQueryExecution(org.teiid.language.Select command, org.teiid.translator.ExecutionContext executionContext, org.teiid.metadata.RuntimeMetadata metadata, org.teiid.translator.simpledb.api.SimpleDBConnection connection) throws org.teiid.translator.TranslatorException- Throws:
org.teiid.translator.TranslatorException
-
-
Method Detail
-
execute
public void execute() throws org.teiid.translator.TranslatorException- Specified by:
executein interfaceorg.teiid.translator.Execution- Throws:
org.teiid.translator.TranslatorException
-
getSQL
protected String getSQL()
-
executeDirect
protected void executeDirect(String sql, String next) throws org.teiid.translator.TranslatorException
- Throws:
org.teiid.translator.TranslatorException
-
close
public void close()
- Specified by:
closein interfaceorg.teiid.translator.Execution
-
cancel
public void cancel() throws org.teiid.translator.TranslatorException- Specified by:
cancelin interfaceorg.teiid.translator.Execution- Throws:
org.teiid.translator.TranslatorException
-
next
public List<?> next() throws org.teiid.translator.TranslatorException, org.teiid.translator.DataNotAvailableException
- Specified by:
nextin interfaceorg.teiid.translator.ResultSetExecution- Throws:
org.teiid.translator.TranslatorExceptionorg.teiid.translator.DataNotAvailableException
-
buildRow
protected List<?> buildRow(com.amazonaws.services.simpledb.model.Item item) throws org.teiid.translator.TranslatorException
- Throws:
org.teiid.translator.TranslatorException
-
-