Skip to content

Commit

Permalink
[FLINK-12713][table] deprecate descriptor, validator, and factory of …
Browse files Browse the repository at this point in the history
…ExternalCatalog

This closes apache#8601.
  • Loading branch information
bowenli86 committed Jun 3, 2019
1 parent 7682248 commit 61d8916
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public class TableFactoryUtil {
/**
* Returns an external catalog.
*/
@Deprecated
public static ExternalCatalog findAndCreateExternalCatalog(Descriptor descriptor) {
Map<String, String> properties = descriptor.toProperties();
return TableFactoryService
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@

package org.apache.flink.table.descriptors;

import org.apache.flink.annotation.PublicEvolving;

import java.util.Map;

import static org.apache.flink.table.descriptors.ExternalCatalogDescriptorValidator.CATALOG_PROPERTY_VERSION;
import static org.apache.flink.table.descriptors.ExternalCatalogDescriptorValidator.CATALOG_TYPE;

/**
* Describes an external catalog of tables, views, and functions.
*
* @deprecated use {@link CatalogDescriptor} instead.
*/
@PublicEvolving
@Deprecated
public abstract class ExternalCatalogDescriptor extends DescriptorBase implements Descriptor {

private final String type;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@

/**
* Validator for {@link ExternalCatalogDescriptor}.
*
* @deprecated use {@link CatalogDescriptorValidator} instead.
*/
@Deprecated
@Internal
public abstract class ExternalCatalogDescriptorValidator implements DescriptorValidator {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,17 @@

package org.apache.flink.table.factories;

import org.apache.flink.annotation.PublicEvolving;
import org.apache.flink.table.catalog.ExternalCatalog;

import java.util.Map;

/**
* A factory to create configured external catalog instances based on string-based properties. See
* also {@link TableFactory} for more information.
*
* @deprecated use {@link CatalogFactory} instead.
*/
@PublicEvolving
@Deprecated
public interface ExternalCatalogFactory extends TableFactory {

/**
Expand Down

0 comments on commit 61d8916

Please sign in to comment.