public final class StubIndexImpl extends StubIndexEx implements PersistentStateComponent<StubIndexState>
Modifier and Type | Class and Description |
---|---|
static class |
StubIndexImpl.StubIdExternalizer |
Constructor and Description |
---|
StubIndexImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
areAllProblemsProcessedInTheCurrentThread() |
void |
dispose() |
void |
flush() |
void |
forceRebuild(java.lang.Throwable e) |
<K> java.util.Collection<K> |
getAllKeys(StubIndexKey<K,?> indexKey,
Project project) |
<Key> IdIterator |
getContainingIds(StubIndexKey<Key,?> indexKey,
Key dataKey,
Project project,
GlobalSearchScope scope) |
long |
getIndexModificationStamp(StubIndexKey<?,?> indexId,
Project project) |
StubIndexState |
getState() |
void |
loadState(StubIndexState state)
This method is called when new component state is loaded.
|
<K> boolean |
processAllKeys(StubIndexKey<K,?> indexKey,
Processor<? super K> processor,
GlobalSearchScope scope,
IdFilter idFilter) |
<Key,Psi extends PsiElement> |
processElements(StubIndexKey<Key,Psi> indexKey,
Key key,
Project project,
GlobalSearchScope scope,
IdFilter idFilter,
java.lang.Class<Psi> requiredClass,
Processor<? super Psi> processor) |
<K> void |
updateIndex(StubIndexKey<K,?> key,
int fileId,
java.util.Map<K,StubIdList> oldInputData,
java.util.Map<K,StubIdList> newInputData) |
static <K> FileBasedIndexExtension<K,java.lang.Void> |
wrapStubIndexExtension(StubIndexExtension<K,?> extension) |
get, getElements, getElements, getInstance, processAllKeys, processElements, safeGet
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initializeComponent, noStateLoaded
public static <K> FileBasedIndexExtension<K,java.lang.Void> wrapStubIndexExtension(StubIndexExtension<K,?> extension)
public long getIndexModificationStamp(StubIndexKey<?,?> indexId, Project project)
public void flush() throws StorageException
StorageException
public <Key,Psi extends PsiElement> boolean processElements(StubIndexKey<Key,Psi> indexKey, Key key, Project project, GlobalSearchScope scope, IdFilter idFilter, java.lang.Class<Psi> requiredClass, Processor<? super Psi> processor)
processElements
in class StubIndex
public void forceRebuild(java.lang.Throwable e)
forceRebuild
in class StubIndex
public <K> java.util.Collection<K> getAllKeys(StubIndexKey<K,?> indexKey, Project project)
getAllKeys
in class StubIndex
public <K> boolean processAllKeys(StubIndexKey<K,?> indexKey, Processor<? super K> processor, GlobalSearchScope scope, IdFilter idFilter)
processAllKeys
in class StubIndex
public <Key> IdIterator getContainingIds(StubIndexKey<Key,?> indexKey, Key dataKey, Project project, GlobalSearchScope scope)
getContainingIds
in class StubIndex
public void dispose()
public StubIndexState getState()
getState
in interface PersistentStateComponent<StubIndexState>
null
value indicates
that the returned state won't be stored, as a result previously stored state will be used.XmlSerializer
public void loadState(StubIndexState state)
PersistentStateComponent
State object should be used directly, defensive copying is not required.
loadState
in interface PersistentStateComponent<StubIndexState>
state
- loaded component stateXmlSerializerUtil.copyBean(Object, Object)
public <K> void updateIndex(StubIndexKey<K,?> key, int fileId, java.util.Map<K,StubIdList> oldInputData, java.util.Map<K,StubIdList> newInputData)
public boolean areAllProblemsProcessedInTheCurrentThread()