public abstract class FileBasedIndexEx extends FileBasedIndex
FileBasedIndex.FileTypeSpecificInputFilter, FileBasedIndex.InputFilter, FileBasedIndex.ValueProcessor<V>
ourEnableTracingOfKeyHashToVirtualFileMapping, ourSnapshotMappingsEnabled
Constructor and Description |
---|
FileBasedIndexEx() |
Modifier and Type | Method and Description |
---|---|
<K> void |
ensureUpToDate(ID<K,?> indexId,
Project project,
GlobalSearchScope filter)
DO NOT CALL DIRECTLY IN CLIENT CODE
The method is internal to indexing engine end is called internally.
|
abstract <K> boolean |
ensureUpToDate(ID<K,?> indexId,
Project project,
GlobalSearchScope filter,
VirtualFile restrictedFile) |
abstract java.util.function.IntPredicate |
getAccessibleFileIdFilter(Project project) |
<K> java.util.Collection<K> |
getAllKeys(ID<K,?> indexId,
Project project)
It is guaranteed to return data which is up-to-date within the given project.
|
<K,V> java.util.Collection<VirtualFile> |
getContainingFiles(ID<K,V> indexId,
K dataKey,
GlobalSearchScope filter) |
<K,V> java.util.Map<K,V> |
getFileData(ID<K,V> id,
VirtualFile virtualFile,
Project project) |
<K,V> boolean |
getFilesWithKey(ID<K,V> indexId,
java.util.Set<? extends K> dataKeys,
Processor<? super VirtualFile> processor,
GlobalSearchScope filter) |
<K,V> long |
getIndexModificationStamp(ID<K,V> indexId,
Project project) |
java.util.List<IndexableFilesProvider> |
getOrderedIndexableFilesProviders(Project project,
ProgressIndicator indicator)
Returns providers of files to be indexed.
|
<K,V> java.util.List<V> |
getValues(ID<K,V> indexId,
K dataKey,
GlobalSearchScope filter) |
void |
iterateIndexableFiles(ContentIterator processor,
Project project,
ProgressIndicator indicator) |
<K> boolean |
processAllKeys(ID<K,?> indexId,
Processor<? super K> processor,
GlobalSearchScope scope,
IdFilter idFilter) |
<K> boolean |
processAllKeys(ID<K,?> indexId,
Processor<? super K> processor,
Project project)
It is guaranteed to return data which is up-to-date within the given project.
|
<K,V> boolean |
processFilesContainingAllKeys(ID<K,V> indexId,
java.util.Collection<? extends K> dataKeys,
GlobalSearchScope filter,
Condition<? super V> valueChecker,
Processor<? super VirtualFile> processor) |
<K,V> boolean |
processValues(ID<K,V> indexId,
K dataKey,
VirtualFile inFile,
FileBasedIndex.ValueProcessor<? super V> processor,
GlobalSearchScope filter) |
<K,V> boolean |
processValues(ID<K,V> indexId,
K dataKey,
VirtualFile inFile,
FileBasedIndex.ValueProcessor<? super V> processor,
GlobalSearchScope filter,
IdFilter idFilter) |
abstract ProjectIndexableFilesFilter |
projectIndexableFiles(Project project) |
<K> void |
scheduleRebuild(ID<K,?> indexId,
java.lang.Throwable e) |
findFileById, getCurrentDumbModeAccessType, getFileBeingCurrentlyIndexed, getFileId, getInstance, ignoreDumbMode, invalidateCaches, isIndexAccessDuringDumbModeEnabled, iterateRecursively, registerIndexableSet, removeIndexableSet, requestRebuild, requestRebuild, requestReindex
public abstract java.util.function.IntPredicate getAccessibleFileIdFilter(Project project)
public abstract ProjectIndexableFilesFilter projectIndexableFiles(Project project)
public abstract <K> boolean ensureUpToDate(ID<K,?> indexId, Project project, GlobalSearchScope filter, VirtualFile restrictedFile)
public <K,V> java.util.List<V> getValues(ID<K,V> indexId, K dataKey, GlobalSearchScope filter)
getValues
in class FileBasedIndex
public <K> java.util.Collection<K> getAllKeys(ID<K,?> indexId, Project project)
FileBasedIndex
getAllKeys
in class FileBasedIndex
public <K> boolean processAllKeys(ID<K,?> indexId, Processor<? super K> processor, Project project)
FileBasedIndex
processAllKeys
in class FileBasedIndex
public <K> boolean processAllKeys(ID<K,?> indexId, Processor<? super K> processor, GlobalSearchScope scope, IdFilter idFilter)
processAllKeys
in class FileBasedIndex
public <K,V> java.util.Map<K,V> getFileData(ID<K,V> id, VirtualFile virtualFile, Project project)
getFileData
in class FileBasedIndex
public <K,V> java.util.Collection<VirtualFile> getContainingFiles(ID<K,V> indexId, K dataKey, GlobalSearchScope filter)
getContainingFiles
in class FileBasedIndex
public <K,V> boolean processValues(ID<K,V> indexId, K dataKey, VirtualFile inFile, FileBasedIndex.ValueProcessor<? super V> processor, GlobalSearchScope filter)
processValues
in class FileBasedIndex
false
if ValueProcessor.process() returned false
; true
otherwise or if ValueProcessor was not called at allpublic <K,V> boolean processValues(ID<K,V> indexId, K dataKey, VirtualFile inFile, FileBasedIndex.ValueProcessor<? super V> processor, GlobalSearchScope filter, IdFilter idFilter)
processValues
in class FileBasedIndex
false
if ValueProcessor.process() returned false
; true
otherwise or if ValueProcessor was not called at allpublic <K,V> long getIndexModificationStamp(ID<K,V> indexId, Project project)
getIndexModificationStamp
in class FileBasedIndex
public <K,V> boolean processFilesContainingAllKeys(ID<K,V> indexId, java.util.Collection<? extends K> dataKeys, GlobalSearchScope filter, Condition<? super V> valueChecker, Processor<? super VirtualFile> processor)
processFilesContainingAllKeys
in class FileBasedIndex
public <K,V> boolean getFilesWithKey(ID<K,V> indexId, java.util.Set<? extends K> dataKeys, Processor<? super VirtualFile> processor, GlobalSearchScope filter)
getFilesWithKey
in class FileBasedIndex
public <K> void scheduleRebuild(ID<K,?> indexId, java.lang.Throwable e)
scheduleRebuild
in class FileBasedIndex
public <K> void ensureUpToDate(ID<K,?> indexId, Project project, GlobalSearchScope filter)
ensureUpToDate
in class FileBasedIndex
public void iterateIndexableFiles(ContentIterator processor, Project project, ProgressIndicator indicator)
iterateIndexableFiles
in class FileBasedIndex
public java.util.List<IndexableFilesProvider> getOrderedIndexableFilesProviders(Project project, ProgressIndicator indicator)