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:
IteratorFunction
public class ITER_SQL extends 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.
- Author:
- Omar Qawasmeh, Maxime Lefrançois
-
-
Field Summary
Fields Modifier and Type Field Description static Properties
properties
static String
URI
The SPARQL function URI.-
Fields inherited from class fr.mines_stetienne.ci.sparql_generate.iterator.IteratorStreamFunctionBase
arguments
-
-
Constructor Summary
Constructors Constructor Description ITER_SQL()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkBuild(ExprList args)
Partially checks if the iterator function can be executed with the given arguments.void
exec(NodeValue nodeSQL, NodeValue querySQL, Consumer<List<List<NodeValue>>> consumer)
Connection
getConnection(NodeValue sql)
void
getListSQL(Connection conn, NodeValue querySQL, Consumer<List<List<NodeValue>>> consumer)
static Properties
getProperties()
-
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 Detail
-
URI
public static final String URI
The SPARQL function URI.- See Also:
- Constant Field Values
-
properties
public static final Properties properties
-
-
Method Detail
-
getProperties
public static Properties getProperties()
-
exec
public void exec(NodeValue nodeSQL, NodeValue querySQL, Consumer<List<List<NodeValue>>> consumer)
Description copied from class:IteratorStreamFunctionBase2
- Specified by:
exec
in classIteratorStreamFunctionBase2
-
getConnection
public Connection getConnection(NodeValue sql) throws Exception
- Throws:
Exception
-
getListSQL
public void getListSQL(Connection conn, NodeValue querySQL, Consumer<List<List<NodeValue>>> consumer)
-
checkBuild
public void checkBuild(ExprList args)
Description copied from class:IteratorStreamFunctionBase2
Partially checks if the iterator function can be executed with the given arguments.- Overrides:
checkBuild
in classIteratorStreamFunctionBase2
- Parameters:
args
- -
-
-