Package io.deephaven.enterprise.schema
Class SchemaServiceFactory
java.lang.Object
io.deephaven.enterprise.schema.SchemaServiceFactory
Factory class providing access to various implementations of
SchemaService to allow retrieval and
manipulation of table schemata.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SchemaServiceCreate a new system default SchemaService, based on the default Configuration.static SchemaServiceCreate a service that will accept schemas and return them, but will not persist anything.static SchemaServiceGet the default etcd-backed SchemaService singleton.static SchemaServicegetLocalInstance(@Nullable String directory) Create a read-only service.static SchemaServiceGet a new client for Schema Service.static SchemaServiceCreate a read-only service initialized with schema files from the legacy configuration settings.
-
Constructor Details
-
SchemaServiceFactory
public SchemaServiceFactory()
-
-
Method Details
-
getDefault
Create a new system default SchemaService, based on the default Configuration.- Returns:
- a default SchemaService instance
-
getEtcdInstance
Get the default etcd-backed SchemaService singleton.- Returns:
- a SchemaService
-
getServiceInstance
Get a new client for Schema Service.- Returns:
- a SchemaService
-
getTransientInstance
Create a read-only service initialized with schema files from the legacy configuration settings. All mutating methods will throw an UnsupportedOperationException.- Returns:
- a SchemaService
-
getEmptyTransientInstance
Create a service that will accept schemas and return them, but will not persist anything. Do not initialize it with any schemas.- Returns:
- a SchemaService
-
getLocalInstance
Create a read-only service. Initialize with schema files from a single location, and throw a runtime exception if any of those files have errors.- Parameters:
directory- the single directory to search for schema files (if null, use the value of the LocalTransientSchemaService#SOURCE_DIRECTORY_PROPERTY property- Returns:
- a SchemaService
-