@PublicEvolving public abstract class CatalogDescriptor extends DescriptorBase
Constructor and Description |
---|
CatalogDescriptor(String type,
int propertyVersion)
Constructs a
CatalogDescriptor . |
CatalogDescriptor(String type,
int propertyVersion,
String defaultDatabase)
Constructs a
CatalogDescriptor . |
Modifier and Type | Method and Description |
---|---|
String |
getDefaultDatabase() |
protected abstract Map<String,String> |
toCatalogProperties()
Converts this descriptor into a set of catalog properties.
|
Map<String,String> |
toProperties()
Converts this descriptor into a set of properties.
|
toString
public CatalogDescriptor(String type, int propertyVersion)
CatalogDescriptor
.type
- string that identifies this catalogpropertyVersion
- property version for backwards compatibilitypublic CatalogDescriptor(String type, int propertyVersion, String defaultDatabase)
CatalogDescriptor
.type
- string that identifies this catalogpropertyVersion
- property version for backwards compatibilitydefaultDatabase
- default database of the catalogpublic final Map<String,String> toProperties()
Descriptor
public String getDefaultDatabase()
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.