public class HiveMetadataProvider extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
HiveMetadataProvider.HiveStats
Contains stats.
|
static class |
HiveMetadataProvider.LogicalInputSplit
Contains group of input splits along with the partition.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
RECORD_SIZE |
| Constructor and Description |
|---|
HiveMetadataProvider(String userName,
HiveReadEntry hiveReadEntry,
org.apache.hadoop.hive.conf.HiveConf hiveConf) |
| Modifier and Type | Method and Description |
|---|---|
protected List<String> |
getInputDirectories(HiveReadEntry hiveReadEntry)
Get the list of directories which contain the input files.
|
List<HiveMetadataProvider.LogicalInputSplit> |
getInputSplits(HiveReadEntry hiveReadEntry)
Return
HiveMetadataProvider.LogicalInputSplits for given HiveReadEntry. |
HiveMetadataProvider.HiveStats |
getStats(HiveReadEntry hiveReadEntry)
Return stats for table/partitions in given
HiveReadEntry. |
public static final int RECORD_SIZE
public HiveMetadataProvider(String userName, HiveReadEntry hiveReadEntry, org.apache.hadoop.hive.conf.HiveConf hiveConf)
public HiveMetadataProvider.HiveStats getStats(HiveReadEntry hiveReadEntry) throws IOException
HiveReadEntry.
If valid stats are available in MetaStore, return it.
Otherwise estimate using the size of the input data.hiveReadEntry - Subset of the HiveReadEntry used when creating this cache object.IOException - if was unable to retrieve table statisticspublic List<HiveMetadataProvider.LogicalInputSplit> getInputSplits(HiveReadEntry hiveReadEntry)
HiveMetadataProvider.LogicalInputSplits for given HiveReadEntry. First splits are looked up in cache, if not
found go through InputFormat.getSplits(JobConf, int) to find the splits.hiveReadEntry - Subset of the HiveReadEntry used when creating this object.protected List<String> getInputDirectories(HiveReadEntry hiveReadEntry)
hiveReadEntry - HiveReadEntry containing the input table and/or partitions.Copyright © 2021 The Apache Software Foundation. All rights reserved.