public class Shell extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Shell.Command
The Command class represents a command to be run in the shell.
|
static class |
Shell.PrintFile |
static interface |
Shell.PrintLine |
static class |
Shell.PrintShell |
static class |
Shell.TableOperation |
Modifier and Type | Field and Description |
---|---|
Map<String,Shell.Command> |
commandFactory |
static String |
helpLongOption |
static String |
helpOption |
static org.apache.log4j.Logger |
log |
static int |
NO_FIXED_ARG_LENGTH_CHECK |
Map<String,List<IteratorSetting>> |
scanIteratorOptions |
static String |
tableOption |
static String |
userOption |
Constructor and Description |
---|
Shell() |
Modifier and Type | Method and Description |
---|---|
void |
checkTableState() |
void |
config(String... args) |
void |
execCommand(String input,
boolean ignoreAuthTimeout,
boolean echoPrompt) |
Connector |
getConnector() |
AuthInfo |
getCredentials() |
Class<? extends Formatter> |
getFormatter()
Return the formatter for the current table.
|
Class<? extends Formatter> |
getFormatter(String tableName)
Return the formatter for the given table.
|
jline.ConsoleReader |
getReader() |
String |
getTableName() |
static boolean |
isDebuggingEnabled() |
boolean |
isVerbose() |
static void |
main(String[] args) |
void |
printBinaryRecords(Iterable<Map.Entry<Key,Value>> scanner,
boolean printTimestamps,
boolean paginate) |
static void |
printException(Exception e) |
void |
printInfo() |
void |
printLines(Iterator<String> lines,
boolean paginate) |
void |
printRecords(Iterable<Map.Entry<Key,Value>> scanner,
boolean printTimestamps,
boolean paginate) |
void |
printRecords(Iterable<Map.Entry<Key,Value>> scanner,
boolean printTimestamps,
boolean paginate,
Class<? extends Formatter> formatterClass) |
void |
printVerboseInfo() |
static String |
repeat(String s,
int c) |
static void |
setDebugging(boolean debuggingEnabled) |
void |
setExit(boolean exit) |
void |
setTableName(String tableName) |
int |
start() |
void |
updateUser(AuthInfo authInfo) |
public static final org.apache.log4j.Logger log
public static final int NO_FIXED_ARG_LENGTH_CHECK
public Map<String,List<IteratorSetting>> scanIteratorOptions
public final Map<String,Shell.Command> commandFactory
public static final String userOption
public static final String tableOption
public static final String helpOption
public static final String helpLongOption
public void config(String... args)
public Connector getConnector()
public static void main(String[] args) throws IOException
IOException
public int start() throws IOException
IOException
public void printInfo() throws IOException
IOException
public void printVerboseInfo() throws IOException
IOException
public void execCommand(String input, boolean ignoreAuthTimeout, boolean echoPrompt) throws IOException
IOException
public final void printLines(Iterator<String> lines, boolean paginate) throws IOException
IOException
public final void printRecords(Iterable<Map.Entry<Key,Value>> scanner, boolean printTimestamps, boolean paginate) throws IOException
IOException
public final void printRecords(Iterable<Map.Entry<Key,Value>> scanner, boolean printTimestamps, boolean paginate, Class<? extends Formatter> formatterClass) throws IOException
IOException
public final void printBinaryRecords(Iterable<Map.Entry<Key,Value>> scanner, boolean printTimestamps, boolean paginate) throws IOException
IOException
public void checkTableState()
public static final void printException(Exception e)
public static final void setDebugging(boolean debuggingEnabled)
public static final boolean isDebuggingEnabled()
public void setExit(boolean exit)
public boolean isVerbose()
public void setTableName(String tableName)
public String getTableName()
public jline.ConsoleReader getReader()
public void updateUser(AuthInfo authInfo) throws AccumuloException, AccumuloSecurityException
public AuthInfo getCredentials()
public Class<? extends Formatter> getFormatter()
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.