removed high selectivity for stub indices

This commit is contained in:
Maxim.Mossienko
2012-08-07 16:24:04 +04:00
parent a7ce9ad0ae
commit 132fee7015
10 changed files with 1 additions and 44 deletions
@@ -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;
}
}
@@ -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;
}
}
@@ -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;
}
}
@@ -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;
}
}
@@ -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;
}
}
@@ -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));