Source:
<code>@Override public List<InputSplit> getSplits(JobContext context) throws IOException { List<InputSplit> listOfInputSplit = new ArrayList<>(); try { final Configuration configuration = context.getConfiguration(); <START> Class<?> defaultDeletionMultiInputStrategyClazz = DefaultPhoenixMultiViewListProvider.class; <END> if (configuration.get(PhoenixConfigurationUtil.MAPREDUCE_MULTI_INPUT_STRATEGY_CLAZZ) != null) { defaultDeletionMultiInputStrategyClazz = Class.forName( configuration.get(PhoenixConfigurationUtil.MAPREDUCE_MULTI_INPUT_STRATEGY_CLAZZ)); } PhoenixMultiViewListProvider phoenixMultiViewListProvider = (PhoenixMultiViewListProvider) defaultDeletionMultiInputStrategyClazz.newInstance(); List<ViewInfoWritable> views = phoenixMultiViewListProvider.getPhoenixMultiViewList(configuration); Class<?> defaultDeletionMultiInputSplitStrategyClazz = DefaultMultiViewSplitStrategy.class; if (configuration.get(PhoenixConfigurationUtil.MAPREDUCE_MULTI_INPUT_SPLIT_STRATEGY_CLAZZ) != null) { defaultDeletionMultiInputSplitStrategyClazz = Class.forName( configuration.get(PhoenixConfigurationUtil.MAPREDUCE_MULTI_INPUT_SPLIT_STRATEGY_CLAZZ)); } MultiViewSplitStrategy multiViewSplitStrategy = (MultiViewSplitStrategy) defaultDeletionMultiInputSplitStrategyClazz.newInstance(); listOfInputSplit = multiViewSplitStrategy.generateSplits(views, configuration); } catch (ClassNotFoundException e) { LOGGER.debug("PhoenixMultiViewInputFormat is getting ClassNotFoundException : " + e.getMessage()); throw new IOException( "PhoenixMultiViewInputFormat is getting ClassNotFoundException : " + e.getMessage(), e.getCause()); } catch (InstantiationException e) { LOGGER.debug("PhoenixMultiViewInputFormat is getting InstantiationException : " + e.getMessage()); throw new IOException( "PhoenixMultiViewInputFormat is getting InstantiationException : " + e.getMessage(), e.getCause()); } catch (IllegalAccessException e) { LOGGER.debug("PhoenixMultiViewInputFormat is getting IllegalAccessException : " + e.getMessage()); throw new IOException( "PhoenixMultiViewInputFormat is getting IllegalAccessException : " + e.getMessage(), e.getCause()); } return listOfInputSplit; }</code><technical_language>nit: remove "deletion" variable naming, is specific phoenix-ttl</technical_language>

Target:
@Override public List<InputSplit> getSplits(JobContext context) throws IOException { List<InputSplit> listOfInputSplit; try { final Configuration configuration = context.getConfiguration(); Class<?> defaultMultiInputStrategyClazz = DefaultPhoenixMultiViewListProvider.class; if (configuration.get( PhoenixConfigurationUtil.MAPREDUCE_MULTI_INPUT_STRATEGY_CLAZZ) != null) { defaultMultiInputStrategyClazz = Class.forName(configuration.get( PhoenixConfigurationUtil.MAPREDUCE_MULTI_INPUT_STRATEGY_CLAZZ)); } PhoenixMultiViewListProvider phoenixMultiViewListProvider = (PhoenixMultiViewListProvider) defaultMultiInputStrategyClazz.newInstance(); List<ViewInfoWritable> views = phoenixMultiViewListProvider.getPhoenixMultiViewList(configuration); Class<?> defaultDeletionMultiInputSplitStrategyClazz = DefaultMultiViewSplitStrategy.class; if (configuration.get( PhoenixConfigurationUtil.MAPREDUCE_MULTI_INPUT_SPLIT_STRATEGY_CLAZZ) != null) { defaultDeletionMultiInputSplitStrategyClazz = Class.forName(configuration.get( PhoenixConfigurationUtil.MAPREDUCE_MULTI_INPUT_SPLIT_STRATEGY_CLAZZ)); } MultiViewSplitStrategy multiViewSplitStrategy = (MultiViewSplitStrategy) defaultDeletionMultiInputSplitStrategyClazz.newInstance(); listOfInputSplit = multiViewSplitStrategy.generateSplits(views, configuration); } catch (ClassNotFoundException e) { LOGGER.debug("PhoenixMultiViewInputFormat is getting ClassNotFoundException : " + e.getMessage()); throw new IOException( "PhoenixMultiViewInputFormat is getting ClassNotFoundException : " + e.getMessage(), e.getCause()); } catch (InstantiationException e) { LOGGER.debug("PhoenixMultiViewInputFormat is getting InstantiationException : " + e.getMessage()); throw new IOException( "PhoenixMultiViewInputFormat is getting InstantiationException : " + e.getMessage(), e.getCause()); } catch (IllegalAccessException e) { LOGGER.debug("PhoenixMultiViewInputFormat is getting IllegalAccessException : " + e.getMessage()); throw new IOException( "PhoenixMultiViewInputFormat is getting IllegalAccessException : " + e.getMessage(), e.getCause()); } return listOfInputSplit == null ? new ArrayList<InputSplit>() : listOfInputSplit; }