Package com.mapr.cli

Class FidCommands

  • All Implemented Interfaces:
    com.mapr.cliframework.base.CLIInterface

    public class FidCommands
    extends com.mapr.cliframework.base.CLIBaseClass
    implements com.mapr.cliframework.base.CLIInterface
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.util.Map<java.lang.String,​com.mapr.cliframework.base.inputparams.BaseInputParameter> baseParams  
      static java.lang.String COLUMN_SEP  
      static java.lang.String MULTI_ARG_SEP  
      • 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

        PASSWORD_PREFIX
    • Constructor Summary

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

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static com.mapr.cliframework.base.CommandOutput.OutputHierarchy.OutputNode dumpInlineXAttrs​(com.google.protobuf.ByteString xattrs)  
      static void DumpMSIPartitionRec​(com.mapr.fs.proto.Msicommon.MSIPartitionRec msiRec, com.mapr.cliframework.base.CommandOutput.OutputHierarchy.OutputNode vout)  
      static void DumpMSIPartitionStatsRec​(com.mapr.fs.proto.Msicommon.MSIStatsRec statsRec, com.mapr.cliframework.base.CommandOutput.OutputHierarchy.OutputNode sOut)  
      static void DumpMSITabletStatsRec​(com.mapr.fs.proto.Msicommon.MSITabletStatsEntry msi, com.mapr.cliframework.base.CommandOutput.OutputHierarchy.OutputNode sOut)  
      static void DumpS3BucketStats​(com.mapr.fs.proto.Msicommon.S3BucketStats s3Stats, com.mapr.cliframework.base.CommandOutput.OutputHierarchy.OutputNode sOut)  
      com.mapr.cliframework.base.CommandOutput executeRealCommand()  
      static java.lang.String getCompressionType​(com.mapr.fs.proto.Common.FileCompressionType ct)  
      long getLong​(byte[] b)  
      FidCommands.NameEnt getNameEnt​(com.google.protobuf.ByteString bs, int offset)  
      static java.lang.String printableFid​(com.mapr.fs.proto.Common.FidMsg f)  
      static java.lang.String printableSubType​(com.mapr.fs.proto.Common.FileType type, com.mapr.fs.proto.Common.FileSubType subtype)  
      • Methods inherited from class com.mapr.cliframework.base.CLIBaseClass

        executeCommand, executeSimpleSHHCommand, executeSimpleSHHCommand, getCLICommand, getCommandUsage, getGIds, getInput, getKeyType, getParamBooleanValue, getParamDateValue, getParamIntValue, getParamLongValue, getParamObjectValue, getParamTextValue, getUserCredentials, getUserId, getUserLoginId, getVersion, isParamPresent, isParamValueEmpty, setServerCall, setUserCredentials, setVersion, 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, setVersion, validateInput
    • Field Detail

      • baseParams

        public static java.util.Map<java.lang.String,​com.mapr.cliframework.base.inputparams.BaseInputParameter> baseParams
    • Constructor Detail

      • FidCommands

        public FidCommands​(com.mapr.cliframework.base.ProcessedInput input,
                           com.mapr.cliframework.base.CLICommand cliCommand)
                    throws com.mapr.cliframework.base.CLIProcessingException
        Throws:
        com.mapr.cliframework.base.CLIProcessingException
    • Method Detail

      • getLong

        public long getLong​(byte[] b)
      • getNameEnt

        public FidCommands.NameEnt getNameEnt​(com.google.protobuf.ByteString bs,
                                              int offset)
      • 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
      • dumpInlineXAttrs

        public static com.mapr.cliframework.base.CommandOutput.OutputHierarchy.OutputNode dumpInlineXAttrs​(com.google.protobuf.ByteString xattrs)
      • printableFid

        public static java.lang.String printableFid​(com.mapr.fs.proto.Common.FidMsg f)
      • printableSubType

        public static java.lang.String printableSubType​(com.mapr.fs.proto.Common.FileType type,
                                                        com.mapr.fs.proto.Common.FileSubType subtype)
      • DumpMSIPartitionRec

        public static void DumpMSIPartitionRec​(com.mapr.fs.proto.Msicommon.MSIPartitionRec msiRec,
                                               com.mapr.cliframework.base.CommandOutput.OutputHierarchy.OutputNode vout)
      • DumpMSIPartitionStatsRec

        public static void DumpMSIPartitionStatsRec​(com.mapr.fs.proto.Msicommon.MSIStatsRec statsRec,
                                                    com.mapr.cliframework.base.CommandOutput.OutputHierarchy.OutputNode sOut)
      • DumpS3BucketStats

        public static void DumpS3BucketStats​(com.mapr.fs.proto.Msicommon.S3BucketStats s3Stats,
                                             com.mapr.cliframework.base.CommandOutput.OutputHierarchy.OutputNode sOut)
      • DumpMSITabletStatsRec

        public static void DumpMSITabletStatsRec​(com.mapr.fs.proto.Msicommon.MSITabletStatsEntry msi,
                                                 com.mapr.cliframework.base.CommandOutput.OutputHierarchy.OutputNode sOut)
      • getCompressionType

        public static java.lang.String getCompressionType​(com.mapr.fs.proto.Common.FileCompressionType ct)