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

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


      }
      case VALUE_NULL:
        // do nothing as we don't have a type.
        break;
      case VALUE_NUMBER_FLOAT:
        Float8Holder fh = new Float8Holder();
        fh.value = parser.getDoubleValue();
        map.float8(fieldName).write(fh);
        break;
      case VALUE_NUMBER_INT:
        BigIntHolder bh = new BigIntHolder();
View Full Code Here


      }
      case VALUE_NULL:
        // do nothing as we don't have a type.
        break;
      case VALUE_NUMBER_FLOAT:
        Float8Holder fh = new Float8Holder();
        fh.value = parser.getDoubleValue();
        list.float8().write(fh);
        break;
      case VALUE_NUMBER_INT:
        BigIntHolder bh = new BigIntHolder();
View Full Code Here

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

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

      }
View Full Code Here

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

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

      }
View Full Code Here

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

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

      }
View Full Code Here

    return holder;
  }

  public static Float8Holder getFloat8Holder(double value) {
    Float8Holder holder = new Float8Holder();
    holder.value = value;

    return holder;
  }
View Full Code Here

      case VALUE_NUMBER_FLOAT:
        if (allTextMode) {
          handleString(parser, map, fieldName);
          break;
        }
        Float8Holder fh = new Float8Holder();
        fh.value = parser.getDoubleValue();
        map.float8(fieldName).write(fh);
        break;
      case VALUE_NUMBER_INT:
        if (allTextMode) {
View Full Code Here

      case VALUE_NUMBER_FLOAT:
        if (allTextMode) {
          handleString(parser, list);
          break;
        }
        Float8Holder fh = new Float8Holder();
        fh.value = parser.getDoubleValue();
        list.float8().write(fh);
        break;
      case VALUE_NUMBER_INT:
        if (allTextMode) {
View Full Code Here

        Float4Holder float4Holder = new Float4Holder();
        float4Holder.value = fieldReader.readFloat();
        mapWriter.float4(MappifyUtility.fieldValue).write(float4Holder);
        break;
      case FLOAT8:
        Float8Holder float8Holder = new Float8Holder();
        float8Holder.value = fieldReader.readDouble();
        mapWriter.float8(MappifyUtility.fieldValue).write(float8Holder);
        break;
      case BIT:
        BitHolder bitHolder = new BitHolder();
View Full Code Here

      case VALUE_NUMBER_FLOAT:
        if (allTextMode) {
          handleString(parser, map, fieldName);
          break;
        }
        Float8Holder fh = new Float8Holder();
        fh.value = parser.getDoubleValue();
        map.float8(fieldName).write(fh);
        break;
      case VALUE_NUMBER_INT:
        if (allTextMode) {
View Full Code Here

TOP

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

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.