org.apache.accumulo.core.util.shell.commands
Class ScanCommand
java.lang.Object
org.apache.accumulo.core.util.shell.Shell.Command
org.apache.accumulo.core.util.shell.commands.ScanCommand
- Direct Known Subclasses:
- DeleteManyCommand, GrepCommand, MaxRowCommand
public class ScanCommand
- extends Shell.Command
Field Summary |
protected org.apache.commons.cli.Option |
timestampOpt
|
Method Summary |
protected void |
addScanIterators(Shell shellState,
Scanner scanner,
String tableName)
|
String |
description()
|
int |
execute(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 |
printBinaryRecords(org.apache.commons.cli.CommandLine cl,
Shell shellState,
Iterable<Map.Entry<Key,Value>> scanner)
|
protected void |
printRecords(org.apache.commons.cli.CommandLine cl,
Shell shellState,
Iterable<Map.Entry<Key,Value>> scanner)
|
protected void |
printRecords(org.apache.commons.cli.CommandLine cl,
Shell shellState,
Iterable<Map.Entry<Key,Value>> scanner,
Class<? extends Formatter> formatter)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
timestampOpt
protected org.apache.commons.cli.Option timestampOpt
ScanCommand
public ScanCommand()
execute
public int execute(String fullCommand,
org.apache.commons.cli.CommandLine cl,
Shell shellState)
throws AccumuloException,
AccumuloSecurityException,
TableNotFoundException,
IOException,
org.apache.commons.cli.ParseException
- Specified by:
execute
in class Shell.Command
- Throws:
AccumuloException
AccumuloSecurityException
TableNotFoundException
IOException
org.apache.commons.cli.ParseException
addScanIterators
protected void addScanIterators(Shell shellState,
Scanner scanner,
String tableName)
printRecords
protected void printRecords(org.apache.commons.cli.CommandLine cl,
Shell shellState,
Iterable<Map.Entry<Key,Value>> scanner)
throws IOException
- Throws:
IOException
printRecords
protected void printRecords(org.apache.commons.cli.CommandLine cl,
Shell shellState,
Iterable<Map.Entry<Key,Value>> scanner,
Class<? extends Formatter> formatter)
throws IOException
- Throws:
IOException
printBinaryRecords
protected void printBinaryRecords(org.apache.commons.cli.CommandLine cl,
Shell shellState,
Iterable<Map.Entry<Key,Value>> scanner)
throws IOException
- Throws:
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 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.