Package org.teiid.translator.simpledb
Class SimpleDBQueryExecution
- java.lang.Object
-
- org.teiid.translator.simpledb.SimpleDBQueryExecution
-
- All Implemented Interfaces:
Execution,ResultSetExecution
- Direct Known Subclasses:
SimpleDBDirectQueryExecution
public class SimpleDBQueryExecution extends Object implements ResultSetExecution
-
-
Field Summary
Fields Modifier and Type Field Description protected SimpleDBConnectionconnectionprotected Iterator<com.amazonaws.services.simpledb.model.Item>listIterator
-
Constructor Summary
Constructors Constructor Description SimpleDBQueryExecution(Select command, ExecutionContext executionContext, RuntimeMetadata metadata, 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 SimpleDBConnection connection
-
listIterator
protected Iterator<com.amazonaws.services.simpledb.model.Item> listIterator
-
-
Constructor Detail
-
SimpleDBQueryExecution
public SimpleDBQueryExecution(Select command, ExecutionContext executionContext, RuntimeMetadata metadata, SimpleDBConnection connection) throws TranslatorException
- Throws:
TranslatorException
-
-
Method Detail
-
execute
public void execute() throws TranslatorException- Specified by:
executein interfaceExecution- Throws:
TranslatorException
-
getSQL
protected String getSQL()
-
executeDirect
protected void executeDirect(String sql, String next) throws TranslatorException
- Throws:
TranslatorException
-
cancel
public void cancel() throws TranslatorException- Specified by:
cancelin interfaceExecution- Throws:
TranslatorException
-
next
public List<?> next() throws TranslatorException, DataNotAvailableException
- Specified by:
nextin interfaceResultSetExecution- Throws:
TranslatorExceptionDataNotAvailableException
-
buildRow
protected List<?> buildRow(com.amazonaws.services.simpledb.model.Item item) throws TranslatorException
- Throws:
TranslatorException
-
-