public class AddTableCommand extends AbstractBaseAdminCommand implements Command
DEFAULT_CLUSTER_NAME, DEFAULT_ZK_ADDRESS| Constructor and Description |
|---|
AddTableCommand() |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup() |
String |
description() |
boolean |
execute() |
boolean |
getHelp() |
String |
getName() |
boolean |
sendTableCreationRequest(com.fasterxml.jackson.databind.JsonNode node) |
AddTableCommand |
setControllerHost(String controllerHost) |
AddTableCommand |
setControllerPort(String controllerPort) |
AddTableCommand |
setExecute(boolean exec) |
AddTableCommand |
setSchemaFile(String schemaFile) |
AddTableCommand |
setTableConfigFile(String tableConfigFile) |
String |
toString() |
void |
uploadSchema() |
getPID, savePID, sendDeleteRequest, sendPostRequest, sendRequestprintExamples, printUsageclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitprintUsagepublic String getName()
getName in class AbstractBaseCommandpublic String description()
description in interface Commandpublic void cleanup()
cleanup in class AbstractBaseCommandpublic AddTableCommand setTableConfigFile(String tableConfigFile)
public AddTableCommand setSchemaFile(String schemaFile)
public AddTableCommand setControllerHost(String controllerHost)
public AddTableCommand setControllerPort(String controllerPort)
public AddTableCommand setExecute(boolean exec)
public boolean sendTableCreationRequest(com.fasterxml.jackson.databind.JsonNode node)
throws IOException
IOExceptionCopyright © 2018–2020 Apache Software Foundation. All rights reserved.