Class SchemaServiceFactory

java.lang.Object
io.deephaven.enterprise.schema.SchemaServiceFactory

public class SchemaServiceFactory extends Object
Factory class providing access to various implementations of SchemaService to allow retrieval and manipulation of table schemata.
  • Constructor Details

    • SchemaServiceFactory

      public SchemaServiceFactory()
  • Method Details

    • getDefault

      public static SchemaService getDefault()
      Create a new system default SchemaService, based on the default Configuration.
      Returns:
      a default SchemaService instance
    • getEtcdInstance

      public static SchemaService getEtcdInstance()
      Get the default etcd-backed SchemaService singleton.
      Returns:
      a SchemaService
    • getServiceInstance

      public static SchemaService getServiceInstance()
      Get a new client for Schema Service.
      Returns:
      a SchemaService
    • getTransientInstance

      public static 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

      public static 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

      public static SchemaService getLocalInstance(@Nullable @Nullable String directory)
      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