public class NGlobalDictHDFSStore extends NGlobalDictStore
| 构造器和说明 |
|---|
NGlobalDictHDFSStore(String baseDir) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
commit(String workingDir,
int maxVersions,
long versionTTL) |
it.unimi.dsi.fastutil.objects.Object2LongMap<String> |
getBucketDict(long version,
NGlobalDictMetaInfo metaInfo,
int bucketId) |
NGlobalDictMetaInfo |
getMetaInfo(long version) |
org.apache.hadoop.fs.Path |
getVersionDir(long version) |
Long[] |
listAllVersions() |
void |
writeBucketCurrDict(String workingPath,
int bucketId,
it.unimi.dsi.fastutil.objects.Object2LongMap<String> openHashMap) |
void |
writeBucketPrevDict(String workingPath,
int bucketId,
it.unimi.dsi.fastutil.objects.Object2LongMap<String> openHashMap) |
void |
writeMetaInfo(int bucketSize,
String workingPath) |
public NGlobalDictHDFSStore(String baseDir) throws IOException
IOExceptionpublic Long[] listAllVersions() throws IOException
listAllVersions 在类中 NGlobalDictStoreIOException - on I/O errorpublic org.apache.hadoop.fs.Path getVersionDir(long version)
getVersionDir 在类中 NGlobalDictStorepublic NGlobalDictMetaInfo getMetaInfo(long version) throws IOException
getMetaInfo 在类中 NGlobalDictStoreIOExceptionpublic it.unimi.dsi.fastutil.objects.Object2LongMap<String> getBucketDict(long version, NGlobalDictMetaInfo metaInfo, int bucketId) throws IOException
getBucketDict 在类中 NGlobalDictStoreIOExceptionpublic void writeBucketCurrDict(String workingPath, int bucketId, it.unimi.dsi.fastutil.objects.Object2LongMap<String> openHashMap) throws IOException
writeBucketCurrDict 在类中 NGlobalDictStoreIOExceptionpublic void writeBucketPrevDict(String workingPath, int bucketId, it.unimi.dsi.fastutil.objects.Object2LongMap<String> openHashMap) throws IOException
writeBucketPrevDict 在类中 NGlobalDictStoreIOExceptionpublic void writeMetaInfo(int bucketSize,
String workingPath)
throws IOException
writeMetaInfo 在类中 NGlobalDictStoreIOExceptionpublic void commit(String workingDir, int maxVersions, long versionTTL) throws IOException
commit 在类中 NGlobalDictStoreIOExceptionCopyright © 2014–2022 Apache Software Foundation. All rights reserved.