Package org.apache.tajo.storage

Examples of org.apache.tajo.storage.VTuple


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

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


    // 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 (found) {
        break;
      }
    }

    return new VTuple(outTuple);
  }
View Full Code Here

  protected void loadRightToHashTable() throws IOException {
    Tuple tuple;
    Tuple keyTuple;

    while ((tuple = rightChild.next()) != null) {
      keyTuple = new VTuple(joinKeyPairs.size());
      for (int i = 0; i < rightKeyList.length; i++) {
        keyTuple.put(i, tuple.get(rightKeyList[i]));
      }

      List<Tuple> newValue = tupleSlots.get(keyTuple);
View Full Code Here

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

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

    foundAtLeastOneMatch = false;
    rightNumCols = rightChild.getSchema().size();
  }
View Full Code Here

    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

  }

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

    currentKey = new VTuple(keyNum);
    aggregated = new TableStats();
  }
View Full Code Here

      fillKeyTuple(tuple, currentKey);

      if (prevKey == null) {
        appender = getAppender(getSubdirectory(currentKey));
        prevKey = new VTuple(currentKey);
      } else {
        if (!prevKey.equals(currentKey)) {
          appender.close();
          StatisticsUtil.aggregateTableStat(aggregated, appender.getStats());

          appender = getAppender(getSubdirectory(currentKey));
          prevKey = new VTuple(currentKey);
        }
      }

      appender.addTuple(tuple);
    }
View Full Code Here

public class HashPartitioner extends Partitioner {
  private final Tuple keyTuple;
 
  public HashPartitioner(final int [] keys, final int numPartitions) {
    super(keys, numPartitions);
    this.keyTuple = new VTuple(partitionKeyIds.length);
  }
View Full Code Here

TOP

Related Classes of org.apache.tajo.storage.VTuple

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.