mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
removed high selectivity for stub indices
This commit is contained in:
-5
@@ -46,9 +46,4 @@ public class JavaFieldNameIndex extends StringStubIndexExtension<PsiField> {
|
||||
public Collection<PsiField> get(final String s, final Project project, @NotNull final GlobalSearchScope scope) {
|
||||
return super.get(s, project, new JavaSourceFilterScope(scope));
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isKeyHighlySelective() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
-5
@@ -46,9 +46,4 @@ public class JavaFullClassNameIndex extends IntStubIndexExtension<PsiClass> {
|
||||
public Collection<PsiClass> get(final Integer integer, final Project project, @NotNull final GlobalSearchScope scope) {
|
||||
return super.get(integer, project, new JavaSourceFilterScope(scope));
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isKeyHighlySelective() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
-5
@@ -46,9 +46,4 @@ public class JavaMethodNameIndex extends StringStubIndexExtension<PsiMethod> {
|
||||
public Collection<PsiMethod> get(final String s, final Project project, @NotNull final GlobalSearchScope scope) {
|
||||
return super.get(s, project, new JavaSourceFilterScope(scope));
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isKeyHighlySelective() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
-5
@@ -46,9 +46,4 @@ public class JavaShortClassNameIndex extends StringStubIndexExtension<PsiClass>
|
||||
public Collection<PsiClass> get(final String s, final Project project, @NotNull final GlobalSearchScope scope) {
|
||||
return super.get(s, project, new JavaSourceFilterScope(scope));
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isKeyHighlySelective() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
-5
@@ -45,9 +45,4 @@ public class JavaStaticMemberNameIndex extends StringStubIndexExtension<PsiMembe
|
||||
public Collection<PsiMember> getStaticMembers(final String name, final Project project, @NotNull final GlobalSearchScope scope) {
|
||||
return super.get(name, project, new JavaSourceFilterScope(scope));
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isKeyHighlySelective() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
-5
@@ -45,9 +45,4 @@ public class JavaStaticMemberTypeIndex extends StringStubIndexExtension<PsiMembe
|
||||
public Collection<PsiMember> getStaticMembers(@NotNull final String shortTypeText, final Project project, @NotNull final GlobalSearchScope scope) {
|
||||
return super.get(shortTypeText, project, new JavaSourceFilterScope(scope));
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isKeyHighlySelective() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -34,9 +34,4 @@ public abstract class AbstractStubIndex<Key, Psi extends PsiElement> implements
|
||||
}
|
||||
|
||||
public int getCacheSize() { return 2 * 1024; }
|
||||
|
||||
@Override
|
||||
public boolean isKeyHighlySelective() {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -36,6 +36,4 @@ public interface StubIndexExtension<Key, Psi extends PsiElement> {
|
||||
KeyDescriptor<Key> getKeyDescriptor();
|
||||
|
||||
int getCacheSize();
|
||||
|
||||
boolean isKeyHighlySelective();
|
||||
}
|
||||
@@ -140,9 +140,4 @@ public class FilenameIndex extends ScalarIndexExtension<String> {
|
||||
}
|
||||
return files;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isKeyHighlySelective() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -131,8 +131,7 @@ public class StubIndexImpl extends StubIndex implements ApplicationComponent, Pe
|
||||
IndexInfrastructure.getStorageFile(indexKey),
|
||||
extension.getKeyDescriptor(),
|
||||
new StubIdExternalizer(),
|
||||
extension.getCacheSize(),
|
||||
extension.isKeyHighlySelective()
|
||||
extension.getCacheSize()
|
||||
);
|
||||
final MemoryIndexStorage<K, StubIdList> memStorage = new MemoryIndexStorage<K, StubIdList>(storage);
|
||||
myIndices.put(indexKey, new MyIndex<K>(memStorage));
|
||||
|
||||
Reference in New Issue
Block a user