org.eaglei.datatools.etl.utils
Class DeETL
java.lang.Object
org.eaglei.datatools.etl.utils.BulkOperation
org.eaglei.datatools.etl.utils.DeETL
public class DeETL
- extends BulkOperation
This class is for deleting instances which ETled from particular file, -f takes filename as input ,this is the file name which we want to delete all instances ETLed from .-r takes repository configuration file path
FLOW : deleteInsntaceETledFromFIle(String) takes file name as input ,it then calls getResourcesOfFile(String) where it builds query to ge the Instance URI's we want to delete,It builds the query by calling
SPARQLQueryUtil.getInstance().getResourcesETLedFromFileQuery(fileName); .We query repository using the query which we built it then returns results in xml format ,xml is parsed for Instance URIs in ETLSPARQLQueryUtil.getInstanceURI(resources)
method ,which returns array if instance URI's . instanceURI array is then passed to deleteInsntaceETledFromFIle(String) where it will be deleted one by one by looping throught he array
- Author:
- Sravan Kumar Cheriyala
|
Constructor Summary |
DeETL(java.lang.String repo)
Constructor where we get the ReposiotryProvider object and also gets session by loging into reposiotry |
|
Method Summary |
int |
deleteInstanceETLedFromFile(java.lang.String fileName)
Delete the instances which are ETLed from fileName |
static void |
main(java.lang.String[] args)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DeETL
public DeETL(java.lang.String repo)
throws java.lang.Exception
- Constructor where we get the ReposiotryProvider object and also gets session by loging into reposiotry
- Throws:
java.lang.Exception
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Throws:
java.lang.Exception
deleteInstanceETLedFromFile
public int deleteInstanceETLedFromFile(java.lang.String fileName)
throws java.lang.Exception
- Delete the instances which are ETLed from fileName
- Throws:
java.lang.Exception
Copyright © 2009-2011 Eagle-I. All Rights Reserved.