Package org.apache.sqoop.mapreduce.db.DataDrivenDBInputFormat

Examples of org.apache.sqoop.mapreduce.db.DataDrivenDBInputFormat.DataDrivenDBInputSplit


    List<InputSplit> splitList = new ArrayList<InputSplit>(numSplits);
    for (int i = 0; i < numSplits; ++i) {
      StringBuilder lowerBoundClause = new StringBuilder(128);
      lowerBoundClause.append(" datasliceid % ").append(numSplits)
          .append(" = ").append(i);
      splitList.add(new DataDrivenDBInputSplit(lowerBoundClause.toString(),
          "1 = 1"));
    }
    return splitList;
  }
View Full Code Here

TOP

Related Classes of org.apache.sqoop.mapreduce.db.DataDrivenDBInputFormat.DataDrivenDBInputSplit

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.