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