Package org.aksw.jenax.sparql.query.rx
Class FlowState<T>
java.lang.Object
org.aksw.jenax.sparql.query.rx.FlowState<T>
- Type Parameters:
I- InputStream typeT- Item type of the resulting flow, typically Triples or Quads
Helper class used in
RDFDataMgrEx to track resources involved in RDF parsing- Author:
- raven
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected InputStreamprotected Threadprotected Throwable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidhandleProducerException(Thread thread, Throwable e) static voidinterruptUntilDead(Thread thread) static booleanvoidsetIn(InputStream in) voidsetIterator(Iterator<T> iterator) voidsetProducerThread(Thread thread)
-
Field Details
-
in
-
producerThread
-
raisedException
-
iterator
-
closeInvoked
protected volatile boolean closeInvoked
-
-
Constructor Details
-
FlowState
public FlowState()
-
-
Method Details
-
getProducerThread
-
setProducerThread
-
setIn
-
setIterator
-
isRiotBrokenPipeException
-
handleProducerException
-
close
- Throws:
IOException
-
interruptUntilDead
-