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(DecimalType decimalType) |
static org.apache.hadoop.hive.serde2.typeinfo.TypeInfo |
decimalTypeInfo(DecimalType decimalType) |
static 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.io.BytesWritable |
getBinaryWritable(Object value) |
static org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector |
getBinaryWritableConstantObjectInspector(Object value) |
static org.apache.hadoop.io.BooleanWritable |
getBooleanWritable(Object value) |
static org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector |
getBooleanWritableConstantObjectInspector(Object value) |
static org.apache.hadoop.hive.serde2.io.ByteWritable |
getByteWritable(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.io.DateWritable |
getDateWritable(Object value) |
static org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector |
getDateWritableConstantObjectInspector(Object value) |
static org.apache.hadoop.hive.serde2.io.HiveDecimalWritable |
getDecimalWritable(Object value) |
static org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector |
getDecimalWritableConstantObjectInspector(Object value) |
static org.apache.hadoop.hive.serde2.io.DoubleWritable |
getDoubleWritable(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.io.FloatWritable |
getFloatWritable(Object value) |
static org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector |
getFloatWritableConstantObjectInspector(Object value) |
static org.apache.hadoop.io.IntWritable |
getIntWritable(Object value) |
static org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector |
getIntWritableConstantObjectInspector(Object value) |
static org.apache.hadoop.io.LongWritable |
getLongWritable(Object value) |
static org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector |
getLongWritableConstantObjectInspector(Object value) |
static org.apache.hadoop.io.NullWritable |
getPrimitiveNullWritable() |
static org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector |
getPrimitiveNullWritableConstantObjectInspector() |
static org.apache.hadoop.hive.serde2.io.ShortWritable |
getShortWritable(Object value) |
static org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector |
getShortWritableConstantObjectInspector(Object value) |
static String |
getStatsSetupConstRawDataSize() |
static String |
getStatsSetupConstTotalSize() |
static org.apache.hadoop.io.Text |
getStringWritable(Object value) |
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.io.TimestampWritable |
getTimestampWritable(Object value) |
static org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector |
getTimestampWritableConstantObjectInspector(Object value) |
static org.apache.hadoop.io.Writable |
prepareWritable(org.apache.hadoop.io.Writable w) |
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 Object |
setTblNullFormat(org.apache.hadoop.hive.ql.plan.CreateTableDesc crtTbl,
org.apache.hadoop.hive.ql.metadata.Table tbl) |
static 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 org.apache.hadoop.io.Text getStringWritable(Object value)
public static org.apache.hadoop.io.IntWritable getIntWritable(Object value)
public static org.apache.hadoop.hive.serde2.io.DoubleWritable getDoubleWritable(Object value)
public static org.apache.hadoop.io.BooleanWritable getBooleanWritable(Object value)
public static org.apache.hadoop.io.LongWritable getLongWritable(Object value)
public static org.apache.hadoop.io.FloatWritable getFloatWritable(Object value)
public static org.apache.hadoop.hive.serde2.io.ShortWritable getShortWritable(Object value)
public static org.apache.hadoop.hive.serde2.io.ByteWritable getByteWritable(Object value)
public static org.apache.hadoop.io.BytesWritable getBinaryWritable(Object value)
public static org.apache.hadoop.hive.serde2.io.DateWritable getDateWritable(Object value)
public static org.apache.hadoop.hive.serde2.io.TimestampWritable getTimestampWritable(Object value)
public static org.apache.hadoop.hive.serde2.io.HiveDecimalWritable getDecimalWritable(Object value)
public static org.apache.hadoop.io.NullWritable getPrimitiveNullWritable()
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(DecimalType decimalType)
public static org.apache.hadoop.hive.serde2.typeinfo.TypeInfo decimalTypeInfo(DecimalType decimalType)
public static DecimalType decimalTypeInfoToCatalyst(org.apache.hadoop.hive.serde2.objectinspector.PrimitiveObjectInspector inspector)
public static Decimal toCatalystDecimal(org.apache.hadoop.hive.serde2.objectinspector.primitive.HiveDecimalObjectInspector hdoi, Object data)
public static org.apache.hadoop.io.Writable prepareWritable(org.apache.hadoop.io.Writable w)
public static Object setTblNullFormat(org.apache.hadoop.hive.ql.plan.CreateTableDesc crtTbl, org.apache.hadoop.hive.ql.metadata.Table tbl)