(Context context)
| 88 | } |
| 89 | |
| 90 | @Override |
| 91 | protected void setup(Context context) throws IOException, |
| 92 | InterruptedException { |
| 93 | Configuration conf = context.getConfiguration(); |
| 94 | long totalLimit = conf |
| 95 | .getLong(GeneratorJob.GENERATOR_TOP_N, Long.MAX_VALUE); |
| 96 | if (totalLimit == Long.MAX_VALUE) { |
| 97 | limit = Long.MAX_VALUE; |
| 98 | } else { |
| 99 | limit = totalLimit / context.getNumReduceTasks(); |
| 100 | } |
| 101 | maxCount = conf.getLong(GeneratorJob.GENERATOR_MAX_COUNT, -2); |
| 102 | batchId = new Utf8(conf.get(GeneratorJob.BATCH_ID)); |
| 103 | String countMode = conf.get(GeneratorJob.GENERATOR_COUNT_MODE, |
| 104 | GeneratorJob.GENERATOR_COUNT_VALUE_HOST); |
| 105 | if (countMode.equals(GeneratorJob.GENERATOR_COUNT_VALUE_DOMAIN)) { |
| 106 | byDomain = true; |
| 107 | } |
| 108 | |
| 109 | } |
| 110 | |
| 111 | } |
nothing calls this directly
no test coverage detected