Package org.apache.accumulo.core.cli

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


  /**
   * Class to analyze undefined references and accumulo logs to isolate the time/tablet where data was lost.
   */
  public static void main(String[] args) throws Exception {
    Opts opts = new Opts();
    BatchScannerOpts bsOpts = new BatchScannerOpts();
    opts.parseArgs(UndefinedAnalyzer.class.getName(), args, opts);
   
    List<UndefinedNode> undefs = new ArrayList<UndefinedNode>();
   
    BufferedReader reader = new BufferedReader(new InputStreamReader(System.in, Constants.UTF8));
View Full Code Here


  public static void main(String[] args) throws Exception {
   
    Opts opts = new Opts();
    ScannerOpts scanOpts = new ScannerOpts();
    BatchScannerOpts bsOpts = new BatchScannerOpts();
    opts.parseArgs(ContinuousBatchWalker.class.getName(), args, scanOpts, bsOpts);
   
    Random r = new Random();
    Authorizations auths = opts.randomAuths.getAuths(r);
View Full Code Here

   * Scans over a specified number of entries to Accumulo using a {@link BatchScanner}. Completes scans twice to compare times for a fresh query with those for
   * a repeated query which has cached metadata and connections already established.
   */
  public static void main(String[] args) throws AccumuloException, AccumuloSecurityException, TableNotFoundException {
    Opts opts = new Opts();
    BatchScannerOpts bsOpts = new BatchScannerOpts();
    opts.parseArgs(RandomBatchScanner.class.getName(), args, bsOpts);
   
    Connector connector = opts.getConnector();
    BatchScanner batchReader = connector.createBatchScanner(opts.tableName, opts.auths, bsOpts.scanThreads);
    batchReader.setTimeout(bsOpts.scanTimeout, TimeUnit.MILLISECONDS);
View Full Code Here

    List<String> terms = new ArrayList<String>();
  }
 
  public static void main(String[] args) throws Exception {
    Opts opts = new Opts();
    BatchScannerOpts bsOpts = new BatchScannerOpts();
    opts.parseArgs(Query.class.getName(), args, bsOpts);
   
    Connector conn = opts.getConnector();
    BatchScanner bs = conn.createBatchScanner(opts.tableName, opts.auths, bsOpts.scanThreads);
    bs.setTimeout(bsOpts.scanTimeout, TimeUnit.MILLISECONDS);
View Full Code Here

   * Scans over a specified number of entries to Accumulo using a {@link BatchScanner}. Completes scans twice to compare times for a fresh query with those for
   * a repeated query which has cached metadata and connections already established.
   */
  public static void main(String[] args) throws AccumuloException, AccumuloSecurityException, TableNotFoundException {
    Opts opts = new Opts();
    BatchScannerOpts bsOpts = new BatchScannerOpts();
    opts.parseArgs(RandomBatchScanner.class.getName(), args, bsOpts);
   
    Connector connector = opts.getConnector();
    BatchScanner batchReader = connector.createBatchScanner(opts.tableName, opts.auths, bsOpts.scanThreads);
    batchReader.setTimeout(bsOpts.scanTimeout, TimeUnit.MILLISECONDS);
View Full Code Here

   * @throws AccumuloSecurityException
   * @throws TableNotFoundException
   */
  public static void main(String[] args) throws AccumuloException, AccumuloSecurityException, TableNotFoundException {
    Opts opts = new Opts();
    BatchScannerOpts bsOpts = new BatchScannerOpts();
    opts.parseArgs(RandomBatchScanner.class.getName(), args, bsOpts);
   
    Connector connector = opts.getConnector();
    BatchScanner batchReader = connector.createBatchScanner(opts.tableName, opts.auths, bsOpts.scanThreads);
    batchReader.setTimeout(bsOpts.scanTimeout, TimeUnit.MILLISECONDS);
View Full Code Here

  /**
   * Class to analyze undefined references and accumulo logs to isolate the time/tablet where data was lost.
   */
  public static void main(String[] args) throws Exception {
    Opts opts = new Opts();
    BatchScannerOpts bsOpts = new BatchScannerOpts();
    opts.parseArgs(UndefinedAnalyzer.class.getName(), args, opts);
   
    List<UndefinedNode> undefs = new ArrayList<UndefinedNode>();
   
    BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
View Full Code Here

  public static void main(String[] args) throws Exception {
   
    Opts opts = new Opts();
    ScannerOpts scanOpts = new ScannerOpts();
    BatchScannerOpts bsOpts = new BatchScannerOpts();
    opts.parseArgs(ContinuousBatchWalker.class.getName(), args, scanOpts, bsOpts);
   
    Random r = new Random();
    Authorizations auths = opts.randomAuths.getAuths(r);
View Full Code Here

  /**
   * Class to analyze undefined references and accumulo logs to isolate the time/tablet where data was lost.
   */
  public static void main(String[] args) throws Exception {
    Opts opts = new Opts();
    BatchScannerOpts bsOpts = new BatchScannerOpts();
    opts.parseArgs(UndefinedAnalyzer.class.getName(), args, bsOpts);

    List<UndefinedNode> undefs = new ArrayList<UndefinedNode>();

    BufferedReader reader = new BufferedReader(new InputStreamReader(System.in, Constants.UTF8));
View Full Code Here

  /**
   * @param args
   */
  public static void main(String[] args) throws Exception {
    Opts opts = new Opts();
    BatchScannerOpts bsOpts = new BatchScannerOpts();
    opts.parseArgs(Query.class.getName(), args, bsOpts);
   
    Connector conn = opts.getConnector();
    BatchScanner bs = conn.createBatchScanner(opts.tableName, opts.auths, bsOpts.scanThreads);
    bs.setTimeout(bsOpts.scanTimeout, TimeUnit.MILLISECONDS);
View Full Code Here

TOP

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

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.