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

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


    } else if (node.isInt()) {
      return new IntegerScalar(node.asInt());
    } else if (node.isLong()) {
      return new LongScalar(node.asLong());
    } else if (node.isTextual()) {
      return new StringScalar(node.asText());
    } else {
      throw new UnsupportedOperationException(String.format("Don't know how to convert value of type %s.", node
          .getClass().getCanonicalName()));
    }
View Full Code Here


    return new BooleanScalar(e.getBoolean());
  }

  @Override
  public BasicEvaluator visitQuotedStringConstant(QuotedString e) {
    return new StringScalar(e.value);
  }
View Full Code Here

TOP

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

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.