private void initializeGroupInputs() {
if (groupInputSpecs != null && !groupInputSpecs.isEmpty()) {
groupInputsMap = new ConcurrentHashMap<String, MergedLogicalInput>(groupInputSpecs.size());
for (GroupInputSpec groupInputSpec : groupInputSpecs) {
LOG.info("Initializing GroupInput using GroupInputSpec: " + groupInputSpec);
MergedLogicalInput groupInput = (MergedLogicalInput) createInputFromDescriptor(
groupInputSpec.getMergedInputDescriptor());
List<Input> inputs = Lists.newArrayListWithCapacity(groupInputSpec.getGroupVertices().size());
for (String groupVertex : groupInputSpec.getGroupVertices()) {
inputs.add(inputsMap.get(groupVertex));
}
groupInput.initialize(inputs);
groupInputsMap.put(groupInputSpec.getGroupName(), groupInput);
}
}
}