public static class HiveMetadataProvider.HiveStats extends Object
Constructor and Description |
---|
HiveStats(long numRows,
long sizeInBytes) |
Modifier and Type | Method and Description |
---|---|
void |
add(HiveMetadataProvider.HiveStats s) |
long |
getNumRows() |
long |
getSizeInBytes() |
static HiveMetadataProvider.HiveStats |
getStatsFromProps(Properties properties)
Get the stats from table properties.
|
String |
toString() |
boolean |
valid()
Both numRows and sizeInBytes are expected to be greater than 0 for stats to be valid
|
public static HiveMetadataProvider.HiveStats getStatsFromProps(Properties properties)
properties
- the source of table statsHiveMetadataProvider.HiveStats
instance with rows number and size in bytes from specified propertiespublic long getNumRows()
public long getSizeInBytes()
public boolean valid()
public void add(HiveMetadataProvider.HiveStats s)
Copyright © 1970 The Apache Software Foundation. All rights reserved.