1 package com
.intellij
.util
.indexing
;
3 import com
.intellij
.util
.Processor
;
4 import org
.jetbrains
.annotations
.NotNull
;
6 import java
.io
.Flushable
;
7 import java
.util
.Collection
;
10 * @author Eugene Zhuravlev
13 public interface IndexStorage
<Key
, Value
> extends Flushable
{
15 void addValue(Key key
, int inputId
, Value value
) throws StorageException
;
17 void removeValue(Key key
, int inputId
, Value value
) throws StorageException
;
19 void removeAllValues(Key key
, int inputId
) throws StorageException
;
21 void remove(Key key
) throws StorageException
;
23 void clear() throws StorageException
;
26 ValueContainer
<Value
> read(Key key
) throws StorageException
;
28 boolean processKeys(Processor
<Key
> processor
) throws StorageException
;
30 Collection
<Key
> getKeys() throws StorageException
;
32 void close() throws StorageException
;