Package io.deephaven.enterprise.schema
Class SchemaService.Delegating
java.lang.Object
io.deephaven.enterprise.schema.internal.SchemaServiceBase.Delegating
io.deephaven.enterprise.schema.SchemaService.Delegating
- All Implemented Interfaces:
SchemaServiceBase,SchemaService,io.deephaven.shadow.enterprise.com.illumon.util.type.NamedImplementation,AutoCloseable
- Enclosing interface:
- SchemaService
public static class SchemaService.Delegating
extends SchemaServiceBase.Delegating
implements SchemaService
Delegate all method calls to an implementation object. This is designed to be overloaded.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.deephaven.enterprise.schema.SchemaService
SchemaService.DelegatingNested classes/interfaces inherited from interface io.deephaven.enterprise.schema.internal.SchemaServiceBase
SchemaServiceBase.Delegating -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull SchemaAdd the specified schema to the service.@NotNull SchemaAdd the specified schema to the service.booleancreateNamespace(@NotNull NamespaceSet namespaceSet, @NotNull String namespaceName) Add a namespace with the given name to the schema service, in the requested namespace set.booleancreateNamespace(@NotNull NamespaceSet namespaceSet, @NotNull String namespaceName, @NotNull String code, @NotNull String comment) Add a namespace with the given name to the schema service, in the requested namespace set.booleancreateNamespace(@NotNull String namespaceSet, @NotNull String namespaceName) Convenience method translates the namespace set from string toNamespaceSetand delegate toSchemaService.createNamespace(NamespaceSet, String)voiddeleteSchema(@NotNull Schema schema) Delete the specified schema.voiddeleteSchema(@NotNull Schema schema, @NotNull String code, @NotNull String comment) Delete the specified schema.@NotNull Collection<Schema>Get a collection of all known schemas in the system.@NotNull NamespaceSetgetNamespaceSet(@NotNull String namespace) Get theNamespaceSetfor a particular namespace.@Nullable SchemaGet the latest version of theSchemadefined by namespace and table name@NotNull Collection<Schema>getSchemas(@NotNull NamespaceSet namespaceSet) Get a collection of all known schemas in the system, with the given namespace set.@NotNull Collection<Schema>getSchemas(@NotNull String namespace) Get a collection of all known schemas in the given namespace.@NotNull Collection<Schema>getSchemasForNamespaceSet(@NotNull String namespaceSet) Convenience method translates the namespace set from string toNamespaceSetand delegate toSchemaService.getSchemas(NamespaceSet)@NotNull Map<NamespaceSet,Map<String, Collection<String>>> Get a map of all known tables in all known namespaces for all namespace sets.@NotNull Collection<String>listNamespaces(@NotNull NamespaceSet namespaceSet) Get a collection of the namespaces available in the given namespace set.@NotNull Collection<String>listNamespaces(@NotNull NamespaceSet namespaceSet, boolean includeDeleted) Get a collection of the namespaces available in the given namespace set.voidremoveNamespace(@NotNull String namespaceName) voidremoveNamespace(@NotNull String namespaceName, @NotNull String code, @NotNull String comment) @NotNull SchemaupdateSchema(@NotNull Schema newSchema) Update the schema with the same namespace and table name with the specified new schema.@NotNull SchemaupdateSchema(@NotNull Schema newSchema, @NotNull String code, @NotNull String comment) Update the schema with the same namespace and table name with the specified new schema.Methods inherited from class io.deephaven.enterprise.schema.internal.SchemaServiceBase.Delegating
about, authenticate, authenticate, authenticate, close, containsNamespace, containsNamespace, containsSchema, deleteSchema, deleteSchema, listNamespaces, listNamespaces, listTableNames, listTableNames, shutdownMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.deephaven.shadow.enterprise.com.illumon.util.type.NamedImplementation
getImplementationNameMethods inherited from interface io.deephaven.enterprise.schema.SchemaService
listNamespacesMethods inherited from interface io.deephaven.enterprise.schema.internal.SchemaServiceBase
about, authenticate, authenticate, authenticate, close, containsNamespace, containsNamespace, containsSchema, deleteSchema, deleteSchema, initializationStage, listNamespaces, listNamespaces, listTableNames, listTableNames, shutdown
-
Constructor Details
-
Delegating
-
-
Method Details
-
getAllSchemas
Description copied from interface:SchemaServiceGet a collection of all known schemas in the system. The latest version of each will be returned.- Specified by:
getAllSchemasin interfaceSchemaService- Returns:
- a collection of all known schemas
-
getSchemas
Description copied from interface:SchemaServiceGet a collection of all known schemas in the system, with the given namespace set. The latest version of each will be returned.- Specified by:
getSchemasin interfaceSchemaService- Parameters:
namespaceSet- the namespace set for the schemas- Returns:
- a collection of all known schemas in the given namespace set
-
getSchemasForNamespaceSet
@NotNull public @NotNull Collection<Schema> getSchemasForNamespaceSet(@NotNull @NotNull String namespaceSet) Description copied from interface:SchemaServiceConvenience method translates the namespace set from string toNamespaceSetand delegate toSchemaService.getSchemas(NamespaceSet)- Specified by:
getSchemasForNamespaceSetin interfaceSchemaService- Parameters:
namespaceSet- the namespace set for the schemas- Returns:
- a collection of all known schemas in the given namespace set
-
getSchema
@Nullable public @Nullable Schema getSchema(@NotNull @NotNull String namespace, @NotNull @NotNull String tableName) Description copied from interface:SchemaServiceGet the latest version of theSchemadefined by namespace and table name- Specified by:
getSchemain interfaceSchemaService- Parameters:
namespace- the namespace of the tabletableName- the table name- Returns:
- the latest version of namespace.tableName or null if none was found
-
getSchemas
Description copied from interface:SchemaServiceGet a collection of all known schemas in the given namespace. The latest version of each will be returned.- Specified by:
getSchemasin interfaceSchemaService- Parameters:
namespace- the namespace of the schemas- Returns:
- a collection of all known schemas in the given namespace
-
getNamespaceSet
@NotNull public @NotNull NamespaceSet getNamespaceSet(@NotNull @NotNull String namespace) throws IllegalArgumentException Description copied from interface:SchemaServiceGet theNamespaceSetfor a particular namespace.- Specified by:
getNamespaceSetin interfaceSchemaService- Parameters:
namespace- The namespace name- Returns:
- the namespace set of the namespace
- Throws:
IllegalArgumentException- if the namespace does not exist
-
listNamespaces
@NotNull public @NotNull Collection<String> listNamespaces(@NotNull @NotNull NamespaceSet namespaceSet) Description copied from interface:SchemaServiceGet a collection of the namespaces available in the given namespace set.- Specified by:
listNamespacesin interfaceSchemaService- Parameters:
namespaceSet- list namespaces in this namespace set (User, System)- Returns:
- a collection of namespace names
-
listNamespaces
@NotNull public @NotNull Collection<String> listNamespaces(@NotNull @NotNull NamespaceSet namespaceSet, boolean includeDeleted) Description copied from interface:SchemaServiceGet a collection of the namespaces available in the given namespace set.- Specified by:
listNamespacesin interfaceSchemaService- Parameters:
namespaceSet- list namespaces in this set (User, System)includeDeleted- true if deleted namespaces should be included- Returns:
- a collection of namespace names
-
listAllTables
Description copied from interface:SchemaServiceGet a map of all known tables in all known namespaces for all namespace sets.- Specified by:
listAllTablesin interfaceSchemaService- Returns:
- all the table names, mapped by namespace set and namespace
-
createNamespace
public boolean createNamespace(@NotNull @NotNull NamespaceSet namespaceSet, @NotNull @NotNull String namespaceName) throws SchemaException Description copied from interface:SchemaServiceAdd a namespace with the given name to the schema service, in the requested namespace set. Returns true if the namespace was added, false if it already exists. Throws a SchemaException if the namespace could not be added.- Specified by:
createNamespacein interfaceSchemaService- Parameters:
namespaceSet- add namespaceName to this namespace setnamespaceName- name of the new namespace- Returns:
- true if the namespace was added, false if it already exists.
- Throws:
SchemaException- if the namespace could not be added to the given namespace set
-
createNamespace
public boolean createNamespace(@NotNull @NotNull String namespaceSet, @NotNull @NotNull String namespaceName) throws SchemaException Description copied from interface:SchemaServiceConvenience method translates the namespace set from string toNamespaceSetand delegate toSchemaService.createNamespace(NamespaceSet, String)- Specified by:
createNamespacein interfaceSchemaService- Parameters:
namespaceSet- add namespaceName to this namespace setnamespaceName- name of the new namespace- Returns:
- true if the namespace was added, false if it already exists.
- Throws:
SchemaException- if the namespace could not be added to the given namespace set
-
createNamespace
public boolean createNamespace(@NotNull @NotNull NamespaceSet namespaceSet, @NotNull @NotNull String namespaceName, @NotNull @NotNull String code, @NotNull @NotNull String comment) throws SchemaException Description copied from interface:SchemaServiceAdd a namespace with the given name to the schema service, in the requested namespace set. Returns true if the namespace was added, false if it already exists. Throws a SchemaException if the namespace could not be added.- Specified by:
createNamespacein interfaceSchemaService- Parameters:
namespaceSet- add namespaceName to this namespace setnamespaceName- name of the new namespacecode- pass-thru to kv persistence, indicates the code source of this updatecomment- pass-thru to kv persistence - a comment for this update- Returns:
- true if the namespace was added, false if it already exists.
- Throws:
SchemaException- if the namespace could not be added to the given namespace set
-
removeNamespace
- Specified by:
removeNamespacein interfaceSchemaServiceBase- Overrides:
removeNamespacein classSchemaServiceBase.Delegating- Throws:
SchemaException
-
removeNamespace
public void removeNamespace(@NotNull @NotNull String namespaceName, @NotNull @NotNull String code, @NotNull @NotNull String comment) throws SchemaException - Specified by:
removeNamespacein interfaceSchemaServiceBase- Overrides:
removeNamespacein classSchemaServiceBase.Delegating- Throws:
SchemaException
-
addSchema
@NotNull public @NotNull Schema addSchema(@NotNull @NotNull Schema newSchema) throws SchemaException Description copied from interface:SchemaServiceAdd the specified schema to the service.- Specified by:
addSchemain interfaceSchemaService- Parameters:
newSchema- the schema to add- Returns:
- the schema actually stored in the SchemaService
- Throws:
SchemaException- if the schema could not be added
-
addSchema
@NotNull public @NotNull Schema addSchema(@NotNull @NotNull Schema newSchema, @NotNull @NotNull String code, @NotNull @NotNull String comment) throws SchemaException Description copied from interface:SchemaServiceAdd the specified schema to the service.- Specified by:
addSchemain interfaceSchemaService- Parameters:
newSchema- the schema to addcode- pass-thru to kv persistence, indicates the code source of this updatecomment- pass-thru to kv persistence - a comment for this update- Returns:
- the schema actually stored in the SchemaService
- Throws:
SchemaException- if the schema could not be added
-
updateSchema
@NotNull public @NotNull Schema updateSchema(@NotNull @NotNull Schema newSchema) throws IllegalArgumentException, SchemaException Description copied from interface:SchemaServiceUpdate the schema with the same namespace and table name with the specified new schema.- Specified by:
updateSchemain interfaceSchemaService- Parameters:
newSchema- the schema to update with- Returns:
- the schema actually stored in the SchemaService
- Throws:
IllegalArgumentException- if the namespace or table does not existSchemaException- if the schema could not be updated
-
updateSchema
@NotNull public @NotNull Schema updateSchema(@NotNull @NotNull Schema newSchema, @NotNull @NotNull String code, @NotNull @NotNull String comment) throws IllegalArgumentException, SchemaException Description copied from interface:SchemaServiceUpdate the schema with the same namespace and table name with the specified new schema.- Specified by:
updateSchemain interfaceSchemaService- Parameters:
newSchema- the schema to update withcode- pass-thru to kv persistence, indicates the code source of this updatecomment- pass-thru to kv persistence - a comment for this update- Returns:
- the schema actually stored in the SchemaService
- Throws:
IllegalArgumentException- if the namespace or table does not existSchemaException- if the schema could not be updated
-
deleteSchema
public void deleteSchema(@NotNull @NotNull Schema schema) throws IllegalArgumentException, SchemaException Description copied from interface:SchemaServiceDelete the specified schema.- Specified by:
deleteSchemain interfaceSchemaService- Parameters:
schema- the schema to delete- Throws:
IllegalArgumentException- if the namespace or table could not be foundSchemaException- if the schema could not be deleted
-
deleteSchema
public void deleteSchema(@NotNull @NotNull Schema schema, @NotNull @NotNull String code, @NotNull @NotNull String comment) throws IllegalArgumentException, SchemaException Description copied from interface:SchemaServiceDelete the specified schema.- Specified by:
deleteSchemain interfaceSchemaService- Parameters:
schema- the schema to deletecode- pass-thru to kv persistence, indicates the code source of this deletecomment- pass-thru to kv persistence - a comment for this delete- Throws:
IllegalArgumentException- if the namespace or table could not be foundSchemaException- if the schema could not be deleted
-