public abstract class Converter
extends java.lang.Object
Constructor and Description |
---|
Converter(Scanner scannerObj)
Constructor to initiate the scanner object.
|
Modifier and Type | Method and Description |
---|---|
abstract java.lang.String |
convert()
Method to convert the SPARQL query.
|
void |
createCsvFile(java.lang.String fileName)
Create CSV file from result of query.
|
abstract java.sql.ResultSet |
execute()
Execute the converted query.
|
long |
getConverTime()
Get the time of converting query.
|
static Converter |
getInstance(java.lang.String query,
boolean fromApply)
Get an instance of converter based on type of input query.
|
Scanner |
getScanner()
Get the scanner object of converter.
|
abstract java.lang.String |
visualize()
Method to visualize the result of query.
|
public Converter(Scanner scannerObj)
scannerObj
- public static Converter getInstance(java.lang.String query, boolean fromApply)
query
- String of SPARQL query.fromApply
- True if the query is inner apply query.public abstract java.lang.String convert() throws java.sql.SQLException
java.sql.SQLException
public abstract java.lang.String visualize() throws java.sql.SQLException
java.sql.SQLException
public abstract java.sql.ResultSet execute() throws java.sql.SQLException
java.sql.SQLException
public long getConverTime()
public void createCsvFile(java.lang.String fileName) throws java.sql.SQLException, java.io.IOException
fileName
- Path of file.java.sql.SQLException
java.io.IOException
public Scanner getScanner()