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

Examples of org.apache.drill.exec.ref.values.SimpleMapValue


        r.root = this.root.copy();
        return r;
    }

    public void clear() {
        root = new SimpleMapValue();
    }
View Full Code Here


    public void clear() {
        root = new SimpleMapValue();
    }

    public void setClearAndSetRoot(SchemaPath path, DataValue v) {
        root = new SimpleMapValue();
        root.addValue(path.getRootSegment(), v);
    }
View Full Code Here

      for (int i = 0; i < node.size(); i++) {
        arr.addToArray(i, convert(node.get(i)));
      }
      return arr;
    } else if (node.isObject()) {
      SimpleMapValue map = new SimpleMapValue();
      String name;
      for (Iterator<String> iter = node.fieldNames(); iter.hasNext();) {
        name = iter.next();
        map.setByName(name, convert(node.get(name)));
      }
      return map;
    } else if (node.isBinary()) {
      try {
        return new BytesScalar(node.binaryValue());
View Full Code Here

TOP

Related Classes of org.apache.drill.exec.ref.values.SimpleMapValue

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.