Examples of UpToDateChecker


Examples of com.volantis.testtools.mock.generator.UpToDateChecker

            }

            JavaClass[] classes = qdoxBuilder.getClasses();
            if (classes.length != 0) {

                UpToDateChecker generatorChecker;
                if (force) {
                    generatorChecker = new UpToDateChecker(Long.MAX_VALUE);
                } else {
                    generatorChecker = new UpToDateChecker(0L);
                }

                Arrays.sort(classes);

                if (outputEncoding == null) {
View Full Code Here

Examples of org.grouplens.lenskit.util.io.UpToDateChecker

     *
     */
    @SuppressWarnings("PMD.AvoidCatchingThrowable")
    @Override
    public DataSource perform() throws TaskExecutionException {
        UpToDateChecker check = new UpToDateChecker();
        check.addInput(source.lastModified());
        File subsampleFile = getOutput();
        check.addOutput(subsampleFile);
        if (check.isUpToDate()) {
            logger.info("subsample {} up to date", getName());
            return makeDataSource();
        }
        try {
            logger.info("sampling {} of {}",
View Full Code Here

Examples of org.grouplens.lenskit.util.io.UpToDateChecker

        Preconditions.checkNotNull(outFile, "output file");

        PackedDataSource source = new PackedDataSource(data.getName(), outFile,
                                                       data.getPreferenceDomain());

        UpToDateChecker check = new UpToDateChecker();
        check.addInput(data.lastModified());
        check.addOutput(outFile);
        if (check.isUpToDate()) {
            logger.info("{} is up to date", outFile);
            return source;
        }

        logger.info("packing {} to {}", data, outFile);
View Full Code Here

Examples of org.grouplens.lenskit.util.io.UpToDateChecker

     * @return The partition files stored as a list of TTDataSet
     */
    @Override
    public List<TTDataSet> perform() throws TaskExecutionException {
        if (!getForce()) {
            UpToDateChecker check = new UpToDateChecker();
            check.addInput(source.lastModified());
            for (File f: getFiles(getTrainPattern())) {
                check.addOutput(f);
            }
            for (File f: getFiles(getTestPattern())) {
                check.addOutput(f);
            }
            if (check.isUpToDate()) {
                logger.info("crossfold {} up to date", getName());
                return getTTFiles();
            }
        }
        try {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.