public class HiveShim
extends Object
Constructor and Description |
---|
HiveShim() |
Modifier and Type | Method and Description |
---|---|
static void |
appendReadColumns(org.apache.hadoop.conf.Configuration conf,
scala.collection.Seq<Integer> ids,
scala.collection.Seq<String> names) |
static scala.collection.Seq<scala.runtime.Nothing$> |
compatibilityBlackList() |
static org.apache.hadoop.hive.common.type.HiveDecimal |
createDecimal(java.math.BigDecimal bd) |
static scala.collection.Seq<String> |
createDefaultDBIfNeeded(HiveContext context) |
static java.util.ArrayList<Object> |
createDriverResultsArray() |
static String |
decimalMetastoreString(org.apache.spark.sql.catalyst.types.DecimalType decimalType) |
static org.apache.hadoop.hive.serde2.typeinfo.TypeInfo |
decimalTypeInfo(org.apache.spark.sql.catalyst.types.DecimalType decimalType) |
static org.apache.spark.sql.catalyst.types.DecimalType |
decimalTypeInfoToCatalyst(org.apache.hadoop.hive.serde2.objectinspector.PrimitiveObjectInspector inspector) |
static java.util.Set<org.apache.hadoop.hive.ql.metadata.Partition> |
getAllPartitionsOf(org.apache.hadoop.hive.ql.metadata.Hive client,
org.apache.hadoop.hive.ql.metadata.Table tbl) |
static org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector |
getBinaryWritableConstantObjectInspector(Object value) |
static org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector |
getBooleanWritableConstantObjectInspector(Object value) |
static org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector |
getByteWritableConstantObjectInspector(Object value) |
static org.apache.hadoop.hive.ql.processors.CommandProcessor |
getCommandProcessor(String[] cmd,
org.apache.hadoop.hive.conf.HiveConf conf) |
static org.apache.hadoop.fs.Path |
getDataLocationPath(org.apache.hadoop.hive.ql.metadata.Partition p) |
static org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector |
getDateWritableConstantObjectInspector(Object value) |
static org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector |
getDecimalWritableConstantObjectInspector(Object value) |
static org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector |
getDoubleWritableConstantObjectInspector(Object value) |
static org.apache.hadoop.fs.Path |
getExternalTmpPath(org.apache.hadoop.hive.ql.Context context,
org.apache.hadoop.fs.Path path) |
static org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector |
getFloatWritableConstantObjectInspector(Object value) |
static org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector |
getIntWritableConstantObjectInspector(Object value) |
static org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector |
getLongWritableConstantObjectInspector(Object value) |
static org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector |
getPrimitiveNullWritableConstantObjectInspector() |
static org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector |
getShortWritableConstantObjectInspector(Object value) |
static String |
getStatsSetupConstRawDataSize() |
static String |
getStatsSetupConstTotalSize() |
static org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector |
getStringWritableConstantObjectInspector(Object value) |
static org.apache.hadoop.hive.ql.plan.TableDesc |
getTableDesc(Class<? extends org.apache.hadoop.hive.serde2.Deserializer> serdeClass,
Class<? extends org.apache.hadoop.mapred.InputFormat<?,?>> inputFormatClass,
Class<?> outputFormatClass,
java.util.Properties properties) |
static org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector |
getTimestampWritableConstantObjectInspector(Object value) |
static scala.collection.mutable.Buffer<String> |
processResults(java.util.ArrayList<Object> results) |
static void |
setLocation(org.apache.hadoop.hive.ql.metadata.Table tbl,
org.apache.hadoop.hive.ql.plan.CreateTableDesc crtTbl) |
static org.apache.spark.sql.catalyst.types.decimal.Decimal |
toCatalystDecimal(org.apache.hadoop.hive.serde2.objectinspector.primitive.HiveDecimalObjectInspector hdoi,
Object data) |
static String |
version() |
static org.apache.hadoop.hive.ql.plan.FileSinkDesc |
wrapperToFileSinkDesc(ShimFileSinkDesc w) |
public static String version()
public static org.apache.hadoop.hive.ql.plan.TableDesc getTableDesc(Class<? extends org.apache.hadoop.hive.serde2.Deserializer> serdeClass, Class<? extends org.apache.hadoop.mapred.InputFormat<?,?>> inputFormatClass, Class<?> outputFormatClass, java.util.Properties properties)
public static org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector getStringWritableConstantObjectInspector(Object value)
public static org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector getIntWritableConstantObjectInspector(Object value)
public static org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector getDoubleWritableConstantObjectInspector(Object value)
public static org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector getBooleanWritableConstantObjectInspector(Object value)
public static org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector getLongWritableConstantObjectInspector(Object value)
public static org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector getFloatWritableConstantObjectInspector(Object value)
public static org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector getShortWritableConstantObjectInspector(Object value)
public static org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector getByteWritableConstantObjectInspector(Object value)
public static org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector getBinaryWritableConstantObjectInspector(Object value)
public static org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector getDateWritableConstantObjectInspector(Object value)
public static org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector getTimestampWritableConstantObjectInspector(Object value)
public static org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector getDecimalWritableConstantObjectInspector(Object value)
public static org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector getPrimitiveNullWritableConstantObjectInspector()
public static java.util.ArrayList<Object> createDriverResultsArray()
public static scala.collection.mutable.Buffer<String> processResults(java.util.ArrayList<Object> results)
public static String getStatsSetupConstTotalSize()
public static String getStatsSetupConstRawDataSize()
public static scala.collection.Seq<String> createDefaultDBIfNeeded(HiveContext context)
public static org.apache.hadoop.hive.ql.processors.CommandProcessor getCommandProcessor(String[] cmd, org.apache.hadoop.hive.conf.HiveConf conf)
public static org.apache.hadoop.hive.common.type.HiveDecimal createDecimal(java.math.BigDecimal bd)
public static void appendReadColumns(org.apache.hadoop.conf.Configuration conf, scala.collection.Seq<Integer> ids, scala.collection.Seq<String> names)
public static org.apache.hadoop.fs.Path getExternalTmpPath(org.apache.hadoop.hive.ql.Context context, org.apache.hadoop.fs.Path path)
public static org.apache.hadoop.fs.Path getDataLocationPath(org.apache.hadoop.hive.ql.metadata.Partition p)
public static java.util.Set<org.apache.hadoop.hive.ql.metadata.Partition> getAllPartitionsOf(org.apache.hadoop.hive.ql.metadata.Hive client, org.apache.hadoop.hive.ql.metadata.Table tbl)
public static scala.collection.Seq<scala.runtime.Nothing$> compatibilityBlackList()
public static void setLocation(org.apache.hadoop.hive.ql.metadata.Table tbl, org.apache.hadoop.hive.ql.plan.CreateTableDesc crtTbl)
public static org.apache.hadoop.hive.ql.plan.FileSinkDesc wrapperToFileSinkDesc(ShimFileSinkDesc w)
public static String decimalMetastoreString(org.apache.spark.sql.catalyst.types.DecimalType decimalType)
public static org.apache.hadoop.hive.serde2.typeinfo.TypeInfo decimalTypeInfo(org.apache.spark.sql.catalyst.types.DecimalType decimalType)
public static org.apache.spark.sql.catalyst.types.DecimalType decimalTypeInfoToCatalyst(org.apache.hadoop.hive.serde2.objectinspector.PrimitiveObjectInspector inspector)
public static org.apache.spark.sql.catalyst.types.decimal.Decimal toCatalystDecimal(org.apache.hadoop.hive.serde2.objectinspector.primitive.HiveDecimalObjectInspector hdoi, Object data)