Class TabletStats

java.lang.Object
com.mapr.cli.table.TabletStats

public class TabletStats extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    TabletStats(String path, String userId)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    List<com.mapr.fs.proto.Dbserver.TabletDesc>
    getTablets(com.mapr.cliframework.base.CommandOutput.OutputHierarchy out, int start, int limit)
    Method to get a list of all tablets
    List<com.mapr.fs.proto.Dbserver.TabletDesc>
    getTablets(com.mapr.cliframework.base.CommandOutput.OutputHierarchy out, int start, int limit, String indexFid)
    Method to get a list of all tablets of a primary or an index table
    com.mapr.fs.proto.Dbserver.TabletStatResponse
    getTabletStatResponse(com.mapr.fs.proto.Dbserver.TabletDesc tablet)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TabletStats

      public TabletStats(String path, String userId)
  • Method Details

    • getTablets

      public List<com.mapr.fs.proto.Dbserver.TabletDesc> getTablets(com.mapr.cliframework.base.CommandOutput.OutputHierarchy out, int start, int limit) throws com.mapr.cliframework.base.CLIProcessingException
      Method to get a list of all tablets
      Parameters:
      out - Output errors
      start - The tablet record to start from
      limit - The total amount of tablet records to retrieve. If 0, then gets all
      Returns:
      A list of all tablet items
      Throws:
      com.mapr.cliframework.base.CLIProcessingException
    • getTablets

      public List<com.mapr.fs.proto.Dbserver.TabletDesc> getTablets(com.mapr.cliframework.base.CommandOutput.OutputHierarchy out, int start, int limit, String indexFid) throws com.mapr.cliframework.base.CLIProcessingException
      Method to get a list of all tablets of a primary or an index table
      Parameters:
      out - Output errors
      start - The tablet record to start from
      limit - The total amount of tablet records to retrieve. If 0, then gets all
      indexFid - The fid of the index table whose tablets are to be listed. If this is not null, then only the index table's tablets will be listed.
      Returns:
      A list of all tablet items
      Throws:
      com.mapr.cliframework.base.CLIProcessingException
    • getTabletStatResponse

      public com.mapr.fs.proto.Dbserver.TabletStatResponse getTabletStatResponse(com.mapr.fs.proto.Dbserver.TabletDesc tablet) throws InterruptedException, ExecutionException
      Throws:
      InterruptedException
      ExecutionException