Package org.apache.tajo.engine.planner

Examples of org.apache.tajo.engine.planner.Projector


    for (int i = 0; i < joinKeyPairs.size(); i++) {
      rightKeyList[i] = inner.getSchema().getColumnId(joinKeyPairs.get(i)[1].getQualifiedName());
    }

    // for projection
    this.projector = new Projector(inSchema, outSchema, plan.getTargets());
    this.evalContexts = projector.renew();

    // for join
    frameTuple = new FrameTuple();
    outTuple = new VTuple(outSchema.getColumnNum());
View Full Code Here


    // for projection
    if (!plan.hasTargets()) {
      plan.setTargets(PlannerUtil.schemaToTargets(outSchema));
    }

    projector = new Projector(inSchema, outSchema, plan.getTargets());

    // for join
    frameTuple = new FrameTuple();
    outputTuple = new VTuple(outSchema.size());
  }
View Full Code Here

    for (int i = 0; i < joinKeyPairs.size(); i++) {
      rightKeyList[i] = rightExec.getSchema().getColumnId(joinKeyPairs.get(i)[1].getQualifiedName());
    }

    // for projection
    this.projector = new Projector(inSchema, outSchema, plan.getTargets());

    // for join
    frameTuple = new FrameTuple();
    outTuple = new VTuple(outSchema.size());
    leftKeyTuple = new VTuple(leftKeyList.length);
View Full Code Here

    if (plan.hasJoinQual()) {
      this.joinQual = plan.getJoinQual();
    }

    // for projection
    projector = new Projector(inSchema, outSchema, plan.getTargets());

    // for join
    needNextRightTuple = true;
    frameTuple = new FrameTuple();
    outTuple = new VTuple(outSchema.size());
View Full Code Here

    this.datum = datum;

    this.fileScanner = StorageManagerFactory.getSeekableScanner(context.getConf(),
        scanNode.getTableDesc().getMeta(), scanNode.getInSchema(), fragment, outSchema);
    this.fileScanner.init();
    this.projector = new Projector(inSchema, outSchema, scanNode.getTargets());

    this.reader = new BSTIndex(sm.getFileSystem().getConf()).
        getIndexReader(fileName, keySchema, comparator);
    this.reader.open();
  }
View Full Code Here

    if (plan.hasJoinQual()) {
      this.joinQual = plan.getJoinQual();
    }

    // for projection
    projector = new Projector(inSchema, outSchema, plan.getTargets());

    // for join
    needNewOuter = true;
    frameTuple = new FrameTuple();
    outTuple = new VTuple(outSchema.size());
View Full Code Here

  public void init() throws IOException {
    super.init();

    this.outTuple = new VTuple(outSchema.size());
    this.projector = new Projector(inSchema, outSchema, this.plan.getTargets());
  }
View Full Code Here

      initScanner(projected);
    }
  }

  private void initScanner(Schema projected) throws IOException {
    this.projector = new Projector(inSchema, outSchema, plan.getTargets());

    if (fragments != null) {
      if (fragments.length > 1) {
        this.scanner = new MergeScanner(context.getConf(), plan.getPhysicalSchema(), plan.getTableDesc().getMeta(),
            FragmentConvertor.<FileFragment>convert(context.getConf(), plan.getTableDesc().getMeta().getStoreType(),
View Full Code Here

        rightChild.getSchema(), sortSpecs);
    this.tupleComparator = PlannerUtil.getComparatorsFromJoinQual(
        plan.getJoinQual(), leftChild.getSchema(), rightChild.getSchema());

    // for projection
    this.projector = new Projector(inSchema, outSchema, plan.getTargets());

    // for join
    frameTuple = new FrameTuple();
    outTuple = new VTuple(outSchema.size());
View Full Code Here

    this.joinComparator = new JoinTupleComparator(outer.getSchema(), inner.getSchema(), sortSpecs);
    this.tupleComparator = PlannerUtil.getComparatorsFromJoinQual(
        plan.getJoinQual(), outer.getSchema(), inner.getSchema());

    // for projection
    this.projector = new Projector(inSchema, outSchema, plan.getTargets());

    // for join
    frameTuple = new FrameTuple();
    outTuple = new VTuple(outSchema.size());
View Full Code Here

TOP

Related Classes of org.apache.tajo.engine.planner.Projector

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.