Package org.apache.lucene.search

Examples of org.apache.lucene.search.CollectionTerminatedException


  @Override
  public void collect(int doc) throws IOException {
    in.collect(doc);
    if (++numCollected >= segmentTotalCollect) {
      throw new CollectionTerminatedException();
    }
  }
View Full Code Here


  @Override
  public void collect(int doc) throws IOException {
    in.collect(doc);
    if (++numCollected >= segmentTotalCollect) {
      throw new CollectionTerminatedException();
    }
  }
View Full Code Here

                        int i = 0;
                        for (Input<?> input : inputs) {
                            newRow[i++] = input.value();
                        }
                        if (!downstream.setNextRow(newRow)) {
                            throw new CollectionTerminatedException();
                        }
                    }
                } finally {
                    reader.close();
                }
View Full Code Here

                for (Input<?> input : inputs) {
                    newRow[i++] = input.value();
                }
                if (!downstream.setNextRow(newRow)) {
                    // no more rows required, we can stop here
                    throw new CollectionTerminatedException();
                }
            }

            downstream.upstreamFinished();
        }
View Full Code Here

                    newRow[i++] = input.value();
                }
                if (!downstream.setNextRow(newRow)) {
                    // no more rows required, we can stop here
                    downstream.upstreamFinished();
                    throw new CollectionTerminatedException();
                }
            }
            downstream.upstreamFinished();
        }
View Full Code Here

                    newRow[i++] = input.value();
                }
                if (!downstream.setNextRow(newRow)) {
                    // no more rows required, we can stop here
                    downstream.upstreamFinished();
                    throw new CollectionTerminatedException();
                }
            }
            downstream.upstreamFinished();
        }
View Full Code Here

        }

        @Override
        protected boolean match(int doc) {
            if (parentWeight.remaining == 0) {
                throw new CollectionTerminatedException();
            }

            final long parentOrd = ordinals.getOrd(doc);
            if (parentOrd >= 0) {
                final long parentIdx = parentIds.find(parentOrd);
View Full Code Here

        }

        @Override
        protected boolean match(int doc) {
            if (parentWeight.remaining == 0) {
                throw new CollectionTerminatedException();
            }

            long parentOrd = ordinals.getOrd(doc);
            if (parentOrd >= 0) {
                boolean match = parentOrds.get(parentOrd);
View Full Code Here

TOP

Related Classes of org.apache.lucene.search.CollectionTerminatedException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.