Package com.exasol.adapter.request
Class PushDownRequest
- java.lang.Object
-
- com.exasol.adapter.request.AbstractAdapterRequest
-
- com.exasol.adapter.request.PushDownRequest
-
- All Implemented Interfaces:
AdapterRequest
public class PushDownRequest extends AbstractAdapterRequest
This class represents a request that tells a Virtual Schema Adapter to push a SQL statement down to the external data source
-
-
Constructor Summary
Constructors Constructor Description PushDownRequest(SchemaMetadataInfo schemaMetadataInfo, SqlStatement select, List<TableMetadata> involvedTablesMetadata)Create a new request of typePushDownRequest
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringexecuteWith(AdapterCallExecutor adapterCallExecutor, com.exasol.ExaMetadata metadata)Execute an adapter call.List<TableMetadata>getInvolvedTablesMetadata()Get the metadata for the tables involved in the pushdown operationSqlStatementgetSelect()Get theSELECTstatement that should be pushed down to the external data source-
Methods inherited from class com.exasol.adapter.request.AbstractAdapterRequest
getSchemaMetadataInfo, getType, getVirtualSchemaName, toString
-
-
-
-
Constructor Detail
-
PushDownRequest
public PushDownRequest(SchemaMetadataInfo schemaMetadataInfo, SqlStatement select, List<TableMetadata> involvedTablesMetadata)
Create a new request of typePushDownRequest- Parameters:
schemaMetadataInfo- schema metadataselect- SQL statement to be pushed down to the external data sourceinvolvedTablesMetadata- tables involved in the push-down request
-
-
Method Detail
-
getSelect
public SqlStatement getSelect()
Get theSELECTstatement that should be pushed down to the external data source- Returns:
SELECTstatement
-
getInvolvedTablesMetadata
public List<TableMetadata> getInvolvedTablesMetadata()
Get the metadata for the tables involved in the pushdown operation- Returns:
- metadata of involved tables
-
executeWith
public String executeWith(AdapterCallExecutor adapterCallExecutor, com.exasol.ExaMetadata metadata) throws AdapterException
Description copied from interface:AdapterRequestExecute an adapter call.- Parameters:
adapterCallExecutor- instance ofAdapterCallExecutormetadata- metadata for the context in which the adapter exists- Returns:
- response in a JSON format
- Throws:
AdapterException- if some problem occurs
-
-