Class TabletStats


  • public class TabletStats
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long getNumTablets()
      Method to get estimated total number of rows in the table
      java.util.List<com.mapr.fs.proto.Dbserver.TabletDesc> getTablets​(int start, int limit)
      Method to get a list of all tablets
      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 Detail

      • TabletStats

        public TabletStats​(MapRFileSystem fs,
                           org.apache.hadoop.fs.Path path)
      • TabletStats

        public TabletStats​(MapRFileSystem fs,
                           org.apache.hadoop.fs.Path path,
                           java.lang.String indexFid)
    • Method Detail

      • getNumTablets

        public long getNumTablets()
        Method to get estimated total number of rows in the table
        Returns:
        Estimated total number of rows in the table
      • getTablets

        public java.util.List<com.mapr.fs.proto.Dbserver.TabletDesc> getTablets​(int start,
                                                                                int limit)
        Method to get a list of all tablets
        Parameters:
        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
      • getTabletStatResponse

        public com.mapr.fs.proto.Dbserver.TabletStatResponse getTabletStatResponse​(com.mapr.fs.proto.Dbserver.TabletDesc tablet)
                                                                            throws java.lang.InterruptedException,
                                                                                   java.util.concurrent.ExecutionException
        Throws:
        java.lang.InterruptedException
        java.util.concurrent.ExecutionException