org.gcube.dataanalysis.ecoengine.test
Class TablesComparisonLatimeria

java.lang.Object
  extended by org.gcube.dataanalysis.ecoengine.test.TablesComparisonLatimeria

public class TablesComparisonLatimeria
extends Object

checks if two tables are equal checks numbers at the second decimal position


Field Summary
 String analyzedTable
           
 String destinationCriteria
           
protected  org.hibernate.SessionFactory destinationdbConnection
           
 String destinationSelectedColumns
           
protected  String LogFile
           
 String referenceCriteria
           
protected  org.hibernate.SessionFactory referencedbConnection
           
 String referenceSelectedColumns
           
 String referenceTable
           
static String selectElementsQuery
           
 
Constructor Summary
TablesComparisonLatimeria(AlgorithmConfiguration config)
           
 
Method Summary
 BigInteger countElements(String tablename, org.hibernate.SessionFactory session)
           
 double isNumber(String element)
           
static void main(String[] args)
           
 boolean runTest()
           
 List<Object> takeChunkOfElements(String tablename, String selectedColumns, String criteria, int limit, int offset, org.hibernate.SessionFactory session)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LogFile

protected String LogFile

referenceTable

public String referenceTable

analyzedTable

public String analyzedTable

referenceCriteria

public String referenceCriteria

destinationCriteria

public String destinationCriteria

referenceSelectedColumns

public String referenceSelectedColumns

destinationSelectedColumns

public String destinationSelectedColumns

selectElementsQuery

public static String selectElementsQuery

referencedbConnection

protected org.hibernate.SessionFactory referencedbConnection

destinationdbConnection

protected org.hibernate.SessionFactory destinationdbConnection
Constructor Detail

TablesComparisonLatimeria

public TablesComparisonLatimeria(AlgorithmConfiguration config)
                          throws Exception
Throws:
Exception
Method Detail

countElements

public BigInteger countElements(String tablename,
                                org.hibernate.SessionFactory session)

takeChunkOfElements

public List<Object> takeChunkOfElements(String tablename,
                                        String selectedColumns,
                                        String criteria,
                                        int limit,
                                        int offset,
                                        org.hibernate.SessionFactory session)

isNumber

public double isNumber(String element)

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception

runTest

public boolean runTest()


Copyright © 2013. All Rights Reserved.