コード例 #1
0
 @Override
 protected void setup(Context context) throws IOException, InterruptedException {
   super.setup(context);
   final HadoopDruidIndexerConfig config =
       HadoopDruidIndexerConfig.fromConfiguration(context.getConfiguration());
   final SingleDimensionPartitionsSpec spec =
       (SingleDimensionPartitionsSpec) config.getPartitionsSpec();
   helper =
       new DeterminePartitionsDimSelectionMapperHelper(config, spec.getPartitionDimension());
 }
コード例 #2
0
 @Override
 protected void setup(Context context) throws IOException, InterruptedException {
   super.setup(context);
   rollupGranularity = getConfig().getGranularitySpec().getQueryGranularity();
 }