congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
RequiresRepository
Code IndexAdd Tabnine to your IDE (free)

How to use
RequiresRepository
in
org.locationtech.geogig.cli.annotation

Best Java code snippets using org.locationtech.geogig.cli.annotation.RequiresRepository (Showing top 20 results out of 315)

origin: locationtech/geogig

@RequiresRepository(false)
public abstract class DataStoreDescribe extends AbstractCommand implements CLICommand {
origin: org.locationtech.geogig/geogig-cli

  && cmdClass.getAnnotation(RequiresRepository.class).value()) {
String workingDir;
Platform platform = getPlatform();
origin: locationtech/geogig

  && cmdClass.getAnnotation(RequiresRepository.class).value()) {
String workingDir;
Platform platform = getPlatform();
origin: locationtech/geogig

@RequiresRepository(false)
@Parameters(commandNames = "postgres-ddl", commandDescription = "Creates a DDL script to initialize a Geogig PostgreSQL database")
public class PGCreateDDL extends AbstractCommand implements CLICommand {

  @Parameter(description = "<base URI> The URI without a repository name. (e.g. geogig postgres-ddl postgresql://localhost:5432/geogig_db?user=...&password=...)", arity = 1)
  private List<URI> baseuri = new ArrayList<>();

  protected @Override void runInternal(GeogigCLI cli) throws IOException {
    checkParameter(!baseuri.isEmpty(),
        "Usage: geogig ls-repos <base URI> (e.g. geogig ls-repos postgresql://localhost:5432/geogig_db?user=...&password=...)");

    URI baseURI = baseuri.get(0);
    List<String> statements = new CreateDDL().setBaseURI(baseURI).call();
    for (String st : statements) {
      cli.getConsole().println(st);
    }
  }
}

origin: org.locationtech.geogig/geogig-cli-core

  && cmdClass.getAnnotation(RequiresRepository.class).value()) {
String workingDir;
Platform platform = getPlatform();
origin: org.locationtech.geogig/geogig-geotools

@RequiresRepository(false)
public abstract class DataStoreDescribe extends AbstractCommand implements CLICommand {
origin: org.locationtech.geogig/geogig-cli-geotools

@RequiresRepository(false)
public abstract class DataStoreDescribe extends AbstractCommand implements CLICommand {
origin: org.locationtech.geogig/geogig-cli

@RequiresRepository(true)
@Parameters(commandNames = { "drop" }, commandDescription = "Remove an index from the repository.")
public class DropIndex extends AbstractCommand implements CLICommand {

  @Parameter(names = "--tree", required = true, description = "Name or path of the feature tree of the index to drop.")
  private String treeRefSpec;

  @Parameter(names = { "-a",
      "--attribute" }, description = "Indexed attribute of the index to drop.")
  private String attribute;

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

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

    repo.command(DropIndexOp.class)//
        .setTreeRefSpec(treeRefSpec)//
        .setAttributeName(attribute)//
        .setProgressListener(cli.getProgressListener())//
        .call();

    cli.getConsole().println("Index successfully dropped.");

  }
}

origin: org.locationtech.geogig/geogig-cli

@RequiresRepository(true)
@Parameters(commandNames = {
    "rebuild" }, commandDescription = "Rebuild the index trees of an index for the whole history of the repository.")
public class RebuildIndex extends AbstractCommand implements CLICommand {

  @Parameter(names = "--tree", required = true, description = "Name or path of the feature tree to rebuild the index for.")
  private String treeRefSpec;

  @Parameter(names = { "-a",
      "--attribute" }, description = "Attribute to rebuild the index for.")
  private String attribute;

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

    Repository repo = cli.getGeogig().getRepository();
    int treesRebuilt = repo.command(BuildFullHistoryIndexOp.class)//
        .setTreeRefSpec(treeRefSpec)//
        .setAttributeName(attribute)//
        .setProgressListener(cli.getProgressListener())//
        .call();

    cli.getConsole().println(treesRebuilt + " trees were rebuilt.");

  }
}

origin: locationtech/geogig

@RequiresRepository(false)
@Parameters(commandNames = "postgres-upgrade", commandDescription = "Upgrade the schema of a geogig PostgreSQL databse to the latest version")
public class PGStorageUpgrade extends AbstractCommand implements CLICommand {

  @Parameter(description = "<base URI> The URI without a repository name. (e.g. geogig postgres-upgrade postgresql://localhost:5432/geogig_db?user=...&password=...)", arity = 1)
  private List<URI> baseuri = new ArrayList<>();

  protected @Override void runInternal(GeogigCLI cli) throws IOException {
    checkParameter(!baseuri.isEmpty(),
        "Usage: geogig postgres-upgrade <base URI> (e.g. geogig postgres-upgrade postgresql://localhost:5432/geogig_db?user=...&password=...)");

    URI baseURI = baseuri.get(0);
    new PGDatabaseUpgrade().setBaseURI(baseURI).setProgressListener(cli.getProgressListener())
        .call();
  }

  public static void main(String... args) {
    Stopwatch sw = Stopwatch.createStarted();
    GlobalContextBuilder.builder(new PluginsContextBuilder());
    URI base = URI.create("postgresql://localhost:5432/test?user=postgres&password=geo123");
    ProgressListener listener = new GeogigCLI(new Console()).getProgressListener();
    new PGDatabaseUpgrade().setBaseURI(base).setProgressListener(listener).call();
    System.err.println("done in " + sw.stop());
  }

}

origin: org.locationtech.geogig/geogig-cli-core

@RequiresRepository(true)
@Parameters(commandNames = { "drop" }, commandDescription = "Remove an index from the repository.")
public class DropIndex extends AbstractCommand implements CLICommand {
origin: locationtech/geogig

@RequiresRepository(false)
@Parameters(commandNames = "describe", commandDescription = "Describe a shapefile schema")
public class ShpDescribe extends AbstractShpCommand implements CLICommand {
origin: org.locationtech.geogig/geogig-cli-geotools

@RequiresRepository(false)
@Parameters(commandNames = "describe", commandDescription = "Describe a shapefile schema")
public class ShpDescribe extends AbstractShpCommand implements CLICommand {
origin: locationtech/geogig

@RequiresRepository(true)
@Parameters(commandNames = { "drop" }, commandDescription = "Remove an index from the repository.")
public class DropIndex extends AbstractCommand implements CLICommand {
origin: locationtech/geogig

@RequiresRepository(true)
@Parameters(commandNames = {
    "rebuild" }, commandDescription = "Rebuild the index trees of an index for the whole history of the repository.")
origin: org.locationtech.geogig/geogig-geotools

@RequiresRepository(false)
@Parameters(commandNames = "describe", commandDescription = "Describe a shapefile schema")
public class ShpDescribe extends AbstractShpCommand implements CLICommand {
origin: org.locationtech.geogig/geogig-cli-core

@RequiresRepository(true)
@Parameters(commandNames = {
    "rebuild" }, commandDescription = "Rebuild the index trees of an index for the whole history of the repository.")
origin: org.locationtech.geogig/geogig-cli

@RequiresRepository(true)
@Parameters(commandNames = {
    "create" }, commandDescription = "Creates a spatial index for the specified feature tree")
origin: locationtech/geogig

@RequiresRepository(true)
@Parameters(commandNames = {
    "update" }, commandDescription = "Update the extra attributes of an index.")
origin: org.locationtech.geogig/geogig-cli

@RequiresRepository(true)
@Parameters(commandNames = {
    "update" }, commandDescription = "Update the extra attributes of an index.")
org.locationtech.geogig.cli.annotationRequiresRepository

Most used methods

  • <init>
  • value

Popular in Java

  • Making http post requests using okhttp
  • setRequestProperty (URLConnection)
  • putExtra (Intent)
  • 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
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Top 17 Free Sublime Text Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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