public class AffinityHashAllocator extends HashAllocator
mDirs
Constructor and Description |
---|
AffinityHashAllocator(List<PageStoreDir> dirs) |
AffinityHashAllocator(List<PageStoreDir> dirs,
java.util.function.Function<String,Integer> hashFunction) |
public AffinityHashAllocator(List<PageStoreDir> dirs)
dirs
- page store directoriespublic AffinityHashAllocator(List<PageStoreDir> dirs, java.util.function.Function<String,Integer> hashFunction)
dirs
- page store directorieshashFunction
- hash functionpublic PageStoreDir allocate(String fileId, long fileLength)
allocate
in interface Allocator
allocate
in class HashAllocator
Copyright © 2023. All Rights Reserved.