Class DataDir

java.lang.Object
io.deephaven.configuration.DataDir

public class DataDir extends Object
  • Field Details

  • Constructor Details

    • DataDir

      public DataDir()
  • Method Details

    • get

      public static Path get()
      Gets the data directory, first by the system property "deephaven.dataDir" if present, next by the system property "workspace" if present, next by the environment variable "DEEPHAVEN_DATA_DIR" if present, and otherwise ".".
      Returns:
      the data directory
    • getOrSet

      public static Path getOrSet(String defaultValue)
      Gets the data directory if the system property "deephaven.dataDir" or "workspace" is present, or if the environment variable "DEEPHAVEN_DATA_DIR" is present, otherwise sets the system property "deephaven.dataDir" to defaultValue and returns defaultValue.
      Parameters:
      defaultValue - the value to set if none is present
      Returns:
      the data directory