com.nflabs.zeppelin.driver.mock.MockDriver Maven / Gradle / Ivy
package com.nflabs.zeppelin.driver.mock;
import java.net.URI;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
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();
static public List loadedResources = new LinkedList();
@Override
protected ZeppelinConnection createConnection(String uri) throws ZeppelinDriverException {
return new MockDriverConnection(queries, views, tables, loadedResources);
}
@Override
public boolean acceptsURL(String url) {
return true;
}
@Override
protected void init() {
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy