@Override public Iterator<ArrayList<T>> iterator() { return split((Iterable<? extends T>) elements, batchSize) .iterator(); }
@Override public Iterator<ArrayList<T>> iterator() { return split((Iterable<? extends T>) elements, batchSize) .iterator(); }
@Override public Iterator<ArrayList<T>> iterator() { return split((Iterable<? extends T>) elements, batchSize) .iterator(); }
@Override public boolean preExecute() { if (!super.preExecute()) return false; DifferentialIndex diffIndex = reasoner.ontologyIndex; LinkedContextInitRule changedInitRules = null; Map<? extends IndexedClassExpression, ? extends LinkedSubsumerRule> changedRulesByCE = null; Map<? extends IndexedClass, ? extends IndexedClassExpression> changedDefinitions = null; Map<? extends IndexedClass, ? extends ElkAxiom> changedDefinitionReasons = null; Collection<ArrayList<Context>> inputs = Collections.emptyList(); changedInitRules = diffIndex.getRemovedContextInitRules(); changedRulesByCE = diffIndex.getRemovedContextRulesByClassExpressions(); changedDefinitions = diffIndex.getRemovedDefinitions(); changedDefinitionReasons = diffIndex.getRemovedDefinitionReasons(); if (changedInitRules != null || !changedRulesByCE.isEmpty() || !changedDefinitions.isEmpty()) { inputs = Operations.split(reasoner.saturationState.getContexts(), 8 * workerNo); } // System.err.println(changedRulesByCE.keySet().size()); this.initialization = new IncrementalChangesInitialization(inputs, reasoner.getInterrupter(), changedInitRules, changedRulesByCE, changedDefinitions, changedDefinitionReasons, reasoner.saturationState, reasoner.getProcessExecutor(), stageStatistics, workerNo, reasoner.getProgressMonitor()); return true; }
@Override public boolean preExecute() { if (!super.preExecute()) return false; DifferentialIndex diffIndex = reasoner.ontologyIndex; LinkedContextInitRule changedInitRules = null; Map<? extends IndexedClassExpression, ? extends LinkedSubsumerRule> changedRulesByCE = null; Map<? extends IndexedClass, ? extends IndexedClassExpression> changedDefinitions = null; Map<? extends IndexedClass, ? extends ElkAxiom> changedDefinitionReasons = null; Collection<ArrayList<Context>> inputs = Collections.emptyList(); changedInitRules = diffIndex.getRemovedContextInitRules(); changedRulesByCE = diffIndex.getRemovedContextRulesByClassExpressions(); changedDefinitions = diffIndex.getRemovedDefinitions(); changedDefinitionReasons = diffIndex.getRemovedDefinitionReasons(); if (changedInitRules != null || !changedRulesByCE.isEmpty() || !changedDefinitions.isEmpty()) { inputs = Operations.split(reasoner.saturationState.getContexts(), 8 * workerNo); } // System.err.println(changedRulesByCE.keySet().size()); this.initialization = new IncrementalChangesInitialization(inputs, reasoner.getInterrupter(), changedInitRules, changedRulesByCE, changedDefinitions, changedDefinitionReasons, reasoner.saturationState, reasoner.getProcessExecutor(), stageStatistics, workerNo, reasoner.getProgressMonitor()); return true; }
@Override public boolean preExecute() { if (!super.preExecute()) return false; DifferentialIndex diffIndex = reasoner.ontologyIndex; LinkedContextInitRule changedInitRules = null; Map<? extends IndexedClassExpression, ? extends LinkedSubsumerRule> changedRulesByCE = null; Map<? extends IndexedClass, ? extends IndexedClassExpression> changedDefinitions = null; Map<? extends IndexedClass, ? extends ElkAxiom> changedDefinitionReasons = null; Collection<ArrayList<Context>> inputs = Collections.emptyList(); changedInitRules = diffIndex.getRemovedContextInitRules(); changedRulesByCE = diffIndex.getRemovedContextRulesByClassExpressions(); changedDefinitions = diffIndex.getRemovedDefinitions(); changedDefinitionReasons = diffIndex.getRemovedDefinitionReasons(); if (changedInitRules != null || !changedRulesByCE.isEmpty() || !changedDefinitions.isEmpty()) { inputs = Operations.split(reasoner.saturationState.getContexts(), 8 * workerNo); } // System.err.println(changedRulesByCE.keySet().size()); this.initialization = new IncrementalChangesInitialization(inputs, reasoner.getInterrupter(), changedInitRules, changedRulesByCE, changedDefinitions, changedDefinitionReasons, reasoner.saturationState, reasoner.getProcessExecutor(), stageStatistics, workerNo, reasoner.getProgressMonitor()); return true; }
@Override public boolean preExecute() { if (!super.preExecute()) return false; final Collection<IndexedClass> toAdd = reasoner.classTaxonomyState .getToAdd(); this.computation_ = new ClassTaxonomyComputation( Operations.split(toAdd, 64), reasoner.getInterrupter(), reasoner.getProcessExecutor(), workerNo, reasoner.getProgressMonitor(), reasoner.saturationState, reasoner.classTaxonomyState.getTaxonomy()); return true; }
@Override public boolean preExecute() { if (!super.preExecute()) return false; final Collection<IndexedClass> toAdd = reasoner.classTaxonomyState .getToAdd(); this.computation_ = new ClassTaxonomyComputation( Operations.split(toAdd, 64), reasoner.getInterrupter(), reasoner.getProcessExecutor(), workerNo, reasoner.getProgressMonitor(), reasoner.saturationState, reasoner.classTaxonomyState.getTaxonomy()); return true; }
@Override public boolean preExecute() { if (!super.preExecute()) return false; final Collection<IndexedClass> toAdd = reasoner.classTaxonomyState .getToAdd(); this.computation_ = new ClassTaxonomyComputation( Operations.split(toAdd, 64), reasoner.getInterrupter(), reasoner.getProcessExecutor(), workerNo, reasoner.getProgressMonitor(), reasoner.saturationState, reasoner.classTaxonomyState.getTaxonomy()); return true; }
inputs = Operations.split(reasoner.saturationState.getContexts(), 8 * workerNo);
inputs = Operations.split(reasoner.saturationState.getContexts(), 8 * workerNo);
inputs = Operations.split(reasoner.saturationState.getContexts(), 8 * workerNo);