Class TableStatsCalculator

java.lang.Object
org.apache.drill.exec.store.hbase.TableStatsCalculator

public class TableStatsCalculator extends Object
Computes size of each region for given table.
  • Field Details

  • Constructor Details

    • TableStatsCalculator

      public TableStatsCalculator(org.apache.hadoop.hbase.client.Connection connection, HBaseScanSpec hbaseScanSpec, DrillConfig config, HBaseStoragePluginConfig storageConfig) throws IOException
      Computes size of each region for table.
      Parameters:
      connection - connection to Hbase client
      hbaseScanSpec - scan specification
      config - drill configuration
      storageConfig - Hbase storage configuration
      Throws:
      IOException
  • Method Details

    • getRegionSizeInBytes

      public long getRegionSizeInBytes(byte[] regionId)
      Returns size of given region in bytes. Returns 0 if region was not found.
    • getAvgRowSizeInBytes

      public int getAvgRowSizeInBytes()
    • getColsPerRow

      public int getColsPerRow()
    • usedDefaultRowCount

      public boolean usedDefaultRowCount()