org.apache.hadoop.hbase.shell
Class SelectCommand

java.lang.Object
  extended by org.apache.hadoop.hbase.shell.BasicCommand
      extended by org.apache.hadoop.hbase.shell.SelectCommand
All Implemented Interfaces:
Command, CommandFactory

public class SelectCommand
extends BasicCommand

Selects values from tables. TODO: INTO FILE is not yet implemented.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.hadoop.hbase.shell.Command
Command.CommandType
 
Field Summary
 
Fields inherited from class org.apache.hadoop.hbase.shell.BasicCommand
LINE_SEPARATOR
 
Fields inherited from interface org.apache.hadoop.hbase.shell.Command
FAMILY_INDICATOR
 
Constructor Summary
SelectCommand(Writer o, TableFormatter f)
           
 
Method Summary
 ReturnMsg execute(Configuration conf)
          Execute a command
 org.apache.hadoop.hbase.shell.SelectCommand.ParsedColumns getColumns(HBaseAdmin admin, boolean scanning)
          Make sense of the supplied list of columns.
static void main(String[] args)
           
 void setColumns(List<String> columns)
           
 void setLimit(int limit)
           
 void setRowKey(String rowKey)
           
 void setTable(String table)
           
 void setTimestamp(String timestamp)
           
 void setVersion(int version)
           
 void setWhere(boolean isWhereClause)
           
 
Methods inherited from class org.apache.hadoop.hbase.shell.BasicCommand
appendDelimiter, extractErrMsg, extractErrMsg, getBasicCommand, getCommand, getCommandType, getOut, print, println
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectCommand

public SelectCommand(Writer o,
                     TableFormatter f)
Method Detail

execute

public ReturnMsg execute(Configuration conf)
Description copied from interface: Command
Execute a command

Parameters:
conf - Configuration
Returns:
Result of command execution

getColumns

public org.apache.hadoop.hbase.shell.SelectCommand.ParsedColumns getColumns(HBaseAdmin admin,
                                                                            boolean scanning)
Make sense of the supplied list of columns.

Parameters:
admin - Admin to use.
Returns:
Interpretation of supplied list of columns.

setTable

public void setTable(String table)

setLimit

public void setLimit(int limit)

setWhere

public void setWhere(boolean isWhereClause)

setTimestamp

public void setTimestamp(String timestamp)

setColumns

public void setColumns(List<String> columns)

setRowKey

public void setRowKey(String rowKey)

setVersion

public void setVersion(int version)
Parameters:
version - Set maximum versions for this selection

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception


Copyright © 2006 The Apache Software Foundation