List of usage examples for org.apache.hadoop.conf Configuration getLong
public long getLong(String name, long defaultValue)
name
property as a long
. From source file:tajo.conf.TajoConf.java
License:Apache License
public static long getLongVar(Configuration conf, ConfVars var) { assert (var.valClass == Long.class); return conf.getLong(var.varname, var.defaultLongVal); }
From source file:terasort.processors.ScanProcessor.java
License:Apache License
public ScanProcessor(ProcessorContext context) throws IOException { super(context); Configuration conf = TezUtils.createConfFromUserPayload(context.getUserPayload()); long sampleSize = conf.getLong(Constants.SAMPLE_SIZE, 100000); int samples = Math.min(conf.getInt(Constants.NUM_PARTITIONS, 2), context.getVertexParallelism()); recordsPerSample = sampleSize / samples; }
From source file:tv.icntv.grade.film.recommend.CorrelateInputMapper.java
License:Apache License
@Override protected void setup(Context context) throws IOException, InterruptedException { Configuration configuration = context.getConfiguration(); minSup = Float.parseFloat(configuration.get("correlate.result.minSup", "0.0002")); minConf = Float.parseFloat(configuration.get("correlate.result.conf", "0.03")); totalSize = configuration.getLong("icntv.correlate.total.size", 0L); System.out.println(totalSize + "\t" + minSup + "\t" + minConf); }
From source file:tv.icntv.recommend.algorithm.correlate.CorrelateInputMapper.java
License:Apache License
@Override protected void setup(Context context) throws IOException, InterruptedException { Configuration configuration = context.getConfiguration(); minSup = Float.parseFloat(configuration.get("icntv.algorithm.correlate.result.minSup", "0.0002")); minConf = Float.parseFloat(configuration.get("icntv.algorithm.correlate.result.conf", "0.03")); totalSize = configuration.getLong("icntv.correlate.total.size", 0L); }