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