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

java.lang.Object
  extended by org.apache.accumulo.core.util.shell.commands.OptUtil

public abstract class OptUtil
extends Object


Nested Class Summary
static class OptUtil.AdlOpt
           
 
Field Summary
static String END_ROW_OPT
           
static String START_ROW_OPT
           
 
Constructor Summary
OptUtil()
           
 
Method Summary
static org.apache.commons.cli.OptionGroup addListDeleteGroup(String name)
           
static org.apache.commons.cli.Option endRowOpt()
           
static OptUtil.AdlOpt getAldOpt(org.apache.commons.cli.CommandLine cl)
           
static org.apache.hadoop.io.Text getEndRow(org.apache.commons.cli.CommandLine cl)
           
static String getNamespaceOpt(org.apache.commons.cli.CommandLine cl, Shell shellState)
           
static org.apache.hadoop.io.Text getStartRow(org.apache.commons.cli.CommandLine cl)
           
static String getTableOpt(org.apache.commons.cli.CommandLine cl, Shell shellState)
           
static org.apache.commons.cli.Option namespaceOpt()
           
static org.apache.commons.cli.Option namespaceOpt(String description)
           
static org.apache.commons.cli.Option startRowOpt()
           
static org.apache.commons.cli.Option tableOpt()
           
static org.apache.commons.cli.Option tableOpt(String description)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

START_ROW_OPT

public static final String START_ROW_OPT
See Also:
Constant Field Values

END_ROW_OPT

public static final String END_ROW_OPT
See Also:
Constant Field Values
Constructor Detail

OptUtil

public OptUtil()
Method Detail

getTableOpt

public static String getTableOpt(org.apache.commons.cli.CommandLine cl,
                                 Shell shellState)
                          throws TableNotFoundException
Throws:
TableNotFoundException

getNamespaceOpt

public static String getNamespaceOpt(org.apache.commons.cli.CommandLine cl,
                                     Shell shellState)
                              throws NamespaceNotFoundException,
                                     AccumuloException,
                                     AccumuloSecurityException
Throws:
NamespaceNotFoundException
AccumuloException
AccumuloSecurityException

tableOpt

public static org.apache.commons.cli.Option tableOpt()

tableOpt

public static org.apache.commons.cli.Option tableOpt(String description)

namespaceOpt

public static org.apache.commons.cli.Option namespaceOpt()

namespaceOpt

public static org.apache.commons.cli.Option namespaceOpt(String description)

getAldOpt

public static OptUtil.AdlOpt getAldOpt(org.apache.commons.cli.CommandLine cl)

addListDeleteGroup

public static org.apache.commons.cli.OptionGroup addListDeleteGroup(String name)

startRowOpt

public static org.apache.commons.cli.Option startRowOpt()

endRowOpt

public static org.apache.commons.cli.Option endRowOpt()

getStartRow

public static org.apache.hadoop.io.Text getStartRow(org.apache.commons.cli.CommandLine cl)
                                             throws UnsupportedEncodingException
Throws:
UnsupportedEncodingException

getEndRow

public static org.apache.hadoop.io.Text getEndRow(org.apache.commons.cli.CommandLine cl)
                                           throws UnsupportedEncodingException
Throws:
UnsupportedEncodingException


Copyright © 2015 Apache Accumulo Project. All rights reserved.