Class OnDiskQueryDatabase

All Implemented Interfaces:
Database
Direct Known Subclasses:
ImporterDatabase

public class OnDiskQueryDatabase extends OnDiskDatabase
Primary local database implementation for query usage.
  • Constructor Details

    • OnDiskQueryDatabase

      public OnDiskQueryDatabase(@NotNull com.fishlib.io.logger.Logger log, @Nullable File rootDirectory, @NotNull String tableDataServiceName)
      Delegate to OnDiskQueryDatabase(Logger, File, TableDataService) with a non-dynamic TableDataService constructed from the given tableDataServiceName.
      Parameters:
      log - the logger to use
      rootDirectory - the root directory for the database's data and metadata storage
      tableDataServiceName - initialize the TableDataService with this configuration name.
    • OnDiskQueryDatabase

      public OnDiskQueryDatabase(@NotNull com.fishlib.io.logger.Logger log, @NotNull File rootDirectory, @NotNull TableDataService tableDataService)
      Delegate to OnDiskQueryDatabase(Logger, File, TableDataService, SchemaService) with the default SchemaService.
      Parameters:
      log - the logger to use
      rootDirectory - the root directory for the database's data and metadata storage
      tableDataService - the constructed TableDataService to use
    • OnDiskQueryDatabase

      public OnDiskQueryDatabase(@NotNull com.fishlib.io.logger.Logger log, @NotNull File rootDirectory, @NotNull TableDataService tableDataService, @NotNull SchemaService schemaService)
      Parameters:
      log - the logger to use
      rootDirectory - the root directory for the database's data and metadata storage
      tableDataService - the constructed TableDataService to use
      schemaService - the SchemaService to use
    • OnDiskQueryDatabase

      @Deprecated public OnDiskQueryDatabase(@NotNull com.fishlib.io.logger.Logger log)
      Deprecated.
      The tableDataServiceName should be known. Use OnDiskQueryDatabase(Logger, File, String) instead.
      Delegate to OnDiskQueryDatabase(Logger, File, String) with the default table data service configuration name and null root directory, signifying the default.
      Parameters:
      log - the logger to use
    • OnDiskQueryDatabase

      public OnDiskQueryDatabase(@NotNull com.fishlib.io.logger.Logger log, @NotNull String tableDataServiceName)
      Delegate to OnDiskQueryDatabase(Logger, File, TableDataService) with the default rootDirectory.
      Parameters:
      log - the logger to use
      tableDataServiceName - initialize the TableDataService with this configuration name.
    • OnDiskQueryDatabase

      public OnDiskQueryDatabase(@NotNull com.fishlib.io.logger.Logger log, @Nullable File rootDirectory, @NotNull TableDataService tableDataService, @NotNull SchemaService schemaService, @NotNull NamespaceSet newNamespaceSet)
      Opens an on-disk database suitable for user queries with the specified root and no support for query parallelization, using the default Configuration instance.
      Parameters:
      log - the logger to use
      rootDirectory - the root directory for the database's data and metadata storage
      tableDataService - the constructed TableDataService to use
      schemaService - the SchemaService to use
      newNamespaceSet - the NamespaceSet to use for newly created namespaces
    • OnDiskQueryDatabase

      public OnDiskQueryDatabase(@NotNull com.fishlib.io.logger.Logger log, @NotNull com.fishlib.configuration.Configuration configuration, @Nullable File rootDirectory, @NotNull TableDataService tableDataService, @NotNull SchemaService schemaService, @NotNull NamespaceSet newNamespaceSet)
      Opens an on-disk database suitable for user queries with the specified root and no support for query parallelization.
      Parameters:
      log - the logger to use
      configuration - the Configuration instance to use
      rootDirectory - the root directory for the database's data and metadata storage
      tableDataService - the constructed TableDataService to use
      schemaService - the SchemaService to use
      newNamespaceSet - the NamespaceSet to use for newly created namespaces
  • Method Details