Package org.apache.drill.common.logical

Examples of org.apache.drill.common.logical.StorageEngineConfig


  @Test
  public void testEnginesWithTheSameNameAreEqual() {
    DrillConfig config = DrillConfig.create();
    RSERegistry rses = new RSERegistry(config);
    StorageEngineConfig hconfig = new ConsoleRSE.ConsoleRSEConfig();
    ConsoleRSE engine = (ConsoleRSE) rses.getEngine(hconfig);
    ConsoleRSE engine2 = (ConsoleRSE) rses.getEngine(hconfig);
    assertSame(engine, engine2);
  }
View Full Code Here


    throw new UnsupportedOperationException("Unable to convert Logical Operator of type "
        + o.getClass().getCanonicalName());
  }

  private ReferenceStorageEngine getEngine(String name){
    StorageEngineConfig config = plan.getStorageEngineConfig(name);
    if(config == null) throw new SetupException(String.format("Unable to find define storage engine of name [%s].", name));
    ReferenceStorageEngine engine = engineRegistry.getEngine(config);
    return engine;
  }
View Full Code Here

    StoreROP rop = new StoreROP(store, getEngine(store.getStorageEngine()));
    rop.init(registry, builder);
  }

  public void convertSpecific(Scan scan) throws SetupException {
    StorageEngineConfig engineConfig = plan.getStorageEngineConfig(scan.getStorageEngine());
    ReferenceStorageEngine engine = engineRegistry.getEngine(engineConfig);
    Collection<ReadEntry> readEntries;
    try {
      readEntries = engine.getReadEntries(scan);
    } catch (IOException e1) {
View Full Code Here



    @Override
    public PhysicalOperator visitScan(Scan scan, Object obj) throws OptimizerException {
      StorageEngineConfig config = logicalPlan.getStorageEngineConfig(scan.getStorageEngine());
      if(config == null) throw new OptimizerException(String.format("Logical plan referenced the storage engine config %s but the logical plan didn't have that available as a config.", scan.getStorageEngine()));
      StorageEngine engine;
      try {
        engine = context.getStorageEngine(config);
        return engine.getPhysicalScan(scan);
View Full Code Here

TOP

Related Classes of org.apache.drill.common.logical.StorageEngineConfig

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.