Schnittstelle IParallelizable
- Alle bekannten Implementierungsklassen:
AbstractJavaSearchScope,AbstractSearchScope,AndPattern,ConstructorDeclarationPattern,ConstructorPattern,DeclarationOfAccessedFieldsPattern,DeclarationOfReferencedMethodsPattern,DeclarationOfReferencedTypesPattern,FieldPattern,HierarchyScope,IntersectingPattern,JavaSearchParticipant,JavaSearchPattern,JavaSearchScope,JavaWorkspaceScope,LocalVariablePattern,MethodDeclarationPattern,MethodPattern,ModulePattern,MultiTypeDeclarationPattern,OrPattern,PackageDeclarationPattern,PackageReferencePattern,QualifiedTypeDeclarationPattern,SecondaryTypeDeclarationPattern,SuperTypeReferencePattern,TypeDeclarationPattern,TypeParameterPattern,TypeReferencePattern,UnindexedSearchScope,VariablePattern
public interface IParallelizable
This interface can be used by
IJavaSearchScope, JavaSearchParticipant and SearchPattern to
mark implementors as eligible for parallel index search.- Seit:
- 3.25
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungdefault voidinitBeforeSearch(org.eclipse.core.runtime.IProgressMonitor monitor) Initialize all needed data before search is startedbooleanAnswerstrueif the current instance supports parallel index searchstatic booleanChecks if the given object implements this interface and also returnstrueforisParallelSearchSupported().
-
Methodendetails
-
isParallelSearchSupported
boolean isParallelSearchSupported()Answerstrueif the current instance supports parallel index search- Gibt zurück:
- Returns
trueif the implementation is safe to be used in a parallel search.
-
initBeforeSearch
default void initBeforeSearch(org.eclipse.core.runtime.IProgressMonitor monitor) throws JavaModelException Initialize all needed data before search is started- Parameter:
monitor- non null progress callback- Löst aus:
JavaModelException
-
isParallelSearchSupported
Checks if the given object implements this interface and also returnstrueforisParallelSearchSupported().- Parameter:
o- The object that needs to be checked.nullvalue will result in returningfalse.- Gibt zurück:
trueif the given object can be used in parallel search.
-