Class FlinkAdminApiImpl
java.lang.Object
com.here.platform.data.client.flink.javadsl.FlinkAdminApiImpl
- All Implemented Interfaces:
FlinkAdminApi
-
Constructor Summary
ConstructorsConstructorDescriptionFlinkAdminApiImpl(Settings settings, scala.Function0<DataClientApi> toCreateDataClient) -
Method Summary
Modifier and TypeMethodDescriptioncheckIfCatalogExists(HRN hrn) Convenient check if an catalog identified by hrn existsConvenient check if a subscription identified by hrn existscreateCatalog(WritableCatalogConfiguration configuration) Creates new catalog.voiddeleteCatalog(HRN hrn) Delete a catalog.voiddeleteLayer(HRN hrn, String layer) Delete a layer.getConfiguration(HRN hrn) Get configuration of a catalog.Gets the configuration of the subscription associated with the HRN.Return list of catalog HRNsorg.apache.flink.api.connector.source.Source<CatalogConfiguration,? extends org.apache.flink.api.connector.source.SourceSplit, ?> listCatalogs(ListCatalogsParams params) Return list of catalog configurations that match the given filterorg.apache.flink.api.connector.source.Source<SubscriptionConfiguration,? extends org.apache.flink.api.connector.source.SourceSplit, ?> listSubscriptions(OptionalInt limit) Return list of all subscriptions that your account has access tosubscribe(WritableSubscriptionConfiguration configuration) Creates a subscription between source catalog/layer and target catalog/layer.voidunsubscribe(HRN hrn) Deletes a subscription associated with the HRN.voidupdateConfiguration(WritableCatalogConfiguration configuration) Update configuration of a catalog.
-
Constructor Details
-
FlinkAdminApiImpl
-
-
Method Details
-
checkIfCatalogExists
Description copied from interface:FlinkAdminApiConvenient check if an catalog identified by hrn exists- Specified by:
checkIfCatalogExistsin interfaceFlinkAdminApi- Parameters:
hrn- catalog identifier- Returns:
- true if catalog exists, false otherwise
-
checkIfSubscriptionExists
Description copied from interface:FlinkAdminApiConvenient check if a subscription identified by hrn exists- Specified by:
checkIfSubscriptionExistsin interfaceFlinkAdminApi- Parameters:
hrn- subscription identifier- Returns:
- true if subscription exists, false otherwise
-
createCatalog
Description copied from interface:FlinkAdminApiCreates new catalog.- Specified by:
createCatalogin interfaceFlinkAdminApi- Parameters:
configuration- The configuration of the catalog.- Returns:
- The hrn of created catalog
-
deleteCatalog
Description copied from interface:FlinkAdminApiDelete a catalog.Deletes a catalog including its configuration.
- Specified by:
deleteCatalogin interfaceFlinkAdminApi- Parameters:
hrn- The hrn of the catalog that should be deleted.
-
deleteLayer
Description copied from interface:FlinkAdminApiDelete a layer.Deletes a layer from a catalog.
Note: Versioned layers cannot be deleted.
- Specified by:
deleteLayerin interfaceFlinkAdminApi- Parameters:
hrn- The HERE Resource Name (HRN) of the catalog that contains the layer you want to delete.layer- The ID of the layer.
-
getConfiguration
Description copied from interface:FlinkAdminApiGet configuration of a catalog.- Specified by:
getConfigurationin interfaceFlinkAdminApi- Parameters:
hrn- The hrn of the catalog that should be returned.- Returns:
- configuration of a catalog
-
getSubscriptionConfiguration
Description copied from interface:FlinkAdminApiGets the configuration of the subscription associated with the HRN.- Specified by:
getSubscriptionConfigurationin interfaceFlinkAdminApi- Parameters:
hrn- The HERE Resource Name (HRN) of subscription- Returns:
- the configuration of the subscription
-
listCatalogs
Description copied from interface:FlinkAdminApiReturn list of catalog HRNs- Specified by:
listCatalogsin interfaceFlinkAdminApi- Returns:
- list of catalog HRNs
-
listCatalogs
public org.apache.flink.api.connector.source.Source<CatalogConfiguration,? extends org.apache.flink.api.connector.source.SourceSplit, listCatalogs?> (ListCatalogsParams params) Description copied from interface:FlinkAdminApiReturn list of catalog configurations that match the given filter- Specified by:
listCatalogsin interfaceFlinkAdminApi- Returns:
- list of catalog configurations
-
listSubscriptions
public org.apache.flink.api.connector.source.Source<SubscriptionConfiguration,? extends org.apache.flink.api.connector.source.SourceSplit, listSubscriptions?> (OptionalInt limit) Description copied from interface:FlinkAdminApiReturn list of all subscriptions that your account has access to- Specified by:
listSubscriptionsin interfaceFlinkAdminApi- Parameters:
limit- Optional number of maximum elements in subscription list response.- Returns:
- list of subscription configurations
-
subscribe
Description copied from interface:FlinkAdminApiCreates a subscription between source catalog/layer and target catalog/layer.- Specified by:
subscribein interfaceFlinkAdminApi- Parameters:
configuration- The configuration of the subscription.- Returns:
- the HERE Resource Name (HRN) of the newly created subscription
-
unsubscribe
Description copied from interface:FlinkAdminApiDeletes a subscription associated with the HRN.- Specified by:
unsubscribein interfaceFlinkAdminApi- Parameters:
hrn- The HERE Resource Name (HRN) of subscription
-
updateConfiguration
Description copied from interface:FlinkAdminApiUpdate configuration of a catalog.- Specified by:
updateConfigurationin interfaceFlinkAdminApi- Parameters:
configuration- The configuration of the catalog. If set the version property should match current configuration version plus one.
-