Package co.nubetech.hiho.common

Examples of co.nubetech.hiho.common.OutputStrategyEnum


    builder.append("CREATE TABLE `" + getTableName(conf) + "tmp` ( ");

    builder.append(getColumns(writable));

    builder.append(") ROW FORMAT ");
    OutputStrategyEnum outputStrategy = OutputStrategyEnum.valueOf(conf
        .get(HIHOConf.INPUT_OUTPUT_STRATEGY));
    if (outputStrategy == OutputStrategyEnum.DELIMITED) {
      builder.append("DELIMITED FIELDS TERMINATED BY '");
      builder.append(conf.get(HIHOConf.INPUT_OUTPUT_DELIMITER));
      builder.append("' STORED AS TEXTFILE");
View Full Code Here


  }

  // //
  public static StringBuilder appendDelimitedDataToCreateQuery(
      Configuration conf, StringBuilder builder) {
    OutputStrategyEnum outputStrategy = OutputStrategyEnum.valueOf(conf
        .get(HIHOConf.INPUT_OUTPUT_STRATEGY));
    if (outputStrategy == OutputStrategyEnum.DELIMITED) {
      builder.append("DELIMITED FIELDS TERMINATED BY '");
      builder.append(conf.get(HIHOConf.INPUT_OUTPUT_DELIMITER));
      builder.append("' STORED AS TEXTFILE");
View Full Code Here

    job.setJobName("Import job");
    job.setJarByClass(DBQueryInputJob.class);

    String strategy = conf.get(HIHOConf.INPUT_OUTPUT_STRATEGY);
    OutputStrategyEnum os = OutputStrategyEnum.value(strategy);
    if (os == null) {
      throw new IllegalArgumentException(
          "Wrong value of output strategy. Please correct");
    }
    if (os != OutputStrategyEnum.AVRO) {
View Full Code Here

TOP

Related Classes of co.nubetech.hiho.common.OutputStrategyEnum

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.