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, safeGetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitializeComponent, noStateLoadedpublic static <K> FileBasedIndexExtension<K,java.lang.Void> wrapStubIndexExtension(StubIndexExtension<K,?> extension)
public long getIndexModificationStamp(StubIndexKey<?,?> indexId, Project project)
public void flush()
throws StorageException
StorageExceptionpublic <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 StubIndexpublic void forceRebuild(java.lang.Throwable e)
forceRebuild in class StubIndexpublic <K> java.util.Collection<K> getAllKeys(StubIndexKey<K,?> indexKey, Project project)
getAllKeys in class StubIndexpublic <K> boolean processAllKeys(StubIndexKey<K,?> indexKey, Processor<? super K> processor, GlobalSearchScope scope, IdFilter idFilter)
processAllKeys in class StubIndexpublic <Key> IdIterator getContainingIds(StubIndexKey<Key,?> indexKey, Key dataKey, Project project, GlobalSearchScope scope)
getContainingIds in class StubIndexpublic 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.XmlSerializerpublic void loadState(StubIndexState state)
PersistentStateComponentState 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()