UpdateIndexOp.setProgressListener
Code IndexAdd Codota to your IDE (free)

Best Java code snippets using org.locationtech.geogig.porcelain.index.UpdateIndexOp.setProgressListener (Showing top 3 results out of 315)

origin: locationtech/geogig

      .setProgressListener(cli.getProgressListener())//
      .call();
} catch (IllegalStateException e) {
origin: org.locationtech.geogig/geogig-cli-core

      .setProgressListener(cli.getProgressListener())//
      .call();
} catch (IllegalStateException e) {
origin: org.locationtech.geogig/geogig-cli

  @Override
  protected void runInternal(GeogigCLI cli)
      throws InvalidParameterException, CommandFailedException, IOException {

    Repository repo = cli.getGeogig().getRepository();

    Envelope envelope = SpatialOps.parseNonReferencedBBOX(bbox);

    Index index = repo.command(UpdateIndexOp.class)//
        .setTreeRefSpec(treeRefSpec)//
        .setAttributeName(attribute)//
        .setExtraAttributes(extraAttributes)//
        .setOverwrite(overwrite)//
        .setAdd(add)//
        .setIndexHistory(indexHistory)//
        .setBounds(envelope)//
        .setProgressListener(cli.getProgressListener())//
        .call();

    if (cli.getProgressListener().isCanceled()) {
      cli.getConsole().println("Index update cancelled.");
    } else {
      cli.getConsole().println(
        "Index updated successfully: " + index.indexTreeId().toString().substring(0, 8));
    }

  }
}
org.locationtech.geogig.porcelain.indexUpdateIndexOpsetProgressListener

Popular methods of UpdateIndexOp

  • setAdd
    Add new extra attributes to the attributes already being tracked on the index.
  • setExtraAttributes
  • setIndexHistory
    Rebuild the indexes for the full history of the feature tree.
  • setTreeRefSpec
  • setAttributeName
  • setBounds
  • setOverwrite
    Overwrite old extra attributes with new ones.
  • call
  • command
  • contentsEqual
  • context
  • getProgressListener
  • context,
  • getProgressListener,
  • indexDatabase,
  • objectDatabase

Popular in Java

  • Start an intent from android
  • setContentView (Activity)
  • findViewById (Activity)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t

For IntelliJ IDEA,
Android Studio or Eclipse

  • Search for JavaScript code betaCodota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutBlogContact Us
  • Plugin user guideTerms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)