public class TestFileSystemCatalogFactory extends Object implements CatalogFactory
TestFileSystemCatalog
.CatalogFactory.Context
Modifier and Type | Field and Description |
---|---|
static ConfigOption<String> |
DEFAULT_DATABASE |
static ConfigOption<String> |
PATH |
Constructor and Description |
---|
TestFileSystemCatalogFactory() |
Modifier and Type | Method and Description |
---|---|
Catalog |
createCatalog(CatalogFactory.Context context)
Creates and configures a
Catalog using the given context. |
String |
factoryIdentifier()
Returns a unique identifier among same factory interfaces.
|
Set<ConfigOption<?>> |
optionalOptions()
Returns a set of
ConfigOption that an implementation of this factory consumes in
addition to Factory.requiredOptions() . |
Set<ConfigOption<?>> |
requiredOptions()
Returns a set of
ConfigOption that an implementation of this factory requires in
addition to Factory.optionalOptions() . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createCatalog, requiredContext, supportedProperties
public static final ConfigOption<String> PATH
public static final ConfigOption<String> DEFAULT_DATABASE
public String factoryIdentifier()
Factory
For consistency, an identifier should be declared as one lower case word (e.g. kafka
). If multiple factories exist for different versions, a version should be appended
using "-" (e.g. elasticsearch-7
).
factoryIdentifier
in interface CatalogFactory
factoryIdentifier
in interface Factory
public Catalog createCatalog(CatalogFactory.Context context)
CatalogFactory
Catalog
using the given context.
An implementation should perform validation and the discovery of further (nested) factories in this method.
createCatalog
in interface CatalogFactory
public Set<ConfigOption<?>> requiredOptions()
Factory
ConfigOption
that an implementation of this factory requires in
addition to Factory.optionalOptions()
.
See the documentation of Factory
for more information.
requiredOptions
in interface CatalogFactory
requiredOptions
in interface Factory
public Set<ConfigOption<?>> optionalOptions()
Factory
ConfigOption
that an implementation of this factory consumes in
addition to Factory.requiredOptions()
.
See the documentation of Factory
for more information.
optionalOptions
in interface CatalogFactory
optionalOptions
in interface Factory
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.