gedi-geode-extensions-core/src/main/java/gedi/solutions/geode/operations/csv/function/ExportCsvFunction.java
public void execute(FunctionContext<String[]> fc)
	{
		
		ResultSender<Object> rs = fc.getResultSender();
		try
		{
			boolean didExport = false;
			
			if(fc instanceof RegionFunctionContext)
			{
				String[] args = fc.getArguments();
				
				didExport = this.exportRegion(((RegionFunctionContext)fc).getDataSet(),
				Organizer.at(0,args));	
			}
			else
			{
				didExport = exportRegionByArg(fc);
			}
			
			rs.lastResult(didExport);
		}
		catch (Exception e)
		{
			
			StringWriter sw = new StringWriter();
			PrintWriter pw = new PrintWriter(sw);
			e.printStackTrace(pw);
			
			LogManager.getLogger(getClass()).error(sw.toString());
			rs.sendException(e);
		}
		
	    
	}
public void execute(FunctionContext<String[]> fc)
	{
		
		ResultSender<Object> rs = fc.getResultSender();
		try
		{
			boolean didExport = false;
			
			if(fc instanceof RegionFunctionContext)
			{
				String[] args = fc.getArguments();
				
				didExport = this.exportRegion(((RegionFunctionContext)fc).getDataSet(),
				Organizer.at(0,args));	
			}
			else
			{
				didExport = exportRegionByArg(fc);
			}
			
			rs.lastResult(didExport);
		}
		catch (Exception e)
		{
			
			StringWriter sw = new StringWriter();
			PrintWriter pw = new PrintWriter(sw);
			e.printStackTrace(pw);
			
			LogManager.getLogger(getClass()).error(sw.toString());
			rs.sendException(e);
		}
		
	    
	}
public void execute ( FunctionContext < String [ ] > fc ) { ResultSender < Object > rs = fc . getResultSender ( ) ; try { boolean didExport = false ; if ( fc instanceof RegionFunctionContext ) { String [ ] args = fc . getArguments ( ) ; didExport = this . exportRegion ( ( ( RegionFunctionContext ) fc ) . getDataSet ( ) , Organizer . at ( 0 , args ) ) ; } else { didExport = exportRegionByArg ( fc ) ; } rs . lastResult ( didExport ) ; } catch ( Exception e ) { StringWriter sw = new StringWriter ( ) ; PrintWriter pw = new PrintWriter ( sw ) ; e . printStackTrace ( pw ) ; LogManager . getLogger ( getClass ( ) ) . error ( sw . toString ( ) ) ; rs . sendException ( e ) ; } }
Export region data in JSON format
@param fc the function context
Export region data in JSON format