org.gcube.dataanalysis.ecoengine.utils
Class HspecDiscrepanciesCalculator
java.lang.Object
org.gcube.dataanalysis.ecoengine.utils.HspecDiscrepanciesCalculator
public class HspecDiscrepanciesCalculator
- extends Object
checks if two tables are equal
checks numbers at the second decimal position
Method Summary |
BigInteger |
countElements(String tablename,
org.hibernate.SessionFactory session)
|
double |
isNumber(String element)
|
static void |
main(String[] args)
|
boolean |
runTest()
|
List<Object> |
takeChunkOfDestElements(String tablename,
String selectedColumns,
String criteria,
org.hibernate.SessionFactory session,
String whereclause)
|
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 |
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
selectDestElementsQuery
public static String selectDestElementsQuery
referencedbConnection
protected org.hibernate.SessionFactory referencedbConnection
destinationdbConnection
protected org.hibernate.SessionFactory destinationdbConnection
HspecDiscrepanciesCalculator
public HspecDiscrepanciesCalculator(AlgorithmConfiguration config)
throws Exception
- Throws:
Exception
countElements
public BigInteger countElements(String tablename,
org.hibernate.SessionFactory session)
takeChunkOfDestElements
public List<Object> takeChunkOfDestElements(String tablename,
String selectedColumns,
String criteria,
org.hibernate.SessionFactory session,
String whereclause)
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.