Package org.apache.drill.exec.expr.holders

Examples of org.apache.drill.exec.expr.holders.IntHolder


  @Param UInt2Holder in;
  @Workspace IntHolder inter;
  @Output IntHolder out;

  public void setup(RecordBatch b) {
  inter = new IntHolder();

    // Initialize the workspace variables
    inter.value = 0;
  }
View Full Code Here


  @Param NullableUInt2Holder in;
  @Workspace IntHolder inter;
  @Output IntHolder out;

  public void setup(RecordBatch b) {
  inter = new IntHolder();

    // Initialize the workspace variables
    inter.value = 0;
  }
View Full Code Here

  @Param UInt4Holder in;
  @Workspace IntHolder inter;
  @Output IntHolder out;

  public void setup(RecordBatch b) {
  inter = new IntHolder();

    // Initialize the workspace variables
    inter.value = 0;
  }
View Full Code Here

  @Param NullableUInt4Holder in;
  @Workspace IntHolder inter;
  @Output IntHolder out;

  public void setup(RecordBatch b) {
  inter = new IntHolder();

    // Initialize the workspace variables
    inter.value = 0;
  }
View Full Code Here

  @Param IntHolder in;
  @Workspace IntHolder inter;
  @Output IntHolder out;

  public void setup(RecordBatch b) {
  inter = new IntHolder();

    // Initialize the workspace variables
    inter.value = 0;
  }
View Full Code Here

  @Param NullableIntHolder in;
  @Workspace IntHolder inter;
  @Output IntHolder out;

  public void setup(RecordBatch b) {
  inter = new IntHolder();

    // Initialize the workspace variables
    inter.value = 0;
  }
View Full Code Here

                     * Add new state to the helper context
                     */
                    hjHelper.addNewBatch(currentRecordCount);

                    // Holder contains the global index where the key is hashed into using the hash table
                    IntHolder htIndex = new IntHolder();

                    // For every record in the build batch , hash the key columns
                    for (int i = 0; i < currentRecordCount; i++) {

                        HashTable.PutStatus status = hashTable.put(i, htIndex, 1 /* retry count */);
 
View Full Code Here

      ListWriter innerList = list.list();
      IntWriter innerInt = innerList.integer();

      innerList.start();

      IntHolder holder = new IntHolder();

      holder.value = 1;
      innerInt.write(holder);
      holder.value = 2;
      innerInt.write(holder);
      holder.value = 3;
      innerInt.write(holder);

      innerList.end();
      innerList.start();

      holder.value = 4;
      innerInt.write(holder);
      holder.value = 5;
      innerInt.write(holder);

      innerList.end();
      list.end();

      IntWriter numCol = map.integer("nums");
      holder.value = 14;
      numCol.write(holder);

      MapWriter repeatedMap = map.list("b").map();
      repeatedMap.start();
      holder.value = 1;
      repeatedMap.integer("c").write(holder);
      repeatedMap.end();

      repeatedMap.start();
      holder.value = 2;
      repeatedMap.integer("c").write(holder);
      BigIntHolder h = new BigIntHolder();
      h.value = 15;
      repeatedMap.bigInt("x").write(h);
      repeatedMap.end();

      map.end();
    }
    assert writer.ok();

    {
      writer.setPosition(1);

      MapWriter map = writer.rootAsMap();
      ListWriter list = map.list("a");
      list.start();

      ListWriter innerList = list.list();
      IntWriter innerInt = innerList.integer();

      innerList.start();

      IntHolder holder = new IntHolder();

      holder.value = -1;
      innerInt.write(holder);
      holder.value = -2;
      innerInt.write(holder);
View Full Code Here

    batchHolders = new ArrayList<BatchHolder>();
    addBatchHolder();

    doSetup(incomingBuild, incomingProbe);

    currentIdxHolder = new IntHolder();
  }
View Full Code Here

    // TODO:  This functionality will be added later.
    if (hashAggrConfig.getGroupByExprs().length == 0) {
      throw new IllegalArgumentException("Currently, hash aggregation is only applicable if there are group-by expressions.");
    }

    this.htIdxHolder = new IntHolder();
    this.outStartIdxHolder = new IntHolder();
    this.outNumRecordsHolder = new IntHolder();
   
    materializedValueFields = new MaterializedField[valueFieldIds.size()];

    if (valueFieldIds.size() > 0) {
      int i = 0;
View Full Code Here

TOP

Related Classes of org.apache.drill.exec.expr.holders.IntHolder

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.