public final class HiveWriteUtils extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
HiveWriteUtils.FieldSetter |
| Modifier and Type | Method and Description |
|---|---|
static void |
checkPartitionIsWritable(String partitionName,
Partition partition) |
static void |
checkTableIsWritable(Table table,
boolean writesToNonManagedTablesEnabled) |
static void |
createDirectory(HdfsEnvironment.HdfsContext context,
HdfsEnvironment hdfsEnvironment,
org.apache.hadoop.fs.Path path) |
static HiveWriteUtils.FieldSetter |
createFieldSetter(org.apache.hadoop.hive.serde2.objectinspector.SettableStructObjectInspector rowInspector,
Object row,
org.apache.hadoop.hive.serde2.objectinspector.StructField field,
Type type) |
static org.apache.hadoop.hive.ql.exec.FileSinkOperator.RecordWriter |
createRecordWriter(org.apache.hadoop.fs.Path target,
org.apache.hadoop.mapred.JobConf conf,
Properties properties,
String outputFormatName) |
static org.apache.hadoop.fs.Path |
createTemporaryPath(HdfsEnvironment.HdfsContext context,
HdfsEnvironment hdfsEnvironment,
org.apache.hadoop.fs.Path targetPath) |
static Object |
getField(Type type,
Block block,
int position) |
static org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector |
getJavaObjectInspector(Type type) |
static org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector |
getRowColumnInspector(Type type) |
static List<org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector> |
getRowColumnInspectors(List<Type> types) |
static org.apache.hadoop.fs.Path |
getTableDefaultLocation(HdfsEnvironment.HdfsContext context,
SemiTransactionalHiveMetastore metastore,
HdfsEnvironment hdfsEnvironment,
String schemaName,
String tableName) |
static org.apache.hadoop.hive.serde2.Serializer |
initializeSerializer(org.apache.hadoop.conf.Configuration conf,
Properties properties,
String serializerName) |
static boolean |
isS3FileSystem(HdfsEnvironment.HdfsContext context,
HdfsEnvironment hdfsEnvironment,
org.apache.hadoop.fs.Path path) |
static boolean |
isViewFileSystem(HdfsEnvironment.HdfsContext context,
HdfsEnvironment hdfsEnvironment,
org.apache.hadoop.fs.Path path) |
static boolean |
isWritableType(HiveType hiveType) |
static boolean |
pathExists(HdfsEnvironment.HdfsContext context,
HdfsEnvironment hdfsEnvironment,
org.apache.hadoop.fs.Path path) |
public static org.apache.hadoop.hive.ql.exec.FileSinkOperator.RecordWriter createRecordWriter(org.apache.hadoop.fs.Path target,
org.apache.hadoop.mapred.JobConf conf,
Properties properties,
String outputFormatName)
public static org.apache.hadoop.hive.serde2.Serializer initializeSerializer(org.apache.hadoop.conf.Configuration conf,
Properties properties,
String serializerName)
public static org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector getJavaObjectInspector(Type type)
public static void checkTableIsWritable(Table table, boolean writesToNonManagedTablesEnabled)
public static void checkPartitionIsWritable(String partitionName, Partition partition)
public static org.apache.hadoop.fs.Path getTableDefaultLocation(HdfsEnvironment.HdfsContext context, SemiTransactionalHiveMetastore metastore, HdfsEnvironment hdfsEnvironment, String schemaName, String tableName)
public static boolean pathExists(HdfsEnvironment.HdfsContext context, HdfsEnvironment hdfsEnvironment, org.apache.hadoop.fs.Path path)
public static boolean isS3FileSystem(HdfsEnvironment.HdfsContext context, HdfsEnvironment hdfsEnvironment, org.apache.hadoop.fs.Path path)
public static boolean isViewFileSystem(HdfsEnvironment.HdfsContext context, HdfsEnvironment hdfsEnvironment, org.apache.hadoop.fs.Path path)
public static org.apache.hadoop.fs.Path createTemporaryPath(HdfsEnvironment.HdfsContext context, HdfsEnvironment hdfsEnvironment, org.apache.hadoop.fs.Path targetPath)
public static void createDirectory(HdfsEnvironment.HdfsContext context, HdfsEnvironment hdfsEnvironment, org.apache.hadoop.fs.Path path)
public static boolean isWritableType(HiveType hiveType)
public static List<org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector> getRowColumnInspectors(List<Type> types)
public static org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector getRowColumnInspector(Type type)
public static HiveWriteUtils.FieldSetter createFieldSetter(org.apache.hadoop.hive.serde2.objectinspector.SettableStructObjectInspector rowInspector, Object row, org.apache.hadoop.hive.serde2.objectinspector.StructField field, Type type)
Copyright © 2012-2017. All Rights Reserved.