Package org.apache.druid.storage.local
Class LocalFileExportStorageProvider
- java.lang.Object
-
- org.apache.druid.storage.local.LocalFileExportStorageProvider
-
- All Implemented Interfaces:
com.google.inject.Provider<StorageConnector>,javax.inject.Provider<StorageConnector>,ExportStorageProvider
public class LocalFileExportStorageProvider extends Object implements ExportStorageProvider
-
-
Constructor Summary
Constructors Constructor Description LocalFileExportStorageProvider(String exportPath)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StorageConnectorget()StringgetBasePath()Return a URI representation of the base path.StringgetFilePathForManifest(String fileName)StringgetResourceType()inthashCode()StringtoString()static FilevalidateAndGetPath(String basePath, String customPath)
-
-
-
Field Detail
-
TYPE_NAME
public static final String TYPE_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
LocalFileExportStorageProvider
public LocalFileExportStorageProvider(String exportPath)
-
-
Method Detail
-
get
public StorageConnector get()
- Specified by:
getin interfacecom.google.inject.Provider<StorageConnector>- Specified by:
getin interfacejavax.inject.Provider<StorageConnector>
-
getResourceType
public String getResourceType()
- Specified by:
getResourceTypein interfaceExportStorageProvider
-
getBasePath
public String getBasePath()
Description copied from interface:ExportStorageProviderReturn a URI representation of the base path. This is used to be used for logging and error messages.- Specified by:
getBasePathin interfaceExportStorageProvider
-
getFilePathForManifest
public String getFilePathForManifest(String fileName)
- Specified by:
getFilePathForManifestin interfaceExportStorageProvider
-
-