Package org.openrdf.sail.rdbms.schema

Examples of org.openrdf.sail.rdbms.schema.Batch


  public Batch poll() {
    synchronized (queue) {
      Iterator<Batch> iter = queue.iterator();
      if (iter.hasNext()) {
        Batch e = iter.next();
        iter.remove();
        size -= e.size();
        queue.notify();
        return e;
      }
      return null;
    }
View Full Code Here


  public int drainTo(Collection<? super Batch> c, int n) {
    synchronized (queue) {
      Iterator<Batch> iter = queue.iterator();
      int i;
      for (i = 0; i < n && iter.hasNext(); i++) {
        Batch next = iter.next();
        c.add(next);
        iter.remove();
        size -= next.size();
        queue.notify();
      }
      return i;
    }
  }
View Full Code Here

    synchronized (queue) {
      while (queue.isEmpty()) {
        queue.wait();
      }
      Iterator<Batch> iter = queue.iterator();
      Batch e = iter.next();
      iter.remove();
      size -= e.size();
      queue.notify();
      return e;
    }
  }
View Full Code Here

  public int drainTo(Collection<? super Batch> c, int n) {
    synchronized (queue) {
      Iterator<Batch> iter = queue.iterator();
      int i;
      for (i = 0; i < n && iter.hasNext(); i++) {
        Batch next = iter.next();
        c.add(next);
        iter.remove();
        size -= next.size();
        queue.notify();
      }
      return i;
    }
  }
View Full Code Here

    synchronized (queue) {
      while (queue.isEmpty()) {
        queue.wait();
      }
      Iterator<Batch> iter = queue.iterator();
      Batch e = iter.next();
      iter.remove();
      size -= e.size();
      queue.notify();
      return e;
    }
  }
View Full Code Here

  public Batch poll() {
    synchronized (queue) {
      Iterator<Batch> iter = queue.iterator();
      if (iter.hasNext()) {
        Batch e = iter.next();
        iter.remove();
        size -= e.size();
        queue.notify();
        return e;
      }
      return null;
    }
View Full Code Here

TOP

Related Classes of org.openrdf.sail.rdbms.schema.Batch

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.