Package org.apache.pig.impl.logicalLayer

Examples of org.apache.pig.impl.logicalLayer.FrontendException


    throw new FrontendException("SequenceFileLoader does not expect to cast data.");
  }

  @Override
  public String bytesToCharArray(byte[] b) throws IOException {
    throw new FrontendException("SequenceFileLoader does not expect to cast data.");
  }
View Full Code Here


    throw new FrontendException("SequenceFileLoader does not expect to cast data.");
  }

  @Override
  public Double bytesToDouble(byte[] b) throws IOException {
    throw new FrontendException("SequenceFileLoader does not expect to cast data.");
  }
View Full Code Here

    throw new FrontendException("SequenceFileLoader does not expect to cast data.");
  }

  @Override
  public Float bytesToFloat(byte[] b) throws IOException {
    throw new FrontendException("SequenceFileLoader does not expect to cast data.");
  }
View Full Code Here

    throw new FrontendException("SequenceFileLoader does not expect to cast data.");
  }

  @Override
  public Integer bytesToInteger(byte[] b) throws IOException {
    throw new FrontendException("SequenceFileLoader does not expect to cast data.");
  }
View Full Code Here

    throw new FrontendException("SequenceFileLoader does not expect to cast data.");
  }

  @Override
  public Long bytesToLong(byte[] b) throws IOException {
    throw new FrontendException("SequenceFileLoader does not expect to cast data.");
  }
View Full Code Here

    throw new FrontendException("SequenceFileLoader does not expect to cast data.");
  }

  @Override
  public Map<String, Object> bytesToMap(byte[] b) throws IOException {
    throw new FrontendException("SequenceFileLoader does not expect to cast data.");
  }
View Full Code Here

    throw new FrontendException("SequenceFileLoader does not expect to cast data.");
  }

  @Override
  public Tuple bytesToTuple(byte[] b) throws IOException {
    throw new FrontendException("SequenceFileLoader does not expect to cast data.");
  }
View Full Code Here

            if (alias != null) {
                LogicalOperator op = aliasOp.get(alias);
                if(op == null) {
                    int errCode = 1003;
                    String msg = "Unable to find an operator for alias " + alias;
                    throw new FrontendException(msg, errCode, PigException.INPUT);
                }
                plan = aliases.get(op);
            }
            return plan;
        }
View Full Code Here

                            execute();
                        } catch (Exception e) {
                            int errCode = 1002;
                            String msg = "Unable to store alias "
                                    + op.getOperatorKey().getId();
                            throw new FrontendException(msg, errCode,
                                    PigException.INPUT, e);
                        }
                    } else {
                        if (0 == ignoreNumStores) {
                            storeOpTable.put((LOStore)op, tmpLp);
View Full Code Here

   
        LogicalPlan parseQuery(String query, int startLine) throws IOException {       
            if (query == null || query.length() == 0) {
                int errCode = 1084;
                String msg = "Invalid Query: Query is null or of size 0";
                throw new FrontendException(msg, errCode, PigException.INPUT);
            }

            query = query.trim();
       
            try {
                return new LogicalPlanBuilder(PigServer.this.pigContext).parse(scope, query,
                                              aliases, opTable, aliasOp, startLine, fileNameMap);
            } catch (ParseException e) {
                PigException pe = LogUtils.getPigException(e);
                int errCode = 1000;
                String msg = "Error during parsing. " + (pe == null? e.getMessage() : pe.getMessage());
                throw new FrontendException(msg, errCode, PigException.INPUT, false, null, e);
            }
        }
View Full Code Here

TOP

Related Classes of org.apache.pig.impl.logicalLayer.FrontendException

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.