public final class LlapHiveUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
LOG |
| Modifier and Type | Method and Description |
|---|---|
static Object |
createFileIdUsingFS(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path path,
org.apache.hadoop.conf.Configuration daemonConf)
Determines the fileID for the given path using the FileSystem type provided while considering daemon configuration.
|
static MapWork |
findMapWork(org.apache.hadoop.mapred.JobConf job)
Returns MapWork based what is serialized in the JobConf instance provided.
|
static CacheTag |
getDbAndTableNameForMetrics(org.apache.hadoop.fs.Path path,
boolean includeParts,
PartitionDesc part) |
static int |
getSchemaHash(PartitionDesc part) |
static boolean |
isLlapMode(org.apache.hadoop.conf.Configuration conf) |
static PartitionDesc |
partitionDescForPath(org.apache.hadoop.fs.Path path,
Map<org.apache.hadoop.fs.Path,PartitionDesc> partitionDescMap)
Takes a Path and looks up the PartitionDesc instance associated with it in a map of Path->PartitionDesc entries.
|
static void |
throwIfCacheOnlyRead(boolean isCacheOnlyRead) |
public static PartitionDesc partitionDescForPath(org.apache.hadoop.fs.Path path, Map<org.apache.hadoop.fs.Path,PartitionDesc> partitionDescMap)
path - the absolute path used for the look uppartitionDescMap - the mappublic static CacheTag getDbAndTableNameForMetrics(org.apache.hadoop.fs.Path path, boolean includeParts, PartitionDesc part)
public static int getSchemaHash(PartitionDesc part)
public static MapWork findMapWork(org.apache.hadoop.mapred.JobConf job)
job - public static void throwIfCacheOnlyRead(boolean isCacheOnlyRead)
throws IOException
IOExceptionpublic static boolean isLlapMode(org.apache.hadoop.conf.Configuration conf)
public static Object createFileIdUsingFS(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path, org.apache.hadoop.conf.Configuration daemonConf) throws IOException
fs - FileSystem typepath - Path associated to this filedaemonConf - Llap daemon configurationIOExceptionCopyright © 2024 The Apache Software Foundation. All rights reserved.