Package com.mapr.cli
Class DbCommands
java.lang.Object
com.mapr.cliframework.base.CLIBaseClass
com.mapr.cli.DbCommands
- All Implemented Interfaces:
com.mapr.baseutils.utils.AceHelper.DBPermission,com.mapr.cliframework.base.CLIInterface
public class DbCommands
extends com.mapr.cliframework.base.CLIBaseClass
implements com.mapr.cliframework.base.CLIInterface, com.mapr.baseutils.utils.AceHelper.DBPermission
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final com.mapr.fs.proto.Dbserver.ColumnFamilyAttrstatic final Stringstatic final Stringstatic final Stringstatic final com.mapr.cliframework.base.CLICommandFields inherited from class com.mapr.cliframework.base.CLIBaseClass
cliCommand, CLUSTER_NAME_PARAM, clusterParams, HELP_PARAM, input, isServerCall, NOT_REQUIRED, output, REQUIRED, userInfo, versionFields inherited from interface com.mapr.cliframework.base.CLIInterface
KEY_PREFIX, PASSWORD_PREFIX -
Constructor Summary
ConstructorsConstructorDescriptionDbCommands(com.mapr.cliframework.base.ProcessedInput input, com.mapr.cliframework.base.CLICommand cliCommand) -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanstatic booleancopyTableNoMR(String[] args, String user, boolean isJson) static voidcreateTable(String path, Boolean autoSplit, Boolean bulkLoad, Long regionSize, Boolean dropLarge, Boolean ttlCompact, Integer ttlCompactHrs, String user, String srcPath, com.mapr.baseutils.utils.AceHelper.DBPermission dbPerm, int metaTypeMask, List<String> cfList, int auditValue, Boolean isJson, Integer metricsInterval) static voidcreateTable(String path, Boolean autoSplit, Boolean bulkLoad, Long regionSize, Boolean dropLarge, Boolean ttlCompact, Integer ttlCompactHrs, String user, String srcPath, com.mapr.baseutils.utils.AceHelper.DBPermission dbPerm, int metaTypeMask, List<String> cfList, int auditValue, Boolean isJson, Integer metricsInterval, List<String> securityPolicyTagList, List<String> splitPoints, boolean syncPut, boolean isMeta, boolean isSystem) com.mapr.cliframework.base.CommandOutputstatic voidgenTableUuid(String tablePath, com.mapr.baseutils.utils.AceHelper.DBPermission dbPerm, String user) getCliParam(String key) static StringgetTransformedPath(String path, String user) Methods inherited from class com.mapr.cliframework.base.CLIBaseClass
executeCommand, executeSimpleSHHCommand, executeSimpleSHHCommand, getBooleanParam, getCLICommand, getCommandUsage, getGIds, getInput, getKeyType, getParamBooleanValue, getParamDateValue, getParamIntValue, getParamLongValue, getParamObjectValue, getParamTextValue, getUserClusterOps, getUserCredentials, getUserId, getUserLoginId, getVersion, isParamPresent, isParamValueEmpty, setServerCall, setUserClusterOps, setUserCredentials, setUserCredentialsByJwt, setVersion, skipValidation, validateInputMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.mapr.cliframework.base.CLIInterface
executeCommand, getCLICommand, getGIds, getUserId, getUserLoginId, setServerCall, setUserCredentials, setUserCredentialsByJwt, setVersion, validateInput
-
Field Details
-
COLUMNS_PARAM_NAME
- See Also:
-
OUTPUT_PARAM_NAME
- See Also:
-
START_PARAM_NAME
- See Also:
-
LIMIT_PARAM_NAME
- See Also:
-
tableCommands
public static final com.mapr.cliframework.base.CLICommand tableCommands -
JSON_DEFAULT_COL_FAM_ATTR
public static final com.mapr.fs.proto.Dbserver.ColumnFamilyAttr JSON_DEFAULT_COL_FAM_ATTR
-
-
Constructor Details
-
DbCommands
public DbCommands(com.mapr.cliframework.base.ProcessedInput input, com.mapr.cliframework.base.CLICommand cliCommand)
-
-
Method Details
-
executeRealCommand
public com.mapr.cliframework.base.CommandOutput executeRealCommand() throws com.mapr.cliframework.base.CLIProcessingException- Specified by:
executeRealCommandin classcom.mapr.cliframework.base.CLIBaseClass- Throws:
com.mapr.cliframework.base.CLIProcessingException
-
createTable
public static void createTable(String path, Boolean autoSplit, Boolean bulkLoad, Long regionSize, Boolean dropLarge, Boolean ttlCompact, Integer ttlCompactHrs, String user, String srcPath, com.mapr.baseutils.utils.AceHelper.DBPermission dbPerm, int metaTypeMask, List<String> cfList, int auditValue, Boolean isJson, Integer metricsInterval) throws IOException, com.mapr.cliframework.base.CLIProcessingException - Throws:
IOExceptioncom.mapr.cliframework.base.CLIProcessingException
-
createTable
public static void createTable(String path, Boolean autoSplit, Boolean bulkLoad, Long regionSize, Boolean dropLarge, Boolean ttlCompact, Integer ttlCompactHrs, String user, String srcPath, com.mapr.baseutils.utils.AceHelper.DBPermission dbPerm, int metaTypeMask, List<String> cfList, int auditValue, Boolean isJson, Integer metricsInterval, List<String> securityPolicyTagList, List<String> splitPoints, boolean syncPut, boolean isMeta, boolean isSystem) throws IOException, com.mapr.cliframework.base.CLIProcessingException - Throws:
IOExceptioncom.mapr.cliframework.base.CLIProcessingException
-
genTableUuid
public static void genTableUuid(String tablePath, com.mapr.baseutils.utils.AceHelper.DBPermission dbPerm, String user) throws com.mapr.cliframework.base.CLIProcessingException, Exception - Throws:
com.mapr.cliframework.base.CLIProcessingExceptionException
-
copyTable
public static boolean copyTable(String[] args, String user, boolean isJson) throws IOException, com.mapr.cliframework.base.CLIProcessingException, Exception - Throws:
IOExceptioncom.mapr.cliframework.base.CLIProcessingExceptionException
-
copyTableNoMR
public static boolean copyTableNoMR(String[] args, String user, boolean isJson) throws IOException, com.mapr.cliframework.base.CLIProcessingException, Exception - Throws:
IOExceptioncom.mapr.cliframework.base.CLIProcessingExceptionException
-
getTransformedPath
-
getCliParam
- Specified by:
getCliParamin interfacecom.mapr.baseutils.utils.AceHelper.DBPermission- Throws:
IOException
-