public class TableStatsCalculator extends Object
| Modifier and Type | Field and Description |
|---|---|
static long |
DEFAULT_ROW_COUNT |
| Constructor and Description |
|---|
TableStatsCalculator(org.apache.hadoop.hbase.client.Connection connection,
HBaseScanSpec hbaseScanSpec,
DrillConfig config,
HBaseStoragePluginConfig storageConfig)
Computes size of each region for table.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getAvgRowSizeInBytes() |
int |
getColsPerRow() |
long |
getRegionSizeInBytes(byte[] regionId)
Returns size of given region in bytes.
|
boolean |
usedDefaultRowCount() |
public static final long DEFAULT_ROW_COUNT
public TableStatsCalculator(org.apache.hadoop.hbase.client.Connection connection,
HBaseScanSpec hbaseScanSpec,
DrillConfig config,
HBaseStoragePluginConfig storageConfig)
throws IOException
connection - connection to Hbase clienthbaseScanSpec - scan specificationconfig - drill configurationstorageConfig - Hbase storage configurationIOExceptionpublic long getRegionSizeInBytes(byte[] regionId)
public int getAvgRowSizeInBytes()
public int getColsPerRow()
public boolean usedDefaultRowCount()
Copyright © 2021 The Apache Software Foundation. All rights reserved.