Package org.nuxeo.ecm.core.blob
Class PathStrategyFlat
- java.lang.Object
-
- org.nuxeo.ecm.core.blob.PathStrategy
-
- org.nuxeo.ecm.core.blob.PathStrategyFlat
-
public class PathStrategyFlat extends PathStrategy
Stores a file in a directory based on its key.- Since:
- 11.1
-
-
Field Summary
-
Fields inherited from class org.nuxeo.ecm.core.blob.PathStrategy
dir, HEX, SAFE
-
-
Constructor Summary
Constructors Constructor Description PathStrategyFlat(Path dir)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Path
getPathForKey(String key)
Gets the storage path for a given key.-
Methods inherited from class org.nuxeo.ecm.core.blob.PathStrategy
atomicCopy, atomicMove, createTempFile, getKeyForPath, isTempFile, safePath, safePathInverse
-
-
-
-
Constructor Detail
-
PathStrategyFlat
public PathStrategyFlat(Path dir)
-
-
Method Detail
-
getPathForKey
public Path getPathForKey(String key)
Description copied from class:PathStrategy
Gets the storage path for a given key.- Specified by:
getPathForKey
in classPathStrategy
- Parameters:
key
- the key- Returns:
- the file for this key
-
-