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 Typ
    Methode
    Beschreibung
    default void
    initBeforeSearch(org.eclipse.core.runtime.IProgressMonitor monitor)
    Initialize all needed data before search is started
    boolean
    Answers true if the current instance supports parallel index search
    static boolean
    Checks if the given object implements this interface and also returns true for isParallelSearchSupported().
  • Methodendetails

    • isParallelSearchSupported

      boolean isParallelSearchSupported()
      Answers true if the current instance supports parallel index search
      Gibt zurück:
      Returns true if 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

      static boolean isParallelSearchSupported(Object o)
      Checks if the given object implements this interface and also returns true for isParallelSearchSupported().
      Parameter:
      o - The object that needs to be checked. null value will result in returning false.
      Gibt zurück:
      true if the given object can be used in parallel search.