Class Tracker<T>
java.lang.Object
org.aksw.jenax.sparql.algebra.walker.Tracker<T>
- Type Parameters:
T-
A class that enables tracking of context information at every node of an
algebra expression. Every node in an algebra expression is given a unique id
in form of a Path<String>.
- Author:
- raven
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncomputeIfAbsent(Function<? super org.aksw.commons.path.core.Path<String>, ? extends T> fn) static <T> Tracker<T>create(org.apache.jena.sparql.algebra.Op rootOp) get()Get this tracker's value for its current pathGet this tracker's value for a given pathorg.aksw.commons.path.core.Path<String>getChildPath(int childIndex) org.aksw.commons.path.core.Path<String>getChildPath(org.aksw.commons.path.core.Path<String> parent, int childIndex) getData()com.google.common.collect.Multimap<org.aksw.commons.path.core.Path<String>,org.aksw.commons.path.core.Path<String>> org.aksw.commons.path.core.Path<String>getPath()voidAttach a value to a pathvoidAttach a value to this tracker's current pathvoidsetParentToChildren(com.google.common.collect.Multimap<org.aksw.commons.path.core.Path<String>, org.aksw.commons.path.core.Path<String>> parentToChildren) voidvoidsetPathToOp(Map<org.aksw.commons.path.core.Path<String>, org.apache.jena.sparql.algebra.Op> pathToOp)
-
Field Details
-
path
-
pathToOp
-
pathToData
Map for user data -
parentToChildren
-
-
Constructor Details
-
Tracker
public Tracker()
-
-
Method Details
-
create
-
getPath
-
getPathToOp
-
getParentToChildren
-
setPath
-
setPathToOp
-
setParentToChildren
-
getData
-
put
Attach a value to this tracker's current path -
get
Get this tracker's value for its current path -
getChildPath
-
getChildPath
-
computeIfAbsent
-
put
Attach a value to a path -
get
Get this tracker's value for a given path
-