Package org.apache.drill.exec.physical

Examples of org.apache.drill.exec.physical.OperatorCost


  }
 
  JSONSubScan(List<JSONGroupScan.ScanEntry> readEntries, JSONStorageEngine engine, FieldReference ref){
    this.readEntries = readEntries;
    this.storageEngine = engine;
    OperatorCost cost = new OperatorCost(0, 0, 0, 0);
    Size size = new Size(0, 0);
    for (JSONGroupScan.ScanEntry r : readEntries) {
      cost = cost.add(r.getCost());
      size = size.add(r.getSize());
    }
    this.cost = cost;
    this.size = size;
    this.ref = ref;
View Full Code Here


  }

  public JSONGroupScan(List<ScanEntry> entries, JSONStorageEngine engine, FieldReference ref) {
    this.engine = engine;
    this.readEntries = entries;
    OperatorCost cost = new OperatorCost(0, 0, 0, 0);
    Size size = new Size(0, 0);
    for (JSONGroupScan.ScanEntry r : readEntries) {
    cost = cost.add(r.getCost());
    size = size.add(r.getSize());
    }
    this.cost = cost;
    this.size = size;
    this.ref = ref;
View Full Code Here

      size = new Size(ESTIMATED_RECORD_SIZE, ESTIMATED_RECORD_SIZE);
    }

    @Override
    public OperatorCost getCost() {
      return new OperatorCost(1, 1, 2, 2);
    }
View Full Code Here

  private  LinkedList<MockScanEntry>[] mappings;

  @JsonCreator
  public MockGroupScanPOP(@JsonProperty("url") String url, @JsonProperty("entries") List<MockScanEntry> readEntries) {
    this.readEntries = readEntries;
    OperatorCost cost = new OperatorCost(0,0,0,0);
    Size size = new Size(0,0);
    for(MockScanEntry r : readEntries){
      cost = cost.add(r.getCost());
      size = size.add(r.getSize());
    }
    this.cost = cost;
    this.size = size;
    this.url = url;
View Full Code Here

      this.recordSize = size;
    }

    @Override
    public OperatorCost getCost() {
      return new OperatorCost(1, 2, 1, 1);
    }
View Full Code Here

    return new MockStorePOP(child);
  }

  @Override
  public OperatorCost getCost() {
    return new OperatorCost(1,getSize().getRecordCount()*getSize().getRecordSize(),1,1);
  }
View Full Code Here

      this.rowGroupIndex = rowGroupIndex;
    }

    @Override
    public OperatorCost getCost() {
      return new OperatorCost(1, 2, 1, 1);
    }
View Full Code Here

  private  LinkedList<MockGroupScanPOP.MockScanEntry>[] mappings;

  @JsonCreator
  public MockSubScanPOP(@JsonProperty("url") String url, @JsonProperty("entries") List<MockGroupScanPOP.MockScanEntry> readEntries) {
    this.readEntries = readEntries;
    OperatorCost cost = new OperatorCost(0,0,0,0);
    Size size = new Size(0,0);
    for(MockGroupScanPOP.MockScanEntry r : readEntries){
      cost = cost.add(r.getCost());
      size = size.add(r.getSize());
    }
    this.cost = cost;
    this.size = size;
    this.url = url;
View Full Code Here

  }

  @Override
  public OperatorCost getCost() {
    //TODO Figure out how to properly calculate cost
    return new OperatorCost(1,rowGroupInfos.size(),1,1);
  }
View Full Code Here

      this.rowGroupIndex = rowGroupIndex;
    }

    @Override
    public OperatorCost getCost() {
      return new OperatorCost(1, 2, 1, 1);
    }
View Full Code Here

TOP

Related Classes of org.apache.drill.exec.physical.OperatorCost

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.