Package org.teiid.translator.cassandra
Class CassandraQueryExecution
- java.lang.Object
-
- org.teiid.translator.cassandra.CassandraQueryExecution
-
- All Implemented Interfaces:
Execution
,ResultSetExecution
- Direct Known Subclasses:
CassandraDirectQueryExecution
public class CassandraQueryExecution extends Object implements ResultSetExecution
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
returnsArray
-
Constructor Summary
Constructors Constructor Description CassandraQueryExecution(Command query, CassandraConnection connection, ExecutionContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cancel()
Cancels the execution abnormally.void
close()
Terminates the execution normally.void
execute()
Execute the associated command.protected void
execute(String cql)
List<?>
next()
Retrieves the next row of the resultset.
-
-
-
Constructor Detail
-
CassandraQueryExecution
public CassandraQueryExecution(Command query, CassandraConnection connection, ExecutionContext context)
-
-
Method Detail
-
close
public void close()
Description copied from interface:Execution
Terminates the execution normally.
-
cancel
public void cancel() throws TranslatorException
Description copied from interface:Execution
Cancels the execution abnormally. This will happen via a different thread from the one performing the execution, so should be expected to happen in a multi-threaded scenario.- Specified by:
cancel
in interfaceExecution
- Throws:
TranslatorException
-
execute
public void execute() throws TranslatorException
Description copied from interface:Execution
Execute the associated command. Results will be retrieved through a specific sub-interface call.- Specified by:
execute
in interfaceExecution
- Throws:
TranslatorException
-
execute
protected void execute(String cql)
-
next
public List<?> next() throws TranslatorException, DataNotAvailableException
Description copied from interface:ResultSetExecution
Retrieves the next row of the resultset.- Specified by:
next
in interfaceResultSetExecution
- Returns:
- the next row or null indicating that there are no more results
- Throws:
TranslatorException
DataNotAvailableException
-
-