Package org.teiid.translator.solr
Class SolrQueryExecution
- java.lang.Object
-
- org.teiid.translator.solr.SolrQueryExecution
-
- All Implemented Interfaces:
Execution
,ResultSetExecution
public class SolrQueryExecution extends Object implements ResultSetExecution
-
-
Constructor Summary
Constructors Constructor Description SolrQueryExecution(SolrExecutionFactory ef, Command command, ExecutionContext executionContext, RuntimeMetadata metadata, SolrConnection connection)
-
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.List<?>
next()
Retrieves the next row of the resultset.void
nextBatch()
void
walkDocuments(org.teiid.translator.solr.SolrQueryExecution.SolrDocumentCallback callback)
-
-
-
Constructor Detail
-
SolrQueryExecution
public SolrQueryExecution(SolrExecutionFactory ef, Command command, ExecutionContext executionContext, RuntimeMetadata metadata, SolrConnection connection)
-
-
Method Detail
-
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
-
nextBatch
public void nextBatch() throws TranslatorException
- Throws:
TranslatorException
-
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
-
walkDocuments
public void walkDocuments(org.teiid.translator.solr.SolrQueryExecution.SolrDocumentCallback callback) throws TranslatorException
- Throws:
TranslatorException
-
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
-
-