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 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(Path target,
org.apache.hadoop.mapred.JobConf conf,
Properties properties,
String outputFormatName,
ConnectorSession session) |
static Path |
createTemporaryPath(ConnectorSession session,
HdfsContext context,
HdfsEnvironment hdfsEnvironment,
Path targetPath) |
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 Path |
getTableDefaultLocation(ConnectorSession session,
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 |
isFileCreatedByQuery(String fileName,
String queryId) |
static boolean |
isS3FileSystem(HdfsContext context,
HdfsEnvironment hdfsEnvironment,
Path path) |
static boolean |
isViewFileSystem(HdfsContext context,
HdfsEnvironment hdfsEnvironment,
Path path) |
static boolean |
isWritableType(HiveType hiveType) |
public static org.apache.hadoop.hive.ql.exec.FileSinkOperator.RecordWriter createRecordWriter(Path target, org.apache.hadoop.mapred.JobConf conf, Properties properties, String outputFormatName, ConnectorSession session)
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 Path getTableDefaultLocation(ConnectorSession session, SemiTransactionalHiveMetastore metastore, HdfsEnvironment hdfsEnvironment, String schemaName, String tableName)
public static boolean isS3FileSystem(HdfsContext context, HdfsEnvironment hdfsEnvironment, Path path)
public static boolean isViewFileSystem(HdfsContext context, HdfsEnvironment hdfsEnvironment, Path path)
public static Path createTemporaryPath(ConnectorSession session, HdfsContext context, HdfsEnvironment hdfsEnvironment, Path targetPath)
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–2023. All rights reserved.