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,
com.facebook.presto.hive.metastore.Partition partition) |
static void |
checkTableIsWritable(com.facebook.presto.hive.metastore.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,
com.facebook.presto.common.type.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,
com.facebook.presto.spi.ConnectorSession session) |
static org.apache.hadoop.fs.Path |
createTemporaryPath(com.facebook.presto.spi.ConnectorSession session,
com.facebook.presto.hive.HdfsContext context,
com.facebook.presto.hive.HdfsEnvironment hdfsEnvironment,
org.apache.hadoop.fs.Path targetPath) |
static org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector |
getJavaObjectInspector(com.facebook.presto.common.type.Type type) |
static org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector |
getRowColumnInspector(com.facebook.presto.common.type.Type type) |
static List<org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector> |
getRowColumnInspectors(List<com.facebook.presto.common.type.Type> types) |
static org.apache.hadoop.fs.Path |
getTableDefaultLocation(com.facebook.presto.spi.ConnectorSession session,
com.facebook.presto.hive.metastore.SemiTransactionalHiveMetastore metastore,
com.facebook.presto.hive.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(com.facebook.presto.hive.HdfsContext context,
com.facebook.presto.hive.HdfsEnvironment hdfsEnvironment,
org.apache.hadoop.fs.Path path) |
static boolean |
isViewFileSystem(com.facebook.presto.hive.HdfsContext context,
com.facebook.presto.hive.HdfsEnvironment hdfsEnvironment,
org.apache.hadoop.fs.Path path) |
static boolean |
isWritableType(com.facebook.presto.hive.HiveType hiveType) |
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,
com.facebook.presto.spi.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(com.facebook.presto.common.type.Type type)
public static void checkTableIsWritable(com.facebook.presto.hive.metastore.Table table,
boolean writesToNonManagedTablesEnabled)
public static void checkPartitionIsWritable(String partitionName, com.facebook.presto.hive.metastore.Partition partition)
public static org.apache.hadoop.fs.Path getTableDefaultLocation(com.facebook.presto.spi.ConnectorSession session,
com.facebook.presto.hive.metastore.SemiTransactionalHiveMetastore metastore,
com.facebook.presto.hive.HdfsEnvironment hdfsEnvironment,
String schemaName,
String tableName)
public static boolean isS3FileSystem(com.facebook.presto.hive.HdfsContext context,
com.facebook.presto.hive.HdfsEnvironment hdfsEnvironment,
org.apache.hadoop.fs.Path path)
public static boolean isViewFileSystem(com.facebook.presto.hive.HdfsContext context,
com.facebook.presto.hive.HdfsEnvironment hdfsEnvironment,
org.apache.hadoop.fs.Path path)
public static org.apache.hadoop.fs.Path createTemporaryPath(com.facebook.presto.spi.ConnectorSession session,
com.facebook.presto.hive.HdfsContext context,
com.facebook.presto.hive.HdfsEnvironment hdfsEnvironment,
org.apache.hadoop.fs.Path targetPath)
public static boolean isWritableType(com.facebook.presto.hive.HiveType hiveType)
public static List<org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector> getRowColumnInspectors(List<com.facebook.presto.common.type.Type> types)
public static org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector getRowColumnInspector(com.facebook.presto.common.type.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, com.facebook.presto.common.type.Type type)
Copyright © 2012–2023. All rights reserved.