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, unwrapCauseAndRethrow
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clearCaches, read, removeAllValues
public VfsAwareMapIndexStorage(java.nio.file.Path storageFile, KeyDescriptor<Key> keyDescriptor, DataExternalizer<Value> valueExternalizer, int cacheSize, boolean readOnly) throws java.io.IOException
java.io.IOException
public VfsAwareMapIndexStorage(java.io.File storageFile, KeyDescriptor<Key> keyDescriptor, DataExternalizer<Value> valueExternalizer, int cacheSize, boolean keyIsUniqueForIndexedFile, boolean buildKeyHashToVirtualFileMapping) throws java.io.IOException
java.io.IOException
public VfsAwareMapIndexStorage(java.nio.file.Path storageFile, KeyDescriptor<Key> keyDescriptor, DataExternalizer<Value> valueExternalizer, int cacheSize, boolean keyIsUniqueForIndexedFile, boolean buildKeyHashToVirtualFileMapping) throws java.io.IOException
java.io.IOException
protected void initMapAndCache() throws java.io.IOException
initMapAndCache
in class MapIndexStorage<Key,Value>
java.io.IOException
protected void checkCanceled()
checkCanceled
in class MapIndexStorage<Key,Value>
public void flush()
flush
in interface IndexStorage<Key,Value>
flush
in interface java.io.Flushable
flush
in class MapIndexStorage<Key,Value>
public void close() throws StorageException
close
in interface IndexStorage<Key,Value>
close
in class MapIndexStorage<Key,Value>
StorageException
public void clear() throws StorageException
clear
in interface IndexStorage<Key,Value>
clear
in class MapIndexStorage<Key,Value>
StorageException
public boolean processKeys(Processor<? super Key> processor, GlobalSearchScope scope, IdFilter idFilter) throws StorageException
processKeys
in interface VfsAwareIndexStorage<Key,Value>
StorageException
public void addValue(Key key, int inputId, Value value) throws StorageException
addValue
in interface IndexStorage<Key,Value>
addValue
in class MapIndexStorage<Key,Value>
StorageException