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

Method checkDefaultPrefix

src/org/apache/pig/impl/io/FileLocalizer.java:157–161  ·  view source on GitHub ↗
(ExecType execType, String fileSpec)

Source from the content-addressed store, hash-verified

155 }
156
157 static String checkDefaultPrefix(ExecType execType, String fileSpec) {
158 if (fileSpec.startsWith(LOCAL_PREFIX))
159 return fileSpec;
160 return (execType == ExecType.LOCAL ? LOCAL_PREFIX : "") + fileSpec;
161 }
162
163 /**
164 * This function is meant to be used if the mappers/reducers want to access any HDFS file

Callers 3

openMethod · 0.95
createMethod · 0.95
deleteMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected