Package org.apache.drill.exec.proto.SchemaDefProtos

Examples of org.apache.drill.exec.proto.SchemaDefProtos.NamePart


    Iterator<NamePart> iter = def.getNameList().iterator();
   
    for (PathSegment p = path.getRootSegment();; p = p.getChild()) {
      if(p == null) break;
      if (!iter.hasNext()) return false;
      NamePart n = iter.next();

      if (p.isArray()) {
        if (n.getType() == Type.ARRAY) continue;
        return false;
      } else {
        if (p.getNameSegment().getPath().equals(n.getName())) continue;
        return false;
      }
     
    }
    // we've reviewed all path segments. confirm that we don't have any extra name parts.
View Full Code Here

TOP

Related Classes of org.apache.drill.exec.proto.SchemaDefProtos.NamePart

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.