Example usage for org.apache.hadoop.mapreduce.lib.db DBConfiguration setInputBoundingQuery

List of usage examples for org.apache.hadoop.mapreduce.lib.db DBConfiguration setInputBoundingQuery

Introduction

In this page you can find the example usage for org.apache.hadoop.mapreduce.lib.db DBConfiguration setInputBoundingQuery.

Prototype

public void setInputBoundingQuery(String query) 

Source Link

Usage

From source file:co.cask.hydrator.plugin.db.batch.source.DataDrivenETLDBInputFormat.java

License:Apache License

public static void setInput(Configuration conf, Class<? extends DBWritable> inputClass, String inputQuery,
        String inputBoundingQuery, boolean enableAutoCommit) {
    DBConfiguration dbConf = new DBConfiguration(conf);
    dbConf.setInputClass(inputClass);/* w  w  w .j av a2  s .com*/
    dbConf.setInputQuery(inputQuery);
    dbConf.setInputBoundingQuery(inputBoundingQuery);
    conf.setBoolean(AUTO_COMMIT_ENABLED, enableAutoCommit);
}