org.gcube.dataanalysis.ecoengine.test
Class TablesComparisonLatimeria
java.lang.Object
org.gcube.dataanalysis.ecoengine.test.TablesComparisonLatimeria
public class TablesComparisonLatimeria
- extends Object
checks if two tables are equal
checks numbers at the second decimal position
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
TablesComparisonLatimeria
public TablesComparisonLatimeria(AlgorithmConfiguration config)
throws Exception
- Throws:
Exception
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.