Skip to content

Commit

Permalink
keep and deprecate old config loading method
Browse files Browse the repository at this point in the history
  • Loading branch information
mxm committed Jul 27, 2016
1 parent e9c70f1 commit 7d99b2e
Showing 1 changed file with 7 additions and 0 deletions.
Expand Up @@ -84,6 +84,13 @@ public abstract class DelimitedInputFormat<OT> extends FileInputFormat<OT> imple
*/
private static int MAX_SAMPLE_LEN;

/**
* @Deprecated Please use {@code loadConfigParameters(Configuration config}
*/
@Deprecated
protected static void loadGlobalConfigParams() {
loadConfigParameters(GlobalConfiguration.loadConfiguration());
}

protected static void loadConfigParameters(Configuration parameters) {
int maxSamples = parameters.getInteger(ConfigConstants.DELIMITED_FORMAT_MAX_LINE_SAMPLES_KEY,
Expand Down

0 comments on commit 7d99b2e

Please sign in to comment.