public class MemoryIndexStorage<Key,Value> extends java.lang.Object implements VfsAwareIndexStorage<Key,Value>
| Modifier and Type | Class and Description |
|---|---|
static interface |
MemoryIndexStorage.BufferingStateListener |
| Constructor and Description |
|---|
MemoryIndexStorage(IndexStorage<Key,Value> backend,
ID<?,?> indexId) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBufferingStateListener(MemoryIndexStorage.BufferingStateListener listener) |
void |
addValue(Key key,
int inputId,
Value value) |
void |
clear() |
void |
clearCaches() |
boolean |
clearMemoryMap() |
boolean |
clearMemoryMapForId(Key key,
int fileId) |
void |
close() |
void |
fireMemoryStorageCleared() |
void |
flush() |
boolean |
processKeys(Processor<? super Key> processor,
GlobalSearchScope scope,
IdFilter idFilter) |
ValueContainer<Value> |
read(Key key) |
void |
removeAllValues(Key key,
int inputId) |
void |
setBufferingEnabled(boolean enabled) |
public MemoryIndexStorage(IndexStorage<Key,Value> backend, ID<?,?> indexId)
public void addBufferingStateListener(MemoryIndexStorage.BufferingStateListener listener)
public void setBufferingEnabled(boolean enabled)
public boolean clearMemoryMap()
public boolean clearMemoryMapForId(Key key, int fileId)
public void fireMemoryStorageCleared()
public void clearCaches()
clearCaches in interface IndexStorage<Key,Value>public void close()
throws StorageException
close in interface IndexStorage<Key,Value>StorageExceptionpublic void clear()
throws StorageException
clear in interface IndexStorage<Key,Value>StorageExceptionpublic void flush()
throws java.io.IOException
flush in interface IndexStorage<Key,Value>flush in interface java.io.Flushablejava.io.IOExceptionpublic 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>StorageExceptionpublic void removeAllValues(Key key, int inputId) throws StorageException
removeAllValues in interface IndexStorage<Key,Value>StorageExceptionpublic ValueContainer<Value> read(Key key) throws StorageException
read in interface IndexStorage<Key,Value>StorageException