com.okworx.ilcd.validation.util.AbstractDatasetsTask Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ilcd-validation Show documentation
Show all versions of ilcd-validation Show documentation
A Java library for performing technical validation of data in ILCD data format.
package com.okworx.ilcd.validation.util;
import java.util.Collection;
import org.apache.logging.log4j.Logger;
import com.okworx.ilcd.validation.AbstractDatasetsValidator;
import com.okworx.ilcd.validation.reference.IDatasetReference;
/**
* AbstractDatasetsTask class.
*
* @author oliver.kusche
* @version $Id: $Id
*/
public class AbstractDatasetsTask {
protected final Logger log = org.apache.logging.log4j.LogManager.getLogger(this.getClass());
protected AbstractDatasetsValidator validator;
protected Collection files;
protected Statistics statistics = new Statistics();
/**
* updateChunkCount.
*
* @param count a int.
* @return a int.
*/
protected int updateChunkCount(int count) {
count++;
if ((count % this.validator.getUpdateInterval() == 0)) {
this.validator.triggerProgressUpdate(count);
count = 0;
}
return count;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy