All Downloads are FREE. Search and download functionalities are using the official Maven repository.

prerna.reactor.workflow.GetInsightDatasourcesReactor Maven / Gradle / Ivy

The newest version!
package prerna.reactor.workflow;

import java.util.List;
import java.util.Map;

import prerna.reactor.AbstractReactor;
import prerna.sablecc2.PixelUtility;
import prerna.sablecc2.om.PixelDataType;
import prerna.sablecc2.om.nounmeta.NounMetadata;

public class GetInsightDatasourcesReactor extends AbstractReactor {

	@Override
	public NounMetadata execute() {
		List recipe = this.insight.getPixelList().getPixelRecipe();
		StringBuilder b = new StringBuilder();
		for(String s : recipe) {
			b.append(s);
		}
		String fullRecipe = b.toString();
		
		List> sourcePixels = PixelUtility.getDatasourcesMetadata(this.insight.getUser(), fullRecipe);
		return new NounMetadata(sourcePixels, PixelDataType.CUSTOM_DATA_STRUCTURE);
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy