Package org.apache.accumulo.core.cli

Examples of org.apache.accumulo.core.cli.ScannerOpts


  }

  public static void main(String[] args) throws Exception {
   
    final CollectOptions opts = new CollectOptions();
    final ScannerOpts scanOpts = new ScannerOpts();
    opts.parseArgs(CollectTabletStats.class.getName(), args, scanOpts);
   
    String columnsTmp[] = new String[] {};
    if (opts.columns != null)
      columnsTmp = opts.columns.split(",");
View Full Code Here


    Scanner scanner = new MockInstance("counttest").getConnector("root", new PasswordToken("")).createScanner("dirlisttable", new Authorizations());
    scanner.fetchColumn(new Text("dir"), new Text("counts"));
    assertFalse(scanner.iterator().hasNext());
   
    Opts opts = new Opts();
    ScannerOpts scanOpts = new ScannerOpts();
    BatchWriterOpts bwOpts = new BatchWriterOpts();
    opts.instance = "counttest";
    opts.tableName = "dirlisttable";
    opts.password = new Password("secret");
    opts.mock = true;
View Full Code Here

    Opts() { super("trace");}
  }
 
  public static void main(String[] args) throws Exception {
    Opts opts = new Opts();
    ScannerOpts scanOpts = new ScannerOpts();
    opts.parseArgs(TraceDump.class.getName(), args, scanOpts);
    int code = 0;
    if (opts.list) {
      code = listSpans(opts, scanOpts);
    }
View Full Code Here

    long sleepTime = 100;
  }
 
  public static void main(String[] args) throws Exception {
    Opts opts = new Opts();
    ScannerOpts scanOpts = new ScannerOpts();
    opts.parseArgs(ContinuousQuery.class.getName(), args, scanOpts);
   
    Connector conn = opts.getConnector();
    Scanner scanner = conn.createScanner(opts.getTableName(), opts.auths);
    scanner.setBatchSize(scanOpts.scanBatchSize);
View Full Code Here

  static class Opts extends ClientOnRequiredTable {
  }
 
  public static void main(String[] args) {
    Opts opts = new Opts();
    ScannerOpts scanOpts = new ScannerOpts();
    opts.parseArgs(ContinuousStatsCollector.class.getName(), args, scanOpts);
    Timer jtimer = new Timer();
   
    jtimer.schedule(new StatsCollectionTask(opts, scanOpts.scanBatchSize), 0, 30000);
  }
View Full Code Here

  public static void verify(Connector connector, int rows, int cols, int width, int offset) throws Exception {
    verify(connector, rows, cols, width, offset, COLF);
  }
 
  private static void verify(Connector connector, int rows, int cols, int width, int offset, String colf) throws Exception {
    ScannerOpts scannerOpts = new ScannerOpts();
    VerifyIngest.Opts opts = new VerifyIngest.Opts();
    opts.rows = rows;
    opts.cols = cols;
    opts.dataSize = width;
    opts.startRow = offset;
View Full Code Here

    runTest(c, "bt");
  }

  public static void runTest(Connector c, String tableName) throws Exception {
    BatchWriterOpts bwOpts = new BatchWriterOpts();
    ScannerOpts scanOpts = new ScannerOpts();
    TestBinaryRows.Opts opts = new TestBinaryRows.Opts();
    opts.tableName = tableName;
    opts.start = 0;
    opts.num = 100000;
    opts.mode = "ingest";
View Full Code Here

    boolean useGet = false;
  }
 
  public static void main(String[] args) {
    Opts opts = new Opts();
    ScannerOpts scanOpts = new ScannerOpts();
    opts.parseArgs(VerifyIngest.class.getName(), args, scanOpts);
    Instance instance = opts.getInstance();
    try {
      if (opts.trace) {
        String name = VerifyIngest.class.getSimpleName();
View Full Code Here

    String endKey;
  }
 
  public static void main(String[] args) throws AccumuloException, AccumuloSecurityException, TableNotFoundException {
    Opts opts = new Opts();
    ScannerOpts scanOpts = new ScannerOpts();
    opts.parseArgs(ReadData.class.getName(), args, scanOpts);
   
    Connector connector = opts.getConnector();
   
    Scanner scan = connector.createScanner(opts.tableName, opts.auths);
View Full Code Here

    long numToScan = 0;
  }
 
  public static void main(String[] args) throws Exception {
    Opts opts = new Opts();
    ScannerOpts scanOpts = new ScannerOpts();
    opts.parseArgs(ContinuousScanner.class.getName(), args, scanOpts);
   
    Random r = new Random();

    long distance = 1000000000000l;
View Full Code Here

TOP

Related Classes of org.apache.accumulo.core.cli.ScannerOpts

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.