com.nflabs.zeppelin.driver.mock.MockDriver Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zeppelin-zengine Show documentation
Show all versions of zeppelin-zengine Show documentation
Zengine is java framework for data analysis on Hadoop. see http://nflabs.github.io/zeppelin/#/zengine
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() {
}
}