Package org.eclipse.jdt.core.search
Interface IParallelizable
public interface IParallelizable
This interface can be used by
IJavaSearchScope
, JavaSearchParticipant
and SearchPattern
to
mark implementors as eligible for parallel index search.- Since:
- 3.25
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
initBeforeSearch
(org.eclipse.core.runtime.IProgressMonitor monitor) Initialize all needed data before search is startedboolean
Answerstrue
if the current instance supports parallel index searchstatic boolean
Checks if the given object implements this interface and also returnstrue
forisParallelSearchSupported()
.
-
Method Details
-
isParallelSearchSupported
boolean isParallelSearchSupported()Answerstrue
if the current instance supports parallel index search- Returns:
- 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- Parameters:
monitor
- non null progress callback- Throws:
JavaModelException
-
isParallelSearchSupported
Checks if the given object implements this interface and also returnstrue
forisParallelSearchSupported()
.- Parameters:
o
- The object that needs to be checked.null
value will result in returningfalse
.- Returns:
true
if the given object can be used in parallel search.
-