org.apache.accumulo.core.util.shell
Class Shell.ScanCommand

java.lang.Object
  extended by org.apache.accumulo.core.util.shell.Shell.Command
      extended by org.apache.accumulo.core.util.shell.Shell.ScanCommand
Direct Known Subclasses:
Shell.DeleteManyCommand, Shell.GrepCommand
Enclosing class:
Shell

public static class Shell.ScanCommand
extends Shell.Command


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.accumulo.core.util.shell.Shell.Command
Shell.Command.CompletionSet
 
Field Summary
protected  org.apache.commons.cli.Option timestampOpt
           
 
Constructor Summary
Shell.ScanCommand()
           
 
Method Summary
 java.lang.String description()
           
 int execute(java.lang.String fullCommand, org.apache.commons.cli.CommandLine cl, Shell shellState)
           
protected  void fetchColumns(org.apache.commons.cli.CommandLine cl, ScannerBase scanner)
           
protected  Authorizations getAuths(org.apache.commons.cli.CommandLine cl, Shell shellState)
           
 org.apache.commons.cli.Options getOptions()
           
protected  Range getRange(org.apache.commons.cli.CommandLine cl)
           
 int numArgs()
           
protected  void printRecords(org.apache.commons.cli.CommandLine cl, Shell shellState, java.lang.Iterable<java.util.Map.Entry<Key,Value>> scanner)
           
protected  void setScanIterators(Shell shellState, Scanner scanner)
           
 
Methods inherited from class org.apache.accumulo.core.util.shell.Shell.Command
getName, getOptionsWithHelp, printHelp, registerCompletion, registerCompletionForCommands, registerCompletionForTables, registerCompletionForUsers, registerCompletionGeneral, usage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

timestampOpt

protected org.apache.commons.cli.Option timestampOpt
Constructor Detail

Shell.ScanCommand

public Shell.ScanCommand()
Method Detail

execute

public int execute(java.lang.String fullCommand,
                   org.apache.commons.cli.CommandLine cl,
                   Shell shellState)
            throws AccumuloException,
                   AccumuloSecurityException,
                   TableNotFoundException,
                   java.io.IOException,
                   org.apache.commons.cli.ParseException
Specified by:
execute in class Shell.Command
Throws:
AccumuloException
AccumuloSecurityException
TableNotFoundException
java.io.IOException
org.apache.commons.cli.ParseException

setScanIterators

protected void setScanIterators(Shell shellState,
                                Scanner scanner)
                         throws java.io.IOException
Throws:
java.io.IOException

printRecords

protected void printRecords(org.apache.commons.cli.CommandLine cl,
                            Shell shellState,
                            java.lang.Iterable<java.util.Map.Entry<Key,Value>> scanner)
                     throws java.io.IOException
Throws:
java.io.IOException

fetchColumns

protected void fetchColumns(org.apache.commons.cli.CommandLine cl,
                            ScannerBase scanner)

getRange

protected Range getRange(org.apache.commons.cli.CommandLine cl)

getAuths

protected Authorizations getAuths(org.apache.commons.cli.CommandLine cl,
                                  Shell shellState)
                           throws AccumuloSecurityException,
                                  AccumuloException
Throws:
AccumuloSecurityException
AccumuloException

description

public java.lang.String description()
Specified by:
description in class Shell.Command

getOptions

public org.apache.commons.cli.Options getOptions()
Overrides:
getOptions in class Shell.Command

numArgs

public int numArgs()
Specified by:
numArgs in class Shell.Command


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.