org.apache.hadoop.hbase.hql
Class CreateCommand
java.lang.Object
org.apache.hadoop.hbase.hql.BasicCommand
org.apache.hadoop.hbase.hql.SchemaModificationCommand
org.apache.hadoop.hbase.hql.CreateCommand
- All Implemented Interfaces:
- Command, CommandFactory
public class CreateCommand
- extends SchemaModificationCommand
Creates tables.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CreateCommand
public CreateCommand(Writer o)
execute
public ReturnMsg execute(HBaseConfiguration conf)
- Description copied from interface:
Command
- Execute a command
- Parameters:
conf
- Configuration
- Returns:
- Result of command execution
setTable
public void setTable(String tableName)
- Sets the table to be created.
- Parameters:
tableName
- Table to be created
addColumnSpec
public void addColumnSpec(String column,
Map<String,Object> columnSpec)
- Adds a column specification.
- Parameters:
columnSpec
- Column specification
getCommandType
public Command.CommandType getCommandType()
- Specified by:
getCommandType
in interface Command
- Overrides:
getCommandType
in class BasicCommand
- Returns:
- Type of this command whether DDL, SELECT, INSERT, UPDATE, DELETE,
or SHELL.
Copyright © 2006 The Apache Software Foundation