@Internal public class GenericInMemoryCatalogStoreFactory extends Object implements CatalogStoreFactory
GenericInMemoryCatalogStore
.CatalogStoreFactory.Context
Constructor and Description |
---|
GenericInMemoryCatalogStoreFactory() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the CatalogStoreFactory.
|
CatalogStore |
createCatalogStore()
Creates a
CatalogStore instance from context information. |
String |
factoryIdentifier()
Returns a unique identifier among same factory interfaces.
|
void |
open(CatalogStoreFactory.Context context)
Initialize the CatalogStoreFactory.
|
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() . |
public CatalogStore createCatalogStore()
CatalogStoreFactory
CatalogStore
instance from context information.createCatalogStore
in interface CatalogStoreFactory
public void open(CatalogStoreFactory.Context context)
CatalogStoreFactory
For the use case of Flink SQL gateway, the open method will be called when starting SessionManager. It initializes common resources, such as a connection pool, for various catalog stores.
open
in interface CatalogStoreFactory
public void close()
CatalogStoreFactory
For the use case of Flink SQL gateway, the close method will be called when closing SessionManager. It releases common resources, such as connection pool, after closing all catalog stores.
close
in interface CatalogStoreFactory
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 Factory
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 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 Factory
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.