Package com.mapr.fs.tables
Class TabletStats
- java.lang.Object
-
- com.mapr.fs.tables.TabletStats
-
public class TabletStats extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description TabletStats(MapRFileSystem fs, org.apache.hadoop.fs.Path path)TabletStats(MapRFileSystem fs, org.apache.hadoop.fs.Path path, java.lang.String indexFid)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetNumTablets()Method to get estimated total number of rows in the tablejava.util.List<com.mapr.fs.proto.Dbserver.TabletDesc>getTablets(int start, int limit)Method to get a list of all tabletscom.mapr.fs.proto.Dbserver.TabletStatResponsegetTabletStatResponse(com.mapr.fs.proto.Dbserver.TabletDesc tablet)
-
-
-
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 fromlimit- 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.InterruptedExceptionjava.util.concurrent.ExecutionException
-
-