|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hp.hpl.jena.graph.query.BufferPipe
public class BufferPipe
This class is a pipe between query threads, implemented as a bounded buffer.
| Nested Class Summary | |
|---|---|
static class |
BufferPipe.BoundedBufferPutException
Exception to throw if a put throws an exception. |
static class |
BufferPipe.BoundedBufferTakeException
Exception to throw if a take throws an exception. |
static class |
BufferPipe.Finished
|
| Constructor Summary | |
|---|---|
BufferPipe()
|
|
| Method Summary | |
|---|---|
void |
close()
Close the pipe. |
void |
close(Exception e)
Close the pipe (see close()) and record e as its termination
status. |
Domain |
get()
Answer the next element if there is one, otherwise throw a NoSuchElementException. |
boolean |
hasNext()
Answer true iff there are more elements for get() to get. |
void |
put(Domain d)
Put a domain element into the pipe for later extraction. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BufferPipe()
| Method Detail |
|---|
public void put(Domain d)
Pipe
put in interface Pipepublic void close()
Pipefalse, and
get will throw an exception.
close in interface Pipepublic void close(Exception e)
Pipee as its termination
status. Any get from the pipe must then fail, throwing an
exception.
close in interface Pipee - the exception that caused the pipe to be closedpublic boolean hasNext()
Pipeget() to get. If
the pipe was closed with an exception, throw that exception.
hasNext in interface Pipepublic Domain get()
Pipe
get in interface Pipe
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||