Package com.e1c.langtool.collector
Class ProjectMultiThreadCollectingOperation
java.lang.Object
com.e1c.langtool.collector.ProjectMultiThreadCollectingOperation
The instance allows execute collection operation in multi-threaded mode and visit each file of the project.
Operation supports 2 mode: collect raw source objects and collect using cache if possible.
To configure operation use
Builder#newBuilder(IProject).- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class -
Method Summary
Modifier and TypeMethodDescriptionvoidprocess(BiConsumer<Object, FeatureValue> action, org.eclipse.core.runtime.IProgressMonitor monitor) Process all project resources in multi-thread mode and collect feature value from files.voidprocessByFiles(BiConsumer<org.eclipse.core.resources.IFile, Collection<FeatureValue>> action, org.eclipse.core.runtime.IProgressMonitor monitor) Process all project resources in multi-thread mode and collect feature value from files.voidprocessRaw(BiConsumer<Object, FeatureValue> action, org.eclipse.core.runtime.IProgressMonitor monitor) Deprecated.
-
Method Details
-
process
public void process(BiConsumer<Object, FeatureValue> action, org.eclipse.core.runtime.IProgressMonitor monitor) Process all project resources in multi-thread mode and collect feature value from files. This method may use collecting cache instead of process file if cache exist.- Parameters:
action- the call back action to collect feature value, cannot benull.monitor- the monitor, cannot benull.- See Also:
-
IFeatureValueCollectingService#collectAll(IProject, ICollectingParameters, Consumer, ExecutorService, IProgressMonitor)
-
processByFiles
public void processByFiles(BiConsumer<org.eclipse.core.resources.IFile, Collection<FeatureValue>> action, org.eclipse.core.runtime.IProgressMonitor monitor) Process all project resources in multi-thread mode and collect feature value from files. This method may use collecting cache instead of process file if cache exist.- Parameters:
action- the call back action to collect all feature values of the file, cannot benull.monitor- the monitor, cannot benull.- See Also:
-
processRaw
@Deprecated public void processRaw(BiConsumer<Object, FeatureValue> action, org.eclipse.core.runtime.IProgressMonitor monitor) Deprecated.Process all project resources in multi-thread mode and collect feature value from files with getting raw source object.- Parameters:
action- the call back action to collect feature value with optional source object, cannot benull.monitor- the monitor, cannot benull.
-