public class SnapshotSingleValueIndexStorage<Key,Value> extends java.lang.Object implements VfsAwareIndexStorage<Key,Value>
VfsAwareIndexStorage implementation for SingleEntryFileBasedIndexExtension indexes.| Constructor and Description |
|---|
SnapshotSingleValueIndexStorage() |
| Modifier and Type | Method and Description |
|---|---|
void |
addValue(Key key,
int inputId,
Value value) |
void |
clear() |
void |
clearCaches() |
void |
close() |
static <Value> ValueContainer<Value> |
empty() |
void |
flush() |
void |
init(SnapshotInputMappings<Key,Value> snapshotInputMappings,
IntForwardIndex forwardIndex) |
boolean |
processKeys(Processor<? super Key> processor,
GlobalSearchScope scope,
IdFilter idFilter) |
ValueContainer<Value> |
read(Key key) |
void |
removeAllValues(Key key,
int inputId) |
public void init(SnapshotInputMappings<Key,Value> snapshotInputMappings, IntForwardIndex forwardIndex)
public ValueContainer<Value> read(Key key) throws StorageException
read in interface IndexStorage<Key,Value>StorageExceptionpublic boolean processKeys(Processor<? super Key> processor, GlobalSearchScope scope, IdFilter idFilter)
processKeys in interface VfsAwareIndexStorage<Key,Value>public void addValue(Key key, int inputId, Value value)
addValue in interface IndexStorage<Key,Value>public void removeAllValues(Key key, int inputId)
removeAllValues in interface IndexStorage<Key,Value>public void clear()
clear in interface IndexStorage<Key,Value>public void clearCaches()
clearCaches in interface IndexStorage<Key,Value>public void close()
throws StorageException
close 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 static <Value> ValueContainer<Value> empty()