Class AddTableCommand
- java.lang.Object
-
- org.apache.pinot.tools.AbstractBaseCommand
-
- org.apache.pinot.tools.admin.command.AbstractBaseAdminCommand
-
- org.apache.pinot.tools.admin.command.AddTableCommand
-
public class AddTableCommand extends AbstractBaseAdminCommand implements Command
Class to implement CreateResource command.
-
-
Field Summary
-
Fields inherited from class org.apache.pinot.tools.AbstractBaseCommand
DEFAULT_CLUSTER_NAME, DEFAULT_ZK_ADDRESS
-
-
Constructor Summary
Constructors Constructor Description AddTableCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcleanup()Stringdescription()booleanexecute()booleangetHelp()StringgetName()booleansendTableCreationRequest(com.fasterxml.jackson.databind.JsonNode node)AddTableCommandsetAuthToken(String authToken)AddTableCommandsetControllerHost(String controllerHost)AddTableCommandsetControllerPort(String controllerPort)AddTableCommandsetControllerProtocol(String controllerProtocol)AddTableCommandsetExecute(boolean exec)AddTableCommandsetPassword(String password)AddTableCommandsetSchemaFile(String schemaFile)AddTableCommandsetTableConfigFile(String tableConfigFile)AddTableCommandsetUser(String user)StringtoString()voiduploadSchema()-
Methods inherited from class org.apache.pinot.tools.admin.command.AbstractBaseAdminCommand
getPID, savePID, sendDeleteRequest, sendPostRequest, sendRequest, sendRequest
-
Methods inherited from class org.apache.pinot.tools.AbstractBaseCommand
printExamples, printUsage
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.pinot.tools.Command
call, printUsage
-
-
-
-
Method Detail
-
getName
public String getName()
- Overrides:
getNamein classAbstractBaseCommand
-
description
public String description()
- Specified by:
descriptionin interfaceCommand
-
cleanup
public void cleanup()
- Overrides:
cleanupin classAbstractBaseCommand
-
setTableConfigFile
public AddTableCommand setTableConfigFile(String tableConfigFile)
-
setSchemaFile
public AddTableCommand setSchemaFile(String schemaFile)
-
setControllerHost
public AddTableCommand setControllerHost(String controllerHost)
-
setControllerPort
public AddTableCommand setControllerPort(String controllerPort)
-
setControllerProtocol
public AddTableCommand setControllerProtocol(String controllerProtocol)
-
setUser
public AddTableCommand setUser(String user)
-
setPassword
public AddTableCommand setPassword(String password)
-
setAuthToken
public AddTableCommand setAuthToken(String authToken)
-
setExecute
public AddTableCommand setExecute(boolean exec)
-
sendTableCreationRequest
public boolean sendTableCreationRequest(com.fasterxml.jackson.databind.JsonNode node) throws IOException- Throws:
IOException
-
-