Search in sources :

Example 1 with SQLEvaluator

use of com.twosigma.beakerx.sql.evaluator.SQLEvaluator in project beakerx by twosigma.

the class SQLAutocompleteTest method setUp.

@Before
public void setUp() throws Exception {
    sqlEvaluator = new SQLEvaluator("shellId1", "sessionId1", cellExecutor(), getTestTempFolderFactory(), kernelParameters());
    sqlEvaluator.setShellOptions(kernelParameters());
    kernelTest = new KernelTest("id1", sqlEvaluator);
}
Also used : SQLEvaluator(com.twosigma.beakerx.sql.evaluator.SQLEvaluator) KernelTest(com.twosigma.beakerx.KernelTest) Before(org.junit.Before)

Example 2 with SQLEvaluator

use of com.twosigma.beakerx.sql.evaluator.SQLEvaluator in project beakerx by twosigma.

the class SQLBaseEvaluatorTest method setUpClass.

@BeforeClass
public static void setUpClass() throws Exception {
    evaluator = new SQLEvaluator("shellId1", "sessionId1", cellExecutor(), getTestTempFolderFactory(), kernelParameters());
    evaluator.setShellOptions(kernelParameters());
}
Also used : SQLEvaluator(com.twosigma.beakerx.sql.evaluator.SQLEvaluator) BeforeClass(org.junit.BeforeClass)

Example 3 with SQLEvaluator

use of com.twosigma.beakerx.sql.evaluator.SQLEvaluator in project beakerx by twosigma.

the class SQLKernelTest method createKernel.

@Override
protected Kernel createKernel(String sessionId, KernelSocketsFactory kernelSocketsFactory, CloseKernelAction closeKernelAction) {
    SQLEvaluator sqlEvaluator = new SQLEvaluator(sessionId, sessionId, cellExecutor(), getTestTempFolderFactory(), kernelParameters());
    sqlEvaluator.setShellOptions(kernelParameters());
    Kernel sqlKernel = new SQL(sessionId, sqlEvaluator, kernelSocketsFactory, closeKernelAction, getCacheFolderFactory());
    return sqlKernel;
}
Also used : SQLEvaluator(com.twosigma.beakerx.sql.evaluator.SQLEvaluator) Kernel(com.twosigma.beakerx.kernel.Kernel) SQL(com.twosigma.beakerx.sql.kernel.SQL)

Example 4 with SQLEvaluator

use of com.twosigma.beakerx.sql.evaluator.SQLEvaluator in project beakerx by twosigma.

the class SQL method main.

public static void main(final String[] args) throws InterruptedException, IOException {
    KernelRunner.run(() -> {
        String id = uuid();
        KernelSocketsFactoryImpl kernelSocketsFactory = new KernelSocketsFactoryImpl(new KernelConfigurationFile(args));
        SQLEvaluator evaluator = new SQLEvaluator(id, id, getKernelParameters());
        return new SQL(id, evaluator, kernelSocketsFactory);
    });
}
Also used : SQLEvaluator(com.twosigma.beakerx.sql.evaluator.SQLEvaluator) KernelConfigurationFile(com.twosigma.beakerx.kernel.KernelConfigurationFile) KernelSocketsFactoryImpl(com.twosigma.beakerx.kernel.KernelSocketsFactoryImpl)

Example 5 with SQLEvaluator

use of com.twosigma.beakerx.sql.evaluator.SQLEvaluator in project beakerx by twosigma.

the class SQLEvaluatorTest method setUp.

@Before
public void setUp() throws Exception {
    sqlEvaluator = new SQLEvaluator("shellId1", "sessionId1", cellExecutor(), getTestTempFolderFactory(), kernelParameters());
    sqlEvaluator.setShellOptions(kernelParameters());
    kernelTest = new KernelTest("1", sqlEvaluator);
    KernelManager.register(kernelTest);
}
Also used : SQLEvaluator(com.twosigma.beakerx.sql.evaluator.SQLEvaluator) KernelTest(com.twosigma.beakerx.KernelTest) Before(org.junit.Before)

Aggregations

SQLEvaluator (com.twosigma.beakerx.sql.evaluator.SQLEvaluator)5 KernelTest (com.twosigma.beakerx.KernelTest)2 Before (org.junit.Before)2 Kernel (com.twosigma.beakerx.kernel.Kernel)1 KernelConfigurationFile (com.twosigma.beakerx.kernel.KernelConfigurationFile)1 KernelSocketsFactoryImpl (com.twosigma.beakerx.kernel.KernelSocketsFactoryImpl)1 SQL (com.twosigma.beakerx.sql.kernel.SQL)1 BeforeClass (org.junit.BeforeClass)1