@PublicEvolving public interface EntropyInjectingFileSystem
FileSystemthat is aware of entropy injection.
Entropy injection is a technique to spread files/objects across more parallel shards of a distributed storage (typically object store) by adding random characters to the beginning of the path/key and hence spearing the keys across a wider domain of prefixes.
Entropy injection typically works by having a recognized marker string in paths and replacing that marker with random characters.
This interface is used in conjunction with the
EntropyInjector (as a poor man's way to
build a mix-in in Java).
|Modifier and Type||Method and Description|
Creates a string with random entropy to be injected into a path.
Gets the marker string that represents the substring of a path to be replaced by the entropy characters.
@Nullable String getEntropyInjectionKey()
You can disable entropy injection if you return null here.
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.