org.apache.accumulo.core.util.shell.commands
Class GrepCommand

java.lang.Object
  extended by org.apache.accumulo.core.util.shell.Shell.Command
      extended by org.apache.accumulo.core.util.shell.commands.ScanCommand
          extended by org.apache.accumulo.core.util.shell.commands.GrepCommand
Direct Known Subclasses:
EGrepCommand

public class GrepCommand
extends ScanCommand


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.accumulo.core.util.shell.Shell.Command
Shell.Command.CompletionSet
 
Field Summary
 
Fields inherited from class org.apache.accumulo.core.util.shell.commands.ScanCommand
timestampOpt
 
Constructor Summary
GrepCommand()
           
 
Method Summary
 String description()
           
 int execute(String fullCommand, org.apache.commons.cli.CommandLine cl, Shell shellState)
           
 org.apache.commons.cli.Options getOptions()
           
 int numArgs()
          If the number of arguments is not always zero (not including those arguments handled through Options), make sure to override the Shell.Command.usage() method.
protected  void setUpIterator(int prio, String name, String term, BatchScanner scanner, org.apache.commons.cli.CommandLine cl)
           
 String usage()
           
 
Methods inherited from class org.apache.accumulo.core.util.shell.commands.ScanCommand
addScanIterators, fetchColumns, getAuths, getFormatter, getInterpreter, getRange, getTimeout, printBinaryRecords, printBinaryRecords, printRecords, printRecords
 
Methods inherited from class org.apache.accumulo.core.util.shell.Shell.Command
getName, getOptionsWithHelp, printHelp, printHelp, registerCompletion, registerCompletionForCommands, registerCompletionForTables, registerCompletionForUsers, registerCompletionGeneral
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GrepCommand

public GrepCommand()
Method Detail

execute

public int execute(String fullCommand,
                   org.apache.commons.cli.CommandLine cl,
                   Shell shellState)
            throws Exception
Overrides:
execute in class ScanCommand
Throws:
Exception

setUpIterator

protected void setUpIterator(int prio,
                             String name,
                             String term,
                             BatchScanner scanner,
                             org.apache.commons.cli.CommandLine cl)
                      throws IOException
Throws:
IOException

description

public String description()
Overrides:
description in class ScanCommand

getOptions

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

usage

public String usage()
Overrides:
usage in class Shell.Command

numArgs

public int numArgs()
Description copied from class: Shell.Command
If the number of arguments is not always zero (not including those arguments handled through Options), make sure to override the Shell.Command.usage() method. Otherwise, Shell.Command.usage() does need to be overridden.

Overrides:
numArgs in class ScanCommand


Copyright © 2013 Apache Accumulo Project. All Rights Reserved.