Package org.apache.drill.common

Examples of org.apache.drill.common.JSONOptions$De


    PlanProperties props = PlanProperties.builder()
        .type(PlanProperties.PlanType.APACHE_DRILL_PHYSICAL)
        .version(plan.getProperties().version)
        .generator(plan.getProperties().generator)
        .options(new JSONOptions(context.getOptions().getSessionOptionList())).build();
    PhysicalPlan p = new PhysicalPlan(props, physOps);
    return p;
    //return new PhysicalPlan(props, physOps);
  }
View Full Code Here


  @Override
  public LogicalOperator implement(DrillImplementor implementor) {
    Scan.Builder builder = Scan.builder();
    builder.storageEngine(drillTable.getStorageEngineName());
    builder.selection(new JSONOptions(drillTable.getSelection()));
    implementor.registerSource(drillTable);
    return builder.build();
  }
View Full Code Here

    this.storageEngineName = storageEngineName;
  }

  public GroupScan getGroupScan() throws IOException{
    if(scan == null){
      this.scan = plugin.getPhysicalScan(new JSONOptions(selection));
    }
    return scan;
  }
View Full Code Here

  protected PhysicalPlan convertToPlan(PhysicalOperator op) {
    PlanPropertiesBuilder propsBuilder = PlanProperties.builder();
    propsBuilder.type(PlanType.APACHE_DRILL_PHYSICAL);
    propsBuilder.version(1);
    propsBuilder.options(new JSONOptions(context.getOptions().getSessionOptionList()));
    propsBuilder.resultMode(ResultMode.EXEC);
    propsBuilder.generator(this.getClass().getSimpleName(), "");
    return new PhysicalPlan(propsBuilder.build(), getPops(op));
  }
View Full Code Here

   */
  @Test
  public void testBuild() {
    String storageEngine = "mock-storage";
    PartitionDef partition = new PartitionDef(PartitionDef.PartitionType.RANGE, null, null);
    JSONOptions target = null;

    Store storeOp = Store.builder()
        .storageEngine(storageEngine)
        .partition(partition)
        .target(target)
View Full Code Here

   * Build a Scan operator and validate each field
   */
  @Test
  public void testBuild() {
    FieldReference outputFieldReference = new FieldReference("Flavour");
    JSONOptions selection = null;
    String storageEngine = "mock-storage";

    Scan scanOp = Scan.builder()
        .storageEngine(storageEngine)
        .outputReference(outputFieldReference)
View Full Code Here

    PlanProperties props = PlanProperties.builder()
        .type(PlanProperties.PlanType.APACHE_DRILL_PHYSICAL)
        .version(plan.getProperties().version)
        .generator(plan.getProperties().generator)
        .options(new JSONOptions(context.getOptions().getOptionList())).build();
    PhysicalPlan p = new PhysicalPlan(props, physOps);
    return p;
    //return new PhysicalPlan(props, physOps);
  }
View Full Code Here

  @Override
  public LogicalOperator implement(DrillImplementor implementor) {
    Scan.Builder builder = Scan.builder();
    builder.storageEngine(drillTable.getStorageEngineName());
    builder.selection(new JSONOptions(drillTable.getSelection()));
    implementor.registerSource(drillTable);
    return builder.build();
  }
View Full Code Here

  protected PhysicalPlan convertToPlan(PhysicalOperator op) {
    PlanPropertiesBuilder propsBuilder = PlanProperties.builder();
    propsBuilder.type(PlanType.APACHE_DRILL_PHYSICAL);
    propsBuilder.version(1);
    propsBuilder.options(new JSONOptions(context.getOptions().getOptionList()));
    propsBuilder.resultMode(ResultMode.EXEC);
    propsBuilder.generator(this.getClass().getSimpleName(), "");
    return new PhysicalPlan(propsBuilder.build(), getPops(op));
  }
View Full Code Here

    this.storageEngineName = storageEngineName;
  }

  public GroupScan getGroupScan() throws IOException{
    if (scan == null) {
      this.scan = plugin.getPhysicalScan(new JSONOptions(selection));
    }
    return scan;
  }
View Full Code Here

TOP

Related Classes of org.apache.drill.common.JSONOptions$De

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.