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

prerna.reactor.qs.source.FileReferenceReactor Maven / Gradle / Ivy

The newest version!
package prerna.reactor.qs.source;

import prerna.om.FileReference;
import prerna.reactor.AbstractReactor;
import prerna.sablecc2.om.PixelDataType;
import prerna.sablecc2.om.PixelOperationType;
import prerna.sablecc2.om.ReactorKeysEnum;
import prerna.sablecc2.om.nounmeta.NounMetadata;

public class FileReferenceReactor extends AbstractReactor {

	public FileReferenceReactor() {
		this.keysToGet = new String[] { ReactorKeysEnum.FILE_PATH.getKey(), ReactorKeysEnum.SPACE.getKey() };
	}
	
	@Override
	public NounMetadata execute() {
		organizeKeys();
		String filePath = this.keyValue.get(this.keysToGet[0]);
		String space = this.keyValue.get(this.keysToGet[1]);
		
		FileReference fileRef = new FileReference(filePath, space);
		return new NounMetadata(fileRef, PixelDataType.FILE_REFERENCE, PixelOperationType.FILE_REFERENCE);
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy