public final class VfsAwareMapIndexStorage<Key,Value> extends MapIndexStorage<Key,Value> implements VfsAwareIndexStorage<Key,Value>
l, myBaseStorageFile, myCache, myKeyDescriptor, myMap| Constructor and Description |
|---|
VfsAwareMapIndexStorage(java.io.File storageFile,
KeyDescriptor<Key> keyDescriptor,
DataExternalizer<Value> valueExternalizer,
int cacheSize,
boolean keyIsUniqueForIndexedFile,
boolean buildKeyHashToVirtualFileMapping) |
VfsAwareMapIndexStorage(java.nio.file.Path storageFile,
KeyDescriptor<Key> keyDescriptor,
DataExternalizer<Value> valueExternalizer,
int cacheSize,
boolean readOnly) |
VfsAwareMapIndexStorage(java.nio.file.Path storageFile,
KeyDescriptor<Key> keyDescriptor,
DataExternalizer<Value> valueExternalizer,
int cacheSize,
boolean keyIsUniqueForIndexedFile,
boolean buildKeyHashToVirtualFileMapping) |
| Modifier and Type | Method and Description |
|---|---|
void |
addValue(Key key,
int inputId,
Value value) |
protected void |
checkCanceled() |
void |
clear() |
void |
close() |
void |
flush() |
protected void |
initMapAndCache() |
boolean |
processKeys(Processor<? super Key> processor,
GlobalSearchScope scope,
IdFilter idFilter) |
clearCaches, doProcessKeys, getIndexMap, getIndexStorageFile, processKeys, read, removeAllValues, unwrapCauseAndRethrowclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclearCaches, read, removeAllValuespublic VfsAwareMapIndexStorage(java.nio.file.Path storageFile,
KeyDescriptor<Key> keyDescriptor,
DataExternalizer<Value> valueExternalizer,
int cacheSize,
boolean readOnly)
throws java.io.IOException
java.io.IOExceptionpublic VfsAwareMapIndexStorage(java.io.File storageFile,
KeyDescriptor<Key> keyDescriptor,
DataExternalizer<Value> valueExternalizer,
int cacheSize,
boolean keyIsUniqueForIndexedFile,
boolean buildKeyHashToVirtualFileMapping)
throws java.io.IOException
java.io.IOExceptionpublic VfsAwareMapIndexStorage(java.nio.file.Path storageFile,
KeyDescriptor<Key> keyDescriptor,
DataExternalizer<Value> valueExternalizer,
int cacheSize,
boolean keyIsUniqueForIndexedFile,
boolean buildKeyHashToVirtualFileMapping)
throws java.io.IOException
java.io.IOExceptionprotected void initMapAndCache()
throws java.io.IOException
initMapAndCache in class MapIndexStorage<Key,Value>java.io.IOExceptionprotected void checkCanceled()
checkCanceled in class MapIndexStorage<Key,Value>public void flush()
flush in interface IndexStorage<Key,Value>flush in interface java.io.Flushableflush in class MapIndexStorage<Key,Value>public void close()
throws StorageException
close in interface IndexStorage<Key,Value>close in class MapIndexStorage<Key,Value>StorageExceptionpublic void clear()
throws StorageException
clear in interface IndexStorage<Key,Value>clear in class MapIndexStorage<Key,Value>StorageExceptionpublic boolean processKeys(Processor<? super Key> processor, GlobalSearchScope scope, IdFilter idFilter) throws StorageException
processKeys in interface VfsAwareIndexStorage<Key,Value>StorageExceptionpublic void addValue(Key key, int inputId, Value value) throws StorageException
addValue in interface IndexStorage<Key,Value>addValue in class MapIndexStorage<Key,Value>StorageException