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

com.nflabs.zeppelin.driver.mock.MockDriver Maven / Gradle / Ivy

Go to download

Zengine is java framework for data analysis on Hadoop. see http://nflabs.github.io/zeppelin/#/zengine

There is a newer version: 0.3.3
Show newest version
package com.nflabs.zeppelin.driver.mock;

import java.net.URI;
import java.util.HashMap;
import java.util.Map;

import com.nflabs.zeppelin.driver.ZeppelinConnection;
import com.nflabs.zeppelin.driver.ZeppelinDriver;
import com.nflabs.zeppelin.driver.ZeppelinDriverException;
import com.nflabs.zeppelin.result.Result;

public class MockDriver extends ZeppelinDriver{
	static public Map queries = new HashMap();
	static public Map views = new HashMap();
	static public Map tables = new HashMap();
	

	@Override
	protected ZeppelinConnection createConnection(String uri) throws ZeppelinDriverException {
		return new MockDriverConnection(queries, views, tables);
	}


	@Override
	public boolean acceptsURL(String url) {
		return true;
	}


	@Override
	protected void init() {

	}
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy