congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
DiffCount.setNewVersion
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: locationtech/geogig

/**
 * @param pathFilter if specified, only changes that match the filter will be returned
 * @return the number differences between STAGE_HEAD and HEAD based on the path filter.
 */
@Override
public DiffObjectCount countStaged(final @Nullable List<String> pathFilters) {
  DiffObjectCount count = context.command(DiffCount.class).setOldVersion(Ref.HEAD)
      .setNewVersion(Ref.STAGE_HEAD).setFilter(pathFilters).call();
  return count;
}
origin: locationtech/geogig

/**
 * @param pathFilter if specified, only changes that match the filter will be counted
 * @return the number differences between the work tree and the index based on the path filter.
 */
@Override
public DiffObjectCount countUnstaged(final @Nullable String pathFilter) {
  DiffObjectCount count = context.command(DiffCount.class).setOldVersion(Ref.STAGE_HEAD)
      .setNewVersion(Ref.WORK_HEAD).addFilter(pathFilter).call();
  return count;
}
origin: org.locationtech.geogig/geogig-core

/**
 * @param pathFilter if specified, only changes that match the filter will be counted
 * @return the number differences between the work tree and the index based on the path filter.
 */
@Override
public DiffObjectCount countUnstaged(final @Nullable String pathFilter) {
  DiffObjectCount count = context.command(DiffCount.class).setOldVersion(Ref.STAGE_HEAD)
      .setNewVersion(Ref.WORK_HEAD).addFilter(pathFilter).call();
  return count;
}
origin: org.locationtech.geogig/geogig-core

/**
 * @param pathFilter if specified, only changes that match the filter will be returned
 * @return the number differences between STAGE_HEAD and HEAD based on the path filter.
 */
@Override
public DiffObjectCount countStaged(final @Nullable List<String> pathFilters) {
  DiffObjectCount count = context.command(DiffCount.class).setOldVersion(Ref.HEAD)
      .setNewVersion(Ref.STAGE_HEAD).setFilter(pathFilters).call();
  return count;
}
origin: locationtech/geogig

private String composeDefaultCommitMessage() {
  final DiffObjectCount diffCount = this.geogigTx.command(DiffCount.class)
      .setOldVersion(Ref.HEAD).setNewVersion(Ref.STAGE_HEAD).call();
origin: org.locationtech.geogig/geogig-cli

    .setNewVersion(newTreeish).call();
long added = count.getFeaturesAdded();
long removed = count.getFeaturesRemoved();
origin: locationtech/geogig

    .setNewVersion(newTreeish).call();
long added = count.getFeaturesAdded();
long removed = count.getFeaturesRemoved();
origin: org.locationtech.geogig/geogig-cli-remoting

    .setNewVersion(newTreeish).call();
long added = count.getFeaturesAdded();
long removed = count.getFeaturesRemoved();
origin: locationtech/geogig

    .setNewVersion(newVersion);
cdiff.setFilter(paths);
DiffObjectCount count = cdiff.call();
origin: org.locationtech.geogig/geogig-cli

    .setNewVersion(newVersion);
cdiff.setFilter(paths);
DiffObjectCount count = cdiff.call();
origin: org.locationtech.geogig/geogig-cli-core

    .setNewVersion(newVersion);
cdiff.setFilter(paths);
DiffObjectCount count = cdiff.call();
origin: org.locationtech.geogig/geogig-cli

String newSpec = commit.getId().toString();
DiffObjectCount diffCount = geogig.command(DiffCount.class).setOldVersion(oldSpec)
    .setNewVersion(newSpec).call();
origin: locationtech/geogig

String newSpec = commit.getId().toString();
DiffObjectCount diffCount = geogig.command(DiffCount.class).setOldVersion(oldSpec)
    .setNewVersion(newSpec).call();
origin: org.locationtech.geogig/geogig-cli-core

String newSpec = commit.getId().toString();
DiffObjectCount diffCount = geogig.command(DiffCount.class).setOldVersion(oldSpec)
    .setNewVersion(newSpec).call();
origin: locationtech/geogig

@Test
public void testReprojectToTargetBucketTree() throws Exception {
  final int leftCount = CanonicalNodeNameOrder.normalizedSizeLimit(0) * 2;
  final int rightCount = CanonicalNodeNameOrder.normalizedSizeLimit(0) * 3;
  WorkingTree workingTree = geogig.getRepository().workingTree();
  final String typeName = "newpoints";
  final DefaultProgressListener listener = new DefaultProgressListener();
  workingTree.insert(new TestFeatureIterator(typeName, leftCount), listener);
  geogig.command(AddOp.class).call();
  workingTree.insert(new TestFeatureIterator(typeName, rightCount), listener);
  {// sanity check
    long diffFeatures = geogig.command(DiffCount.class).setOldVersion("STAGE_HEAD")
        .setNewVersion("WORK_HEAD").call().featureCount();
    assertEquals(rightCount - leftCount, diffFeatures);
  }
  DiffBounds cmd = geogig.command(DiffBounds.class).setOldVersion("STAGE_HEAD")
      .setNewVersion("WORK_HEAD");
  final CoordinateReferenceSystem nativeCrs = CRS.decode("EPSG:3857");
  final DiffSummary<BoundingBox, BoundingBox> diffInNativeCrs = cmd.setCRS(nativeCrs).call();
  CoordinateReferenceSystem targetcrs = CRS.decode("EPSG:4326", true);
  cmd.setCRS(targetcrs);
  DiffSummary<BoundingBox, BoundingBox> reprojected = cmd.call();
  assertEquals(targetcrs, reprojected.getLeft().getCoordinateReferenceSystem());
  assertEquals(targetcrs, reprojected.getRight().getCoordinateReferenceSystem());
  assertEquals(targetcrs, reprojected.getMergedResult().get().getCoordinateReferenceSystem());
  ReferencedEnvelope e = new ReferencedEnvelope(diffInNativeCrs.getRight());
  ReferencedEnvelope expected = e.transform(targetcrs, true);
  BoundingBox actual = reprojected.getRight();
  assertEquals(expected, actual);
}
origin: org.locationtech.geogig/geogig-core

@Test
public void testReprojectToTargetBucketTree() throws Exception {
  final int leftCount = CanonicalNodeNameOrder.normalizedSizeLimit(0) * 2;
  final int rightCount = CanonicalNodeNameOrder.normalizedSizeLimit(0) * 3;
  WorkingTree workingTree = geogig.getRepository().workingTree();
  final String typeName = "newpoints";
  final DefaultProgressListener listener = new DefaultProgressListener();
  workingTree.insert(new TestFeatureIterator(typeName, leftCount), listener);
  geogig.command(AddOp.class).call();
  workingTree.insert(new TestFeatureIterator(typeName, rightCount), listener);
  {// sanity check
    long diffFeatures = geogig.command(DiffCount.class).setOldVersion("STAGE_HEAD")
        .setNewVersion("WORK_HEAD").call().featureCount();
    assertEquals(rightCount - leftCount, diffFeatures);
  }
  DiffBounds cmd = geogig.command(DiffBounds.class).setOldVersion("STAGE_HEAD")
      .setNewVersion("WORK_HEAD");
  final CoordinateReferenceSystem nativeCrs = CRS.decode("EPSG:3857");
  final DiffSummary<BoundingBox, BoundingBox> diffInNativeCrs = cmd.setCRS(nativeCrs).call();
  CoordinateReferenceSystem targetcrs = CRS.decode("EPSG:4326", true);
  cmd.setCRS(targetcrs);
  DiffSummary<BoundingBox, BoundingBox> reprojected = cmd.call();
  assertEquals(targetcrs, reprojected.getLeft().getCoordinateReferenceSystem());
  assertEquals(targetcrs, reprojected.getRight().getCoordinateReferenceSystem());
  assertEquals(targetcrs, reprojected.getMergedResult().get().getCoordinateReferenceSystem());
  ReferencedEnvelope e = new ReferencedEnvelope(diffInNativeCrs.getRight());
  ReferencedEnvelope expected = e.transform(targetcrs, true);
  BoundingBox actual = reprojected.getRight();
  assertEquals(expected, actual);
}
org.locationtech.geogig.plumbingDiffCountsetNewVersion

Popular methods of DiffCount

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

Popular in Java

  • Finding current android device location
  • getResourceAsStream (ClassLoader)
  • onCreateOptionsMenu (Activity)
  • getContentResolver (Context)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • From CI to AI: The AI layer in your organization
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