Class LocalFileStorageConnectorProvider

java.lang.Object
org.apache.druid.storage.local.LocalFileStorageConnectorProvider
All Implemented Interfaces:
StorageConnectorProvider

public class LocalFileStorageConnectorProvider extends Object implements StorageConnectorProvider
  • Field Details

  • Constructor Details

    • LocalFileStorageConnectorProvider

      public LocalFileStorageConnectorProvider(File basePath)
  • Method Details

    • createStorageConnector

      public StorageConnector createStorageConnector(File defaultTempDir)
      Description copied from interface: StorageConnectorProvider
      Returns the storage connector. Takes a parameter defaultTempDir to be possibly used as the temporary directory, if the storage connector requires one. This StorageConnectorProvider is not guaranteed to use this value, even if the StorageConnectorProvider requires one, as it gives priority to a value of defaultTempDir configured as a runtime configuration.
      This value needs to be passed instead of injected by Jackson as the default temporary directory is dependent on the task id, and such dynamic task specific bindings is not possible on indexers.
      Specified by:
      createStorageConnector in interface StorageConnectorProvider
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object