Package org.apache.lucene.benchmark.byTask.feeds

Examples of org.apache.lucene.benchmark.byTask.feeds.NoMoreDataException


    @Override
    public synchronized DocData getNextDocData(DocData docData)
        throws NoMoreDataException, IOException {
      if (nDocs >= 20 && !forever) {
        throw new NoMoreDataException();
      }
      nDocs++;
      return super.getNextDocData(docData);
    }
View Full Code Here


    private int nDocs = 0;

    public synchronized DocData getNextDocData(DocData docData)
        throws NoMoreDataException, IOException {
      if (nDocs >= 20 && !forever) {
        throw new NoMoreDataException();
      }
      nDocs++;
      return super.getNextDocData(docData);
    }
View Full Code Here

    private int nDocs = 0;

    public synchronized DocData getNextDocData(DocData docData)
        throws NoMoreDataException, IOException {
      if (nDocs >= 20 && !forever) {
        throw new NoMoreDataException();
      }
      nDocs++;
      return super.getNextDocData(docData);
    }
View Full Code Here

    @Override
    public synchronized DocData getNextDocData(DocData docData)
        throws NoMoreDataException, IOException {
      if (nDocs >= 20 && !forever) {
        throw new NoMoreDataException();
      }
      nDocs++;
      return super.getNextDocData(docData);
    }
View Full Code Here

  /** use reuters and the exhaust mechanism, but to be faster, add 20 docs only... */
  public static class Reuters20DocMaker extends ReutersDocMaker {
    private int nDocs=0;
    protected synchronized DocData getNextDocData() throws Exception {
      if (nDocs>=20 && !forever) {
        throw new NoMoreDataException();
      }
      nDocs++;
      return super.getNextDocData();
    }
View Full Code Here

  /** use reuters and the exhaust mechanism, but to be faster, add 20 docs only... */
  public static class Reuters20DocMaker extends ReutersDocMaker {
    private int nDocs=0;
    protected synchronized DocData getNextDocData() throws Exception {
      if (nDocs>=20 && !forever) {
        throw new NoMoreDataException();
      }
      nDocs++;
      return super.getNextDocData();
    }
View Full Code Here

    private int nDocs = 0;

    public synchronized DocData getNextDocData(DocData docData)
        throws NoMoreDataException, IOException {
      if (nDocs >= 20 && !forever) {
        throw new NoMoreDataException();
      }
      nDocs++;
      return super.getNextDocData(docData);
    }
View Full Code Here

TOP

Related Classes of org.apache.lucene.benchmark.byTask.feeds.NoMoreDataException

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.