@Override public LeafCollector getLeafCollector(LeafReaderContext context) throws IOException { if (cancelled.getAsBoolean()) { throw new TaskCancelledException("cancelled"); } return super.getLeafCollector(context); } }
for (int index = 0; index < context.docIdsToLoadSize(); index++) { if (context.isCancelled()) { throw new TaskCancelledException("cancelled"); throw new TaskCancelledException("cancelled"); fetchSubPhase.hitsExecute(context, hits); if (context.isCancelled()) { throw new TaskCancelledException("cancelled");
@Override public LeafCollector getLeafCollector(LeafReaderContext context) throws IOException { if (cancelled.getAsBoolean()) { throw new TaskCancelledException("cancelled"); } return super.getLeafCollector(context); } }
@Override public LeafCollector getLeafCollector(LeafReaderContext context) throws IOException { if (cancelled.getAsBoolean()) { throw new TaskCancelledException("cancelled"); } return super.getLeafCollector(context); } }
for (int i = 0; i < terms.length; i++) { if(context.isCancelled()) { throw new TaskCancelledException("cancelled"); fieldStatistics.put(term.field(), collectionStatistics); if(context.isCancelled()) { throw new TaskCancelledException("cancelled");
if (searchContext.lowLevelCancellation()) { SearchTask task = searchContext.getTask(); cancellationRunnable = () -> { if (task.isCancelled()) throw new TaskCancelledException("cancelled"); }; } else { cancellationRunnable = null;
@Override public void collect(int doc) throws IOException { if (cancelled.get()) { throw new TaskCancelledException("cancelled"); } super.collect(doc); } }
@Override public LeafCollector getLeafCollector(LeafReaderContext context) throws IOException { if (cancelled.get()) { throw new TaskCancelledException("cancelled"); } if (leafLevel) { return new CancellableLeafCollector(super.getLeafCollector(context)); } else { return super.getLeafCollector(context); } }
for (int index = 0; index < context.docIdsToLoadSize(); index++) { if (context.isCancelled()) { throw new TaskCancelledException("cancelled"); throw new TaskCancelledException("cancelled"); fetchSubPhase.hitsExecute(context, hits); if (context.isCancelled()) { throw new TaskCancelledException("cancelled");
for (int index = 0; index < context.docIdsToLoadSize(); index++) { if (context.isCancelled()) { throw new TaskCancelledException("cancelled"); throw new TaskCancelledException("cancelled"); fetchSubPhase.hitsExecute(context, hits); if (context.isCancelled()) { throw new TaskCancelledException("cancelled");
for (int index = 0; index < context.docIdsToLoadSize(); index++) { if(context.isCancelled()) { throw new TaskCancelledException("cancelled");
for (int i = 0; i < terms.length; i++) { if(context.isCancelled()) { throw new TaskCancelledException("cancelled"); fieldStatistics.put(term.field(), collectionStatistics); if(context.isCancelled()) { throw new TaskCancelledException("cancelled");
for (int i = 0; i < terms.length; i++) { if(context.isCancelled()) { throw new TaskCancelledException("cancelled"); fieldStatistics.put(term.field(), collectionStatistics); if(context.isCancelled()) { throw new TaskCancelledException("cancelled");
if (searchContext.lowLevelCancellation()) { SearchTask task = searchContext.getTask(); cancellationRunnable = () -> { if (task.isCancelled()) throw new TaskCancelledException("cancelled"); }; } else { cancellationRunnable = null;
if (searchContext.lowLevelCancellation()) { SearchTask task = searchContext.getTask(); cancellationRunnable = () -> { if (task.isCancelled()) throw new TaskCancelledException("cancelled"); }; } else { cancellationRunnable = null;
for (int i = 0; i < terms.length; i++) { if(context.isCancelled()) { throw new TaskCancelledException("cancelled"); fieldStatistics.put(term.field(), collectionStatistics); if(context.isCancelled()) { throw new TaskCancelledException("cancelled");