Class AquamapsSuitableFunctions
- java.lang.Object
-
- org.gcube.dataanalysis.executor.nodes.algorithms.AquamapsSuitableFunctions
-
public class AquamapsSuitableFunctions extends Object
-
-
Field Summary
Fields Modifier and Type Field Description HashMap<String,List<Object>>allSpeciesObservationsConcurrentHashMap<String,Map<String,Float>>completeDistributionorg.gcube.dataanalysis.ecoengine.spatialdistributions.AquamapsAlgorithmCorecorestatic StringcountAllstatic StringcountAllSpeciesQuerystatic StringcountCsquareCodeQuerystatic StringcreateTableStatementstatic StringcsquareCodeQueryorg.gcube.dataanalysis.ecoengine.configuration.AlgorithmConfigurationcurrentconfigStringcurrentFAOAreasHashMap<String,String>currentSpeciesBoundingBoxInfostatic StringdeleteDuplicatesList<Object>environmentVectorsstatic StringmetainfointnumberOfCellsintnumberOfSpeciesstatic StringprobabilityInsertionStatementHashMap<String,Object>processedAreasstatic StringselectAllSpeciesObservationQuerystatic StringselectAllSpeciesQueryList<Object>speciesVectorsStringtype
-
Constructor Summary
Constructors Constructor Description AquamapsSuitableFunctions(org.gcube.dataanalysis.ecoengine.spatialdistributions.AquamapsAlgorithmCore core, String type, org.gcube.dataanalysis.ecoengine.configuration.AlgorithmConfiguration config)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description floatcalcProb(Object species, Object area)HashMap<String,Integer>calculateBoundingBox(Object[] csquarecode)voiddumpAll(String path)StringgetAdditionalInformation(Object species, Object area)voidgetBoundingBoxInformation(Object[] speciesInfoRow, Object[] speciesObservations)static StringgetGeographicalID(Object geoInfo)static StringgetMainInfoID(Object speciesInfo)voidrebuildAll(int cellOrdinal, int chunksize, int speciesOrdinal, int speciesChunkSize, String pathToFiles)voidrebuildConfig(String configFile)static voidwriteOnDB(List<String> buffer, String destinationTable, org.hibernate.SessionFactory dbHibConnection)
-
-
-
Field Detail
-
countAllSpeciesQuery
public static String countAllSpeciesQuery
-
countAll
public static String countAll
-
countCsquareCodeQuery
public static String countCsquareCodeQuery
-
selectAllSpeciesQuery
public static String selectAllSpeciesQuery
-
csquareCodeQuery
public static String csquareCodeQuery
-
createTableStatement
public static String createTableStatement
-
metainfo
public static String metainfo
-
selectAllSpeciesObservationQuery
public static String selectAllSpeciesObservationQuery
-
probabilityInsertionStatement
public static String probabilityInsertionStatement
-
deleteDuplicates
public static String deleteDuplicates
-
numberOfSpecies
public int numberOfSpecies
-
numberOfCells
public int numberOfCells
-
currentconfig
public org.gcube.dataanalysis.ecoengine.configuration.AlgorithmConfiguration currentconfig
-
currentFAOAreas
public String currentFAOAreas
-
core
public org.gcube.dataanalysis.ecoengine.spatialdistributions.AquamapsAlgorithmCore core
-
type
public String type
-
completeDistribution
public ConcurrentHashMap<String,Map<String,Float>> completeDistribution
-
-
Constructor Detail
-
AquamapsSuitableFunctions
public AquamapsSuitableFunctions(org.gcube.dataanalysis.ecoengine.spatialdistributions.AquamapsAlgorithmCore core, String type, org.gcube.dataanalysis.ecoengine.configuration.AlgorithmConfiguration config)
-
-
Method Detail
-
getBoundingBoxInformation
public void getBoundingBoxInformation(Object[] speciesInfoRow, Object[] speciesObservations)
-
writeOnDB
public static void writeOnDB(List<String> buffer, String destinationTable, org.hibernate.SessionFactory dbHibConnection)
-
rebuildAll
public void rebuildAll(int cellOrdinal, int chunksize, int speciesOrdinal, int speciesChunkSize, String pathToFiles) throws Exception- Throws:
Exception
-
-