Class ProjectMultiThreadCollectingOperation

java.lang.Object
com.e1c.langtool.collector.ProjectMultiThreadCollectingOperation

public class ProjectMultiThreadCollectingOperation extends Object
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:
  • 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 be null.
      monitor - the monitor, cannot be null.
      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 be null.
      monitor - the monitor, cannot be null.
      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 be null.
      monitor - the monitor, cannot be null.