|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.larkc.core.query.VariableBindingBase
public class VariableBindingBase
VariableBindingBase is an abstract class to implement asynchronous streaming of RDF variable bindings. All implementing classes must: 1. Invoke super.notifyAll() after setting bindNames 2. Put next the next binding results with results.put(X).
Nested Class Summary | |
---|---|
class |
VariableBindingBase.BindingIterator
This class iterates an asynchronous blocking and returns back the results on demand. |
class |
VariableBindingBase.FinalBindingSet
Helper class to denote the end of the streamed solutions. |
class |
VariableBindingBase.WrappedBinding
Helper class to transform a Sesame to LarKC binding. |
Nested classes/interfaces inherited from interface eu.larkc.core.data.VariableBinding |
---|
VariableBinding.Binding |
Field Summary | |
---|---|
static org.openrdf.model.BNode |
vbbBNode
|
static org.openrdf.model.URI |
vbbPredicate
|
Constructor Summary | |
---|---|
VariableBindingBase()
|
Method Summary | |
---|---|
java.util.List<java.lang.String> |
getVariables()
Gets the list of variables in the projection. |
CloseableIterator<VariableBinding.Binding> |
iterator()
Gets an iterator of the solutions. |
SetOfStatements |
toRDF()
Return an RDF representation of this object TODO:This should be fixed to really use RDF and not the CheatingInMemoryObjectStore |
SetOfStatements |
toRDF(SetOfStatements data)
Serializes this object to SetOfStatements. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final org.openrdf.model.URI vbbPredicate
public static final org.openrdf.model.BNode vbbBNode
Constructor Detail |
---|
public VariableBindingBase()
Method Detail |
---|
public java.util.List<java.lang.String> getVariables()
VariableBinding
getVariables
in interface VariableBinding
public CloseableIterator<VariableBinding.Binding> iterator()
VariableBinding
iterator
in interface VariableBinding
public SetOfStatements toRDF()
public SetOfStatements toRDF(SetOfStatements data)
InformationSet
toRDF
in interface InformationSet
data
- is stream to serialize this object to.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |