Package org.apache.drill.exec.ref.values.ScalarValues

Examples of org.apache.drill.exec.ref.values.ScalarValues.BooleanScalar


    }
   
    @Override
    public BooleanScalar eval() {
      matcher.reset(ValueReader.getChars(eval.eval()));
      return new BooleanScalar(matcher.find());
    }
View Full Code Here


      right = args.getEvaluator(1);
    }
   
    @Override
    public BooleanScalar eval() {
      return new BooleanScalar(left.eval().equals(right.eval()));
    }
View Full Code Here

      DataValue a = left.eval();
      DataValue b = right.eval();
     
      if(isComparable(a, b)){
        int i = ((ComparableValue)a).compareTo(b);
        return new BooleanScalar(valid( i));
      }else{
        throw new RecordException(String.format("Values cannot be compared.  A %s cannot be compared to a %s.", a, b), null);
      }
    }
View Full Code Here

//      return new BigDecimalScalar(node.decimalValue());
    } else if (node.isBigInteger()) {
      throw new UnsupportedOperationException();
//      return new BigIntegerScalar(node.bigIntegerValue());
    } else if (node.isBoolean()) {
      return new BooleanScalar(node.asBoolean());
    } else if (node.isFloatingPointNumber()) {
      if (node.isBigDecimal()) {
        throw new UnsupportedOperationException();
//        return new BigDecimalScalar(node.decimalValue());
      } else {
View Full Code Here

    return new DoubleScalar(dExpr.getDouble());
  }

  @Override
  public BasicEvaluator visitBooleanConstant(BooleanExpression e) {
    return new BooleanScalar(e.getBoolean());
  }
View Full Code Here

TOP

Related Classes of org.apache.drill.exec.ref.values.ScalarValues.BooleanScalar

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.