MCPcopy Create free account
hub / github.com/apache/pig / isTempFile

Method isTempFile

src/org/apache/pig/tools/pigstats/PigStatsUtil.java:129–132  ·  view source on GitHub ↗
(String fileName)

Source from the content-addressed store, hash-verified

127 private static Pattern pattern = Pattern.compile("tmp(-)?[\\d]{1,10}$");
128
129 public static boolean isTempFile(String fileName) {
130 Matcher result = pattern.matcher(fileName);
131 return result.find();
132 }
133
134 public static void setStatsMap(Map<String, List<PigStats>> statsMap) {
135 PigStats.start(new EmbeddedPigStats(statsMap));

Callers 2

testIsTempFileMethod · 0.95
addInputStatisticsMethod · 0.80

Calls 1

findMethod · 0.80

Tested by 1

testIsTempFileMethod · 0.76