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

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final com.mapr.fs.proto.Dbserver.ColumnFamilyAttr
     
    static final String
     
    static final String
     
    static final String
     
    static final com.mapr.cliframework.base.CLICommand
     

    Fields inherited from class com.mapr.cliframework.base.CLIBaseClass

    cliCommand, CLUSTER_NAME_PARAM, clusterParams, HELP_PARAM, input, isServerCall, NOT_REQUIRED, output, REQUIRED, userInfo, version

    Fields inherited from interface com.mapr.cliframework.base.CLIInterface

    KEY_PREFIX, PASSWORD_PREFIX
  • Constructor Summary

    Constructors
    Constructor
    Description
    DbCommands(com.mapr.cliframework.base.ProcessedInput input, com.mapr.cliframework.base.CLICommand cliCommand)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    copyTable(String[] args, String user, boolean isJson)
     
    static boolean
    copyTableNoMR(String[] args, String user, boolean isJson)
     
    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)
     
    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)
     
    com.mapr.cliframework.base.CommandOutput
     
    static void
    genTableUuid(String tablePath, com.mapr.baseutils.utils.AceHelper.DBPermission dbPerm, String user)
     
     
    static String
     

    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, validateInput

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.mapr.cliframework.base.CLIInterface

    executeCommand, getCLICommand, getGIds, getUserId, getUserLoginId, setServerCall, setUserCredentials, setUserCredentialsByJwt, setVersion, validateInput
  • Field Details

    • COLUMNS_PARAM_NAME

      public static final String COLUMNS_PARAM_NAME
      See Also:
    • OUTPUT_PARAM_NAME

      public static final String OUTPUT_PARAM_NAME
      See Also:
    • START_PARAM_NAME

      public static final String START_PARAM_NAME
      See Also:
    • LIMIT_PARAM_NAME

      public static final String 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:
      executeRealCommand in class com.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:
      IOException
      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, List<String> securityPolicyTagList, List<String> splitPoints, boolean syncPut, boolean isMeta, boolean isSystem) throws IOException, com.mapr.cliframework.base.CLIProcessingException
      Throws:
      IOException
      com.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.CLIProcessingException
      Exception
    • copyTable

      public static boolean copyTable(String[] args, String user, boolean isJson) throws IOException, com.mapr.cliframework.base.CLIProcessingException, Exception
      Throws:
      IOException
      com.mapr.cliframework.base.CLIProcessingException
      Exception
    • copyTableNoMR

      public static boolean copyTableNoMR(String[] args, String user, boolean isJson) throws IOException, com.mapr.cliframework.base.CLIProcessingException, Exception
      Throws:
      IOException
      com.mapr.cliframework.base.CLIProcessingException
      Exception
    • getTransformedPath

      public static String getTransformedPath(String path, String user)
    • getCliParam

      public String getCliParam(String key) throws IOException
      Specified by:
      getCliParam in interface com.mapr.baseutils.utils.AceHelper.DBPermission
      Throws:
      IOException