Ejemplo n.º 1
0
 public static String[] getSharedFileLength(Configuration conf) {
   return conf.getStrings("mapred.cache.shared.files.length");
 }
Ejemplo n.º 2
0
 /**
  * Get the timestamps of the archives
  *
  * @param conf The configuration which stored the timestamps
  * @return a string array of timestamps
  * @throws IOException
  */
 public static String[] getArchiveTimestamps(Configuration conf) {
   return conf.getStrings("mapred.cache.archives.timestamps");
 }
Ejemplo n.º 3
0
 /**
  * Get the timestamps of the files
  *
  * @param conf The configuration which stored the timestamps
  * @return a string array of timestamps
  * @throws IOException
  */
 public static String[] getFileTimestamps(Configuration conf) {
   return conf.getStrings("mapred.cache.files.timestamps");
 }
Ejemplo n.º 4
0
 /**
  * Return the path array of the localized caches
  *
  * @param conf Configuration that contains the localized archives
  * @return A path array of localized caches
  * @throws IOException
  */
 public static Path[] getLocalCacheArchives(Configuration conf) throws IOException {
   return StringUtils.stringToPath(conf.getStrings("mapred.cache.localArchives"));
 }
Ejemplo n.º 5
0
 /**
  * Return the path array of the localized files
  *
  * @param conf Configuration that contains the localized files
  * @return A path array of localized files
  * @throws IOException
  */
 public static Path[] getLocalSharedCacheFiles(Configuration conf) throws IOException {
   return StringUtils.stringToPath(conf.getStrings("mapred.cache.shared.localFiles"));
 }
Ejemplo n.º 6
0
 /**
  * Get cache archives set in the Configuration
  *
  * @param conf The configuration which contains the archives
  * @return A URI array of the caches set in the Configuration
  * @throws IOException
  */
 public static URI[] getCacheArchives(Configuration conf) throws IOException {
   return StringUtils.stringToURI(conf.getStrings("mapred.cache.archives"));
 }
Ejemplo n.º 7
0
 /**
  * Get cache files set in the Configuration
  *
  * @param conf The configuration which contains the files
  * @return A URI array of the files set in the Configuration
  * @throws IOException
  */
 public static URI[] getSharedCacheFiles(Configuration conf) throws IOException {
   return StringUtils.stringToURI(conf.getStrings("mapred.cache.shared.files"));
 }
Ejemplo n.º 8
0
 /**
  * Get the timestamps of the files. Used by internal DistributedCache and MapReduce code.
  *
  * @param conf The configuration which stored the timestamps
  * @return a long array of timestamps
  * @throws IOException
  */
 public static long[] getFileTimestamps(Configuration conf) {
   return parseTimestamps(conf.getStrings(CACHE_FILES_TIMESTAMPS));
 }
Ejemplo n.º 9
0
 /**
  * Get the timestamps of the archives. Used by internal DistributedCache and MapReduce code.
  *
  * @param conf The configuration which stored the timestamps
  * @return a long array of timestamps
  * @throws IOException
  */
 public static long[] getArchiveTimestamps(Configuration conf) {
   return parseTimestamps(conf.getStrings(CACHE_ARCHIVES_TIMESTAMPS));
 }
Ejemplo n.º 10
0
 /**
  * Return the path array of the localized files. Intended to be used by user code.
  *
  * @param conf Configuration that contains the localized files
  * @return A path array of localized files
  * @throws IOException
  */
 public static Path[] getLocalCacheFiles(Configuration conf) throws IOException {
   return StringUtils.stringToPath(conf.getStrings(CACHE_LOCALFILES));
 }
Ejemplo n.º 11
0
 /**
  * Get cache files set in the Configuration. Used by internal DistributedCache and MapReduce code.
  *
  * @param conf The configuration which contains the files
  * @return Am array of the files set in the Configuration
  * @throws IOException
  */
 public static URI[] getCacheFiles(Configuration conf) throws IOException {
   return StringUtils.stringToURI(conf.getStrings(CACHE_FILES));
 }
Ejemplo n.º 12
0
 /**
  * Get cache archives set in the Configuration. Used by internal DistributedCache and MapReduce
  * code.
  *
  * @param conf The configuration which contains the archives
  * @return An array of the caches set in the Configuration
  * @throws IOException
  */
 public static URI[] getCacheArchives(Configuration conf) throws IOException {
   return StringUtils.stringToURI(conf.getStrings(CACHE_ARCHIVES));
 }