Class OnDiskTableDataService

java.lang.Object
io.deephaven.engine.table.impl.locations.impl.AbstractTableDataService
io.deephaven.enterprise.tabledataservice.OnDiskTableDataService
All Implemented Interfaces:
TableDataService, EnterpriseTableDataService, NamedImplementation

public class OnDiskTableDataService extends AbstractTableDataService implements EnterpriseTableDataService
A TableDataService implementation that expects data to be located on a local filesystem.
  • Constructor Details

    • OnDiskTableDataService

      public OnDiskTableDataService(@NotNull @NotNull Logger log, @Nullable @Nullable String name, @NotNull @NotNull SchemaService schemaService, @NotNull @NotNull OnDiskTableDataServiceDescriptor descriptor)
      Construct a TableDataService that sources tables from the local filesystem.
      Parameters:
      log - A logger for logging
      name - The service name (optional)
      schemaService - The SchemaService to use for locating TableDefinitions
      descriptor - The configuration for this TableDataService
    • OnDiskTableDataService

      public OnDiskTableDataService(@NotNull @NotNull Logger log, @Nullable @Nullable String name, @NotNull @NotNull Path storageRoot, @NotNull @NotNull SchemaService schemaService, boolean allowRefreshingUserTables)
      Construct a TableDataService that sources tables from the local filesystem.
      Parameters:
      log - A logger for logging
      name - The service name (optional)
      storageRoot - The root of the database on the filesystem
      schemaService - The SchemaService to use for locating TableDefinitions
      allowRefreshingUserTables - true if user tables are allowed to refresh
  • Method Details

    • makeTableLocationProvider

      @NotNull protected @NotNull TableLocationProvider makeTableLocationProvider(@NotNull @NotNull TableKey tableKey)
      Specified by:
      makeTableLocationProvider in class AbstractTableDataService
    • getPathManager

      @InternalUseOnly @VisibleForTesting public io.deephaven.shadow.enterprise.com.illumon.iris.db.v2.locations.local.LocalTablePathManager getPathManager()
      Returns the path manager used by this service for internal operations and testing. This method is only intended for internal use and testing.
      Returns:
      the LocalTablePathManager used by this service
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getDescriptor

      @NotNull public @NotNull OnDiskTableDataServiceDescriptor getDescriptor()
      Description copied from interface: EnterpriseTableDataService
      Return an immutable descriptor object that identifies this TableDataService instance and does not hold resources.
      Specified by:
      getDescriptor in interface EnterpriseTableDataService
      Returns:
      the TableDataServiceDescriptor for this TableDataService