All Downloads are FREE. Search and download functionalities are using the official Maven repository.

au.gov.amsa.risky.format.DownsampleMain Maven / Gradle / Ivy

There is a newer version: 0.6.19
Show newest version
package au.gov.amsa.risky.format;

import java.io.File;
import java.util.concurrent.TimeUnit;
import java.util.regex.Pattern;

public class DownsampleMain {

    public static void main(String[] args) {
        try {
            File input = new File(System.getProperty("input"));
            File output = new File(System.getProperty("output"));
            Pattern pattern = Pattern.compile(System.getProperty("pattern"));
            long intervalMs = Long.parseLong(System.getProperty("ms"));
            Downsample.downsample(input, output, pattern, intervalMs, TimeUnit.MILLISECONDS)
                    .count().toBlocking().single();
        } catch (RuntimeException e) {
            System.out
                    .println("Usage: -Dinput= -Doutput= -Dpattern= -Dms=");
            throw e;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy