Package com.findwise.hydra.stage

Examples of com.findwise.hydra.stage.RequiredArgumentMissingException


    }

    @Override
    public void init() throws RequiredArgumentMissingException {
        if (urlFieldPattern == null) {
            throw new RequiredArgumentMissingException(
                    "Missing parameter urlFieldPattern");
        }
        logger.debug("Initiated SimpleTikaStage");
    }
View Full Code Here


    }

    @Override
    public void init() throws RequiredArgumentMissingException {
        if (metadataPrefix == null) {
            throw new RequiredArgumentMissingException("Missing required configuration: metadataPrefix");
        }
        if (contentField == null) {
            throw new RequiredArgumentMissingException("Missing required configuration: contentField");
        }
        if (urlField == null) {
            throw new RequiredArgumentMissingException("Missing required configuration: urlField");
        }
        if (fileSizeField == null && maxSizeInBytes > 0) {
            throw new RequiredArgumentMissingException(
                    "Missing required configuration: fileSizeField - FileSizeField must be set when maxSizeInBytes is set");
        }
        if (allowedFileFormats != null && fileFormatField == null) {
            throw new RequiredArgumentMissingException(
                    "Missing required configuration: fileFormatField - fileFormatField must be set when allowedFileFormats is set");
        }

        setLowerCaseAllowedFileFormats();
    }
View Full Code Here

    }
  }
 
  private void delete(LocalDocument doc) throws SolrServerException, IOException, RequiredArgumentMissingException {
    if(!doc.hasContentField(idField)) {
      throw new RequiredArgumentMissingException("Document has no ID field");
    }
    if (getCommitWithin() != 0) {
      solr.deleteById(doc.getContentField(idField).toString(), getCommitWithin());
    } else {
      solr.deleteById(doc.getContentField(idField).toString());
View Full Code Here

  @Override
  public void init() throws RequiredArgumentMissingException {
   
    if (this.htmlField == null || htmlField.length() == 0)
      throw new RequiredArgumentMissingException("htmlField missing");

    if (jSoupConfigs == null || jSoupConfigs.size() == 0)
      throw new RequiredArgumentMissingException("jSoupConfigs missing");
   
  }
View Full Code Here

  private List<String> fields;

  @Override
  public void init() throws RequiredArgumentMissingException {
    if (fields == null || fields.isEmpty()) {
      throw new RequiredArgumentMissingException("fields is missing. Need to know what fields to render");
    }
  }
View Full Code Here

    }
  }
 
  private void delete(LocalDocument doc) throws SolrServerException, IOException, RequiredArgumentMissingException {
    if(!doc.hasContentField(idField)) {
      throw new RequiredArgumentMissingException("Document has no ID field");
    }
    if (getCommitWithin() != 0) {
      solr.deleteById(doc.getContentField(idField).toString(), getCommitWithin());
    } else {
      solr.deleteById(doc.getContentField(idField).toString());
View Full Code Here

TOP

Related Classes of com.findwise.hydra.stage.RequiredArgumentMissingException

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.