public Inheritance addInherits(Collection<ComponentSpecification> inheritedChains) { Set<ComponentSpecification> newChainSpecifications = new LinkedHashSet<>(chainSpecifications); newChainSpecifications.addAll(inheritedChains); return new Inheritance(newChainSpecifications, excludedComponents); } }
private static ChainSpecification.Inheritance inherits(ComponentId chainId) { Set<ComponentSpecification> inheritsSet = new LinkedHashSet<>(); inheritsSet.add(chainId.toSpecification()); return new ChainSpecification.Inheritance(inheritsSet, null); }
Inheritance flattened() { return new Inheritance(Collections.<ComponentSpecification>emptySet(), excludedComponents); }
public IndexingDocprocChain() { super(new ChainSpecification(new ComponentId(NAME), new ChainSpecification.Inheritance(Collections.<ComponentSpecification>emptySet(), Collections.<ComponentSpecification>emptySet()), phases, Collections.<ComponentSpecification>emptySet()), new HashMap<>()); addInnerComponent(new IndexingProcessor()); }
private static ChainSpecification.Inheritance createInheritance(List<String> inherit, List<String> exclude) { return new ChainSpecification.Inheritance( createComponentSpecifications(inherit), createComponentSpecifications(exclude)); } }
public static ChainSpecification emptyChainSpec(ComponentId chainId) { return new ChainSpecification(chainId, new ChainSpecification.Inheritance(null, null), Collections.<Phase>emptySet(), Collections.<ComponentSpecification>emptySet()); }
public InheritanceBuilder(Element spec) { inheritance = new ChainSpecification.Inheritance( // XXX: for this to work, the tagname in the spec must match the tagname inside the 'inherits' elem, e.g. 'searchchain->inherits->searchchain' read(spec, "inherits", spec.getTagName()), read(spec, "excludes", "exclude")); }
private static ChainSpecification vespaPhasesSpecification() { return new ChainSpecification( new ComponentId("vespaPhases"), new ChainSpecification.Inheritance(null, null), PhasesCreator.linearPhases( PhaseNames.RAW_QUERY, PhaseNames.TRANSFORMED_QUERY, PhaseNames.BLENDED_RESULT, PhaseNames.UNBLENDED_RESULT, PhaseNames.BACKEND), noSearcherReferences()); }