Examples of VisitorException


Examples of org.apache.pig.impl.plan.VisitorException

       
        LogicalSchema s;
        try {
            s = Util.translateSchema(stream.getSchema());
        }catch(Exception e) {
            throw new VisitorException("Failed to translate schema.", e);
        }
       
        org.apache.pig.newplan.logical.relational.LOStream newStream =
            new org.apache.pig.newplan.logical.relational.LOStream(logicalPlan,
                    stream.getExecutableManager(), stream.getStreamingCommand(), s);
View Full Code Here

Examples of org.apache.pig.impl.plan.VisitorException

                                newUserDefinedSchemaList.add(new Schema(s.getField(j)));
                            } else {
                                newUserDefinedSchemaList.add(null);
                            }
                        } catch (FrontendException fee) {
                            throw new VisitorException(fee.getMessage(), fee);
                        }
                    } else {
                        newUserDefinedSchemaList.add(null);
                    }
                }
View Full Code Here

Examples of org.openrdf.query.parser.serql.ast.VisitorException

  @Override
  public Object visit(ASTNull node, Object data)
    throws VisitorException
  {
    throw new VisitorException(
        "Use of NULL values in SeRQL queries has been deprecated, use BOUND(...) instead");
  }
View Full Code Here

Examples of org.openrdf.query.parser.serql.ast.VisitorException

      if (alias != null) {
        boolean isUnique = aliases.add(alias);

        if (!isUnique) {
          throw new VisitorException("Duplicate projection element names: '" + alias + "'");
        }
      }
      else {
        unaliasedNodes.add(projElem);
      }
View Full Code Here

Examples of org.openrdf.query.parser.serql.ast.VisitorException

          if (iter.hasNext()) {
            errMsg.append(", ");
          }
        }

        throw new VisitorException(errMsg.toString());
      }
    }

    return data;
  }
View Full Code Here

Examples of org.openrdf.query.parser.sparql.ast.VisitorException

      String prefix = qname.substring(0, colonIdx);
      String localName = qname.substring(colonIdx + 1);

      String namespace = prefixMap.get(prefix);
      if (namespace == null) {
        throw new VisitorException("QName '" + qname + "' uses an undefined prefix");
      }

      // Replace the qname node with a new IRI node in the parent node
      ASTIRI iriNode = new ASTIRI(SyntaxTreeBuilderTreeConstants.JJTIRI);
      iriNode.setValue(namespace + localName);
View Full Code Here

Examples of org.openrdf.query.parser.sparql.ast.VisitorException

    try {
      uri = valueFactory.createURI(node.getValue());
    }
    catch (IllegalArgumentException e) {
      // invalid URI
      throw new VisitorException(e.getMessage());
    }

    return new ValueConstant(uri);
  }
View Full Code Here

Examples of org.openrdf.query.parser.sparql.ast.VisitorException

  @Override
  public Object visit(ASTQName node, Object data)
    throws VisitorException
  {
    throw new VisitorException("QNames must be resolved before building the query model");
  }
View Full Code Here

Examples of org.openrdf.query.parser.sparql.ast.VisitorException

  @Override
  public Object visit(ASTBlankNode node, Object data)
    throws VisitorException
  {
    throw new VisitorException(
        "Blank nodes must be replaced with variables before building the query model");
  }
View Full Code Here

Examples of org.openrdf.query.parser.sparql.ast.VisitorException

      try {
        datatype = valueFactory.createURI(datatypeNode.getValue());
      }
      catch (IllegalArgumentException e) {
        // invalid URI
        throw new VisitorException(e.getMessage());
      }
      literal = valueFactory.createLiteral(label, datatype);
    }
    else if (lang != null) {
      literal = valueFactory.createLiteral(label, lang);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.