Package org.kitesdk.morphline.api

Examples of org.kitesdk.morphline.api.MorphlineRuntimeException


    @Override
    protected boolean doProcess(Record inputRecord, InputStream stream) throws IOException {
      try {
        return doProcess2(inputRecord, stream);
      } catch (SAXNotRecognizedException e) {
        throw new MorphlineRuntimeException(e);
      } catch (SAXNotSupportedException e) {
        throw new MorphlineRuntimeException(e);
      } catch (SAXException e) {
        throw new MorphlineRuntimeException(e);
      }
    }
View Full Code Here


      }
      case NULL: {
        break;
      }
      default:
        throw new MorphlineRuntimeException("Unknown Avro schema type: " + schema.getType());
      }
    }
View Full Code Here

      }
      case NULL: {
        break;
      }
      default:
        throw new MorphlineRuntimeException("Unknown Avro schema type: " + schema.getType());
      }
    }
View Full Code Here

      }
      boolean isLeaf = (level + 1 == steps.size());
      String step = steps.get(level);
      if (ARRAY_TOKEN == step) {
        if (!List.class.isAssignableFrom(datum.getClass())) {
          throw new MorphlineRuntimeException("Datum " + datum + " is not a list. Steps: " + steps + " Level: " + level);
        }
        if (isLeaf) {
          resolve(datum, record, fieldName);
        } else {
          Iterator<?> iter = ((List<?>) datum).iterator();
View Full Code Here

        } catch (NoSuchMethodException e) {
          getterName.append(LIST);
          try {
            getters.put(propertyName, clazz.getMethod(getterName.toString()));
          } catch (Exception e1) {
            throw new MorphlineRuntimeException("Property '" + propertyName + "' does not exist in class '"
                + clazz.getName() + "'.");
          }
        }
      }
    }
View Full Code Here

      }
      case NULL: {
        break;
      }
      default:
        throw new MorphlineRuntimeException("Unknown Avro schema type: " + schema.getType());
      }
    }
View Full Code Here

        CloudSolrServer cloudSolrServer = new CloudSolrServer(zkHost);
        cloudSolrServer.setDefaultCollection(collectionName);
        cloudSolrServer.connect();
        return cloudSolrServer;
      } catch (MalformedURLException e) {
        throw new MorphlineRuntimeException(e);
      }
    } else {
      if (solrUrl == null && solrHomeDir != null) {
        CoreContainer coreContainer = new CoreContainer(solrHomeDir);
        coreContainer.load();
View Full Code Here

       
        IndexSchema schema = IndexSchemaFactory.buildIndexSchema("schema.xml", solrConfig);
        validateSchema(schema);
        return schema;
      } catch (ParserConfigurationException e) {
        throw new MorphlineRuntimeException(e);
      } catch (IOException e) {
        throw new MorphlineRuntimeException(e);
      } catch (SAXException e) {
        throw new MorphlineRuntimeException(e);
      }
    } finally {
      if (downloadedSolrHomeDir != null) {
        try {
          FileUtils.deleteDirectory(downloadedSolrHomeDir);
View Full Code Here

          }
          if (dataFileWriter != null) {
            dataFileWriter.flush();
          }
        } catch (IOException e) {
          throw new MorphlineRuntimeException(e);
        }
      } finally {
        Closeables.closeQuietly(dataFileWriter);
      }
    }
View Full Code Here

          }
          datumWriter.write(datum, encoder);
        }
        encoder.flush();
      } catch (IOException e) {
        throw new MorphlineRuntimeException(e);
      }
    }
View Full Code Here

TOP

Related Classes of org.kitesdk.morphline.api.MorphlineRuntimeException

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.