Tabnine Logo
DiffCount.setRightSource
Code IndexAdd Tabnine to your IDE (free)

How to use
setRightSource
method
in
org.locationtech.geogig.plumbing.DiffCount

Best Java code snippets using org.locationtech.geogig.plumbing.DiffCount.setRightSource (Showing top 1 results out of 315)

origin: locationtech/geogig

private CompletableFuture<LayerDiffSummary> run(final String path, final NodeRef left,
    final NodeRef right) {
  final ObjectId leftTreeId = left == null ? RevTree.EMPTY_TREE_ID : left.getObjectId();
  final ObjectId rightTreeId = right == null ? RevTree.EMPTY_TREE_ID : right.getObjectId();
  final RevTree leftTree = left == null ? RevTree.EMPTY : leftSource.getTree(leftTreeId);
  final RevTree rightTree = right == null ? RevTree.EMPTY : rightSource.getTree(rightTreeId);
  CompletableFuture<DiffObjectCount> diffCount = CompletableFuture.supplyAsync(() -> {
    DiffObjectCount count = command(DiffCount.class).setOldTree(leftTree)
        .setNewTree(rightTree).setLeftSource(leftSource).setRightSource(rightSource)
        .call();
    return count;
  });
  CompletableFuture<org.locationtech.geogig.plumbing.diff.DiffSummary<BoundingBox, BoundingBox>> diffBounds;
  diffBounds = CompletableFuture.supplyAsync(() -> {
    DiffSummary<BoundingBox, BoundingBox> boundsDiff;
    boundsDiff = command(DiffBounds.class).setOldVersion(leftTree).setNewVersion(rightTree)
        .setLeftSource(leftSource).setRightSource(rightSource).call();
    return boundsDiff;
  });
  return diffCount.thenCombine(diffBounds,
      (count, bounds) -> toSummary(path, leftTree, rightTree, count, bounds));
}
org.locationtech.geogig.plumbingDiffCountsetRightSource

Popular methods of DiffCount

  • call
  • setNewVersion
  • setOldVersion
  • setNewTree
  • setFilter
  • setOldTree
  • setProgressListener
  • addFilter
  • command
  • getTree
  • objectDatabase
  • setLeftSource
  • objectDatabase,
  • setLeftSource

Popular in Java

  • Creating JSON documents from java classes using gson
  • scheduleAtFixedRate (Timer)
  • getSharedPreferences (Context)
  • onRequestPermissionsResult (Fragment)
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now