Modifier and Type | Class and Description |
---|---|
static class |
DistributedCache.DistributedCacheEntry
Meta info about an entry in
DistributedCache . |
Constructor and Description |
---|
DistributedCache(Map<String,Future<Path>> cacheCopyTasks) |
Modifier and Type | Method and Description |
---|---|
File |
getFile(String name) |
static List<Tuple2<String,DistributedCache.DistributedCacheEntry>> |
parseCachedFilesFromString(List<String> files)
Parses a list of distributed cache entries encoded in a string.
|
static List<String> |
parseStringFromCachedFiles(List<Tuple2<String,DistributedCache.DistributedCacheEntry>> files) |
static Set<Map.Entry<String,DistributedCache.DistributedCacheEntry>> |
readFileInfoFromConfig(Configuration conf) |
static void |
writeFileInfoToConfig(String name,
DistributedCache.DistributedCacheEntry e,
Configuration conf) |
public static void writeFileInfoToConfig(String name, DistributedCache.DistributedCacheEntry e, Configuration conf)
public static Set<Map.Entry<String,DistributedCache.DistributedCacheEntry>> readFileInfoFromConfig(Configuration conf)
public static List<Tuple2<String,DistributedCache.DistributedCacheEntry>> parseCachedFilesFromString(List<String> files)
PipelineOptions.CACHED_FILES
.
See PipelineOptions.CACHED_FILES
for the format.
files
- List of string encoded distributed cache entries.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.