Package org.apache.drill.exec.store.sys.local

Examples of org.apache.drill.exec.store.sys.local.LocalPStoreProvider


      this.embeddedJetty = null;
    }

    if(serviceSet != null) {
      this.coord = serviceSet.getCoordinator();
      this.storeProvider = new LocalPStoreProvider(config);
    } else {
      Runtime.getRuntime().addShutdownHook(new ShutdownThread(config));
      this.coord = new ZKClusterCoordinator(config);
      this.storeProvider = new PStoreRegistry(this.coord, config).newPStoreProvider();
    }
View Full Code Here


    }

  }

  public static CodeCompiler getTestCompiler(DrillConfig c) throws IOException{
    return new CodeCompiler(c, new SystemOptionManager(c, new LocalPStoreProvider(c)).init());
  }
View Full Code Here

    Files.write(output, new File("/src/scratch/bytes/S.class"));
    check(output);


    DrillConfig c = DrillConfig.createClient();
    SystemOptionManager m = new SystemOptionManager(c, new LocalPStoreProvider(c));
    m.init();
    QueryClassLoader ql = new QueryClassLoader(DrillConfig.create(), m);
    ql.injectByteCode("org.apache.drill.Pickle$OutgoingBatch", output);
    Class<?> clz = ql.loadClass("org.apache.drill.Pickle$OutgoingBatch");
    clz.getMethod("x").invoke(null);
View Full Code Here

  protected void testSqlPlan(String sqlCommands) throws Exception {
    String[] sqlStrings = sqlCommands.split(";");


    final LocalPStoreProvider provider = new LocalPStoreProvider(config);
    provider.start();

    final SystemOptionManager systemOptions = new SystemOptionManager(config, provider);
    systemOptions.init();
    final SessionOptionManager sessionOptions = new SessionOptionManager(systemOptions);
    final QueryOptionManager queryOptions = new QueryOptionManager(sessionOptions);
View Full Code Here

    }

  }

  public static CodeCompiler getTestCompiler(DrillConfig c) throws IOException{
    return new CodeCompiler(c, new LocalCache(), new SystemOptionManager(c, new LocalPStoreProvider(c)).init());
  }
View Full Code Here

TOP

Related Classes of org.apache.drill.exec.store.sys.local.LocalPStoreProvider

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.