Package com.exasol.adapter.request
Class RefreshRequest
- java.lang.Object
-
- com.exasol.adapter.request.AbstractAdapterRequest
-
- com.exasol.adapter.request.RefreshRequest
-
- All Implemented Interfaces:
AdapterRequest
public class RefreshRequest extends AbstractAdapterRequest
This class represents a request that tells a Virtual Schema Adapter to present the current metadata
-
-
Constructor Summary
Constructors Constructor Description RefreshRequest(SchemaMetadataInfo schemaMetadataInfo)
Create a new request of typeRefreshRequest
for the whole Virtual SchemaRefreshRequest(SchemaMetadataInfo schemaMetadataInfo, List<String> tables)
Create a new request of typeRefreshRequest
for selected tables
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
executeWith(AdapterCallExecutor adapterCallExecutor, com.exasol.ExaMetadata metadata)
Execute an adapter call.List<String>
getTables()
Get the tables for which the metadata should be presentedboolean
refreshesOnlySelectedTables()
-
Methods inherited from class com.exasol.adapter.request.AbstractAdapterRequest
getSchemaMetadataInfo, getType, getVirtualSchemaName, toString
-
-
-
-
Constructor Detail
-
RefreshRequest
public RefreshRequest(SchemaMetadataInfo schemaMetadataInfo)
Create a new request of typeRefreshRequest
for the whole Virtual Schema- Parameters:
schemaMetadataInfo
- schema metadata
-
RefreshRequest
public RefreshRequest(SchemaMetadataInfo schemaMetadataInfo, List<String> tables)
Create a new request of typeRefreshRequest
for selected tables- Parameters:
schemaMetadataInfo
- schema metadatatables
- tables for which the metadata should be refreshed
-
-
Method Detail
-
getTables
public List<String> getTables()
Get the tables for which the metadata should be presented- Returns:
- tables
-
refreshesOnlySelectedTables
public boolean refreshesOnlySelectedTables()
- Returns:
true
if the refresh request is restricted to tables
-
executeWith
public String executeWith(AdapterCallExecutor adapterCallExecutor, com.exasol.ExaMetadata metadata) throws AdapterException
Description copied from interface:AdapterRequest
Execute an adapter call.- Parameters:
adapterCallExecutor
- instance ofAdapterCallExecutor
metadata
- metadata for the context in which the adapter exists- Returns:
- response in a JSON format
- Throws:
AdapterException
- if some problem occurs
-
-