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

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


    xMean = new Float8Holder();
    yMean = new Float8Holder();
    xyMean = new Float8Holder();
    xDev = new Float8Holder();
    yDev = new Float8Holder();
    count = new BigIntHolder();
    covar = new Float8Holder();

    // Initialize the workspace variables
    xMean.value = 0;
    yMean.value = 0;
View Full Code Here


    xMean = new Float8Holder();
    yMean = new Float8Holder();
    xyMean = new Float8Holder();
    xDev = new Float8Holder();
    yDev = new Float8Holder();
    count = new BigIntHolder();
    covar = new Float8Holder();

    // Initialize the workspace variables
    xMean.value = 0;
    yMean.value = 0;
View Full Code Here

    xMean = new Float8Holder();
    yMean = new Float8Holder();
    xyMean = new Float8Holder();
    xDev = new Float8Holder();
    yDev = new Float8Holder();
    count = new BigIntHolder();
    covar = new Float8Holder();

    // Initialize the workspace variables
    xMean.value = 0;
    yMean.value = 0;
View Full Code Here

    xMean = new Float8Holder();
    yMean = new Float8Holder();
    xyMean = new Float8Holder();
    xDev = new Float8Holder();
    yDev = new Float8Holder();
    count = new BigIntHolder();
    covar = new Float8Holder();

    // Initialize the workspace variables
    xMean.value = 0;
    yMean.value = 0;
View Full Code Here

      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);
      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 = -28;
      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 = -30;
      repeatedMap.bigInt("x").write(h);
      repeatedMap.end();

      map.end();
View Full Code Here

        Float8Holder fh = new Float8Holder();
        fh.value = parser.getDoubleValue();
        map.float8(fieldName).write(fh);
        break;
      case VALUE_NUMBER_INT:
        BigIntHolder bh = new BigIntHolder();
        bh.value = parser.getLongValue();
        map.bigInt(fieldName).write(bh);
        break;
      case VALUE_STRING:
        VarCharHolder vh = new VarCharHolder();
View Full Code Here

        Float8Holder fh = new Float8Holder();
        fh.value = parser.getDoubleValue();
        list.float8().write(fh);
        break;
      case VALUE_NUMBER_INT:
        BigIntHolder bh = new BigIntHolder();
        bh.value = parser.getLongValue();
        list.bigInt().write(bh);
        break;
      case VALUE_STRING:
        VarCharHolder vh = new VarCharHolder();
View Full Code Here

      BigIntVector.Accessor a0;
      a0 = c0.getAccessor();

      int count = 0;
      for(int i = 0; i < c0.getAccessor().getValueCount(); i++){
          BigIntHolder holder0 = new BigIntHolder();
          a0.get(i, holder0);
          assertEquals(1256, holder0.value);
          ++count;

      }
View Full Code Here

      BigIntVector.Accessor a0;
      a0 = c0.getAccessor();

      int count = 0;
      for(int i = 0; i < c0.getAccessor().getValueCount(); i++){
          BigIntHolder holder0 = new BigIntHolder();
          a0.get(i, holder0);
          assertEquals(1256, holder0.value);
          ++count;

      }
View Full Code Here

      BigIntVector.Accessor a0;
      a0 = c0.getAccessor();

      int count = 0;
      for(int i = 0; i < c0.getAccessor().getValueCount(); i++){
          BigIntHolder holder0 = new BigIntHolder();
          a0.get(i, holder0);
          assertEquals(1256, holder0.value);
          ++count;

      }
View Full Code Here

TOP

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

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.