if( funcSpec == null ){
funcSpec = new FuncSpec( PigStorage.class.getName() );
}
Object obj = PigContext.instantiateFuncFromSpec( funcSpec );
StoreFuncInterface stoFunc = (StoreFuncInterface)obj;
String sig = QueryParserUtils.constructSignature( inputAlias, filename, funcSpec);
stoFunc.setStoreFuncUDFContextSignature( sig );
String absolutePath = fileNameMap.get( sig );
if (absolutePath == null) {
absolutePath = stoFunc.relToAbsPathForStoreLocation( filename,
QueryParserUtils.getCurrentDir( pigContext ) );
if (absolutePath!=null) {
QueryParserUtils.setHdfsServers( absolutePath, pigContext );
}
fileNameMap.put( sig, absolutePath );