public class HiveUtils extends Object
Modifier and Type | Method and Description |
---|---|
static ColumnStatisticsInfo |
toProto(org.apache.hadoop.hive.metastore.api.ColumnStatisticsObj colStats)
Convert ColumnStatisticsObj to proto definition.
|
static List<FieldSchema> |
toProto(List<org.apache.hadoop.hive.metastore.api.FieldSchema> hiveSchema) |
static Storage |
toProto(org.apache.hadoop.hive.metastore.api.StorageDescriptor sd,
PathTranslator translator)
Convert from a StorageDescriptor to a Storage object.
|
static Schema |
toProtoSchema(List<org.apache.hadoop.hive.metastore.api.FieldSchema> hiveSchema) |
public static Schema toProtoSchema(List<org.apache.hadoop.hive.metastore.api.FieldSchema> hiveSchema)
hiveSchema
- the hive schemapublic static List<FieldSchema> toProto(List<org.apache.hadoop.hive.metastore.api.FieldSchema> hiveSchema)
hiveSchema
- the hive schemapublic static Storage toProto(org.apache.hadoop.hive.metastore.api.StorageDescriptor sd, PathTranslator translator) throws IOException
sd
- storage descriptortranslator
- path translatorIOException
public static ColumnStatisticsInfo toProto(org.apache.hadoop.hive.metastore.api.ColumnStatisticsObj colStats)
colStats
- column statisticsCopyright © 2023. All Rights Reserved.