Class ITER_SQL
java.lang.Object
fr.mines_stetienne.ci.sparql_generate.iterator.IteratorStreamFunctionBase
fr.mines_stetienne.ci.sparql_generate.iterator.IteratorStreamFunctionBase2
fr.mines_stetienne.ci.sparql_generate.sql.ITER_SQL
- All Implemented Interfaces:
fr.mines_stetienne.ci.sparql_generate.iterator.IteratorFunction
public class ITER_SQL
extends fr.mines_stetienne.ci.sparql_generate.iterator.IteratorStreamFunctionBase2
Iterator function SQL
issues a SQL query to a database.
- Param 1: (database): the JDBC URI of the database
- Param 2: (sql) the SQL query;
- Output 1 .. N: value of the ith column, encoded as a boolean, float, double, integer, string, dateTimeStamp, as it best fits.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
checkBuild(org.apache.jena.sparql.expr.ExprList args)
void
exec(org.apache.jena.sparql.expr.NodeValue nodeSQL, org.apache.jena.sparql.expr.NodeValue querySQL, Consumer<List<List<org.apache.jena.sparql.expr.NodeValue>>> consumer)
getConnection(org.apache.jena.sparql.expr.NodeValue sql)
void
getListSQL(Connection conn, org.apache.jena.sparql.expr.NodeValue querySQL, Consumer<List<List<org.apache.jena.sparql.expr.NodeValue>>> consumer)
static Properties
Methods inherited from class fr.mines_stetienne.ci.sparql_generate.iterator.IteratorStreamFunctionBase2
exec
Methods inherited from class fr.mines_stetienne.ci.sparql_generate.iterator.IteratorStreamFunctionBase
build, exec, getContext
-
Field Details
-
URI
The SPARQL function URI.- See Also:
- Constant Field Values
-
properties
-
-
Constructor Details
-
ITER_SQL
public ITER_SQL()
-
-
Method Details
-
getProperties
-
exec
public void exec(org.apache.jena.sparql.expr.NodeValue nodeSQL, org.apache.jena.sparql.expr.NodeValue querySQL, Consumer<List<List<org.apache.jena.sparql.expr.NodeValue>>> consumer)- Specified by:
exec
in classfr.mines_stetienne.ci.sparql_generate.iterator.IteratorStreamFunctionBase2
-
getConnection
- Throws:
Exception
-
getListSQL
public void getListSQL(Connection conn, org.apache.jena.sparql.expr.NodeValue querySQL, Consumer<List<List<org.apache.jena.sparql.expr.NodeValue>>> consumer) -
checkBuild
public void checkBuild(org.apache.jena.sparql.expr.ExprList args)- Overrides:
checkBuild
in classfr.mines_stetienne.ci.sparql_generate.iterator.IteratorStreamFunctionBase2
-