Class OpExecutorDefault
java.lang.Object
org.aksw.jena_sparql_api.conjure.dataset.engine.OpExecutorDefault
- All Implemented Interfaces:
OpVisitor<RdfDataPod>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.apache.jena.query.Datasetprotected booleanprotected static final org.slf4j.Loggerprotected org.apache.jena.riot.RDFFormatprotected HttpResourceRepositoryFromFileSystemImplprotected TaskContextThe task context holds the input record and an assignment of variables to data references -
Constructor Summary
ConstructorsConstructorDescriptionOpExecutorDefault(org.apache.jena.query.Dataset dataset, HttpResourceRepositoryFromFileSystem repo, TaskContext taskContext, Map<String, org.apache.jena.graph.Node> execCtx, org.apache.jena.riot.RDFFormat persistRdfFormat) -
Method Summary
Modifier and TypeMethodDescriptionstatic com.google.common.hash.HashCodecomputeOpHash(OpPersist op, TaskContext taskContext) createTransformRdfDataSource(Class<?> cls) createTransformRdfDataSource(String className) org.apache.jena.graph.NodesubstNode(org.apache.jena.graph.Node node) visit(OpCoalesce op) visit(OpConstruct op) visit(OpHdtHeader op) visit(OpJavaRewrite op) visit(OpJobInstance op) visit(OpMacroCall op) Query rewriting opsvisit(OpSequence op) Execute all arguments and return the result of the last onevisit(OpStmtList op) Query rewriting or data access modificationvisit(OpUpdateRequest op) <T extends org.apache.jena.rdf.model.RDFNode>
RdfDataPodwrapWithGetFromHash(T op, Function<T, RdfDataPod> generator) Check the repository for whether it can supply an entity for the hash
-
Field Details
-
logger
protected static final org.slf4j.Logger logger -
persistRdfFormat
protected org.apache.jena.riot.RDFFormat persistRdfFormat -
dataset
protected org.apache.jena.query.Dataset dataset -
repo
-
taskContext
The task context holds the input record and an assignment of variables to data references -
isDryRun
protected boolean isDryRun -
execCtx
-
-
Constructor Details
-
OpExecutorDefault
public OpExecutorDefault(org.apache.jena.query.Dataset dataset, HttpResourceRepositoryFromFileSystem repo, TaskContext taskContext, Map<String, org.apache.jena.graph.Node> execCtx, org.apache.jena.riot.RDFFormat persistRdfFormat)
-
-
Method Details
-
getTaskContext
-
wrapWithGetFromHash
public <T extends org.apache.jena.rdf.model.RDFNode> RdfDataPod wrapWithGetFromHash(T op, Function<T, RdfDataPod> generator) Check the repository for whether it can supply an entity for the hash- Parameters:
hash-- Returns:
-
visit
- Specified by:
visitin interfaceOpVisitor<RdfDataPod>
-
visit
- Specified by:
visitin interfaceOpVisitor<RdfDataPod>
-
substNode
public org.apache.jena.graph.Node substNode(org.apache.jena.graph.Node node) -
visit
- Specified by:
visitin interfaceOpVisitor<RdfDataPod>
-
visit
- Specified by:
visitin interfaceOpVisitor<RdfDataPod>
-
visit
- Specified by:
visitin interfaceOpVisitor<RdfDataPod>
-
visit
- Specified by:
visitin interfaceOpVisitor<RdfDataPod>
-
computeOpHash
-
visit
- Specified by:
visitin interfaceOpVisitor<RdfDataPod>
-
visit
- Specified by:
visitin interfaceOpVisitor<RdfDataPod>
-
visit
- Specified by:
visitin interfaceOpVisitor<RdfDataPod>
-
visit
Execute all arguments and return the result of the last one- Specified by:
visitin interfaceOpVisitor<RdfDataPod>
-
visit
- Specified by:
visitin interfaceOpVisitor<RdfDataPod>
-
visit
- Specified by:
visitin interfaceOpVisitor<RdfDataPod>
-
visit
- Specified by:
visitin interfaceOpVisitor<RdfDataPod>
-
visit
- Specified by:
visitin interfaceOpVisitor<RdfDataPod>
-
visit
Description copied from interface:OpVisitorQuery rewriting ops- Specified by:
visitin interfaceOpVisitor<RdfDataPod>
-
visit
- Specified by:
visitin interfaceOpVisitor<RdfDataPod>
-
visit
- Specified by:
visitin interfaceOpVisitor<RdfDataPod>
-
getExecCtx
-
visit
Description copied from interface:OpVisitorQuery rewriting or data access modification- Specified by:
visitin interfaceOpVisitor<RdfDataPod>
-
visit
- Specified by:
visitin interfaceOpVisitor<RdfDataPod>
-
createTransformRdfDataSource
public RdfDataSourceTransform createTransformRdfDataSource(String className) throws NoSuchMethodException, SecurityException, InstantiationException, IllegalAccessException, IllegalArgumentException, InvocationTargetException, ClassNotFoundException -
createTransformRdfDataSource
public RdfDataSourceTransform createTransformRdfDataSource(Class<?> cls) throws NoSuchMethodException, SecurityException, InstantiationException, IllegalAccessException, IllegalArgumentException, InvocationTargetException
-