homework/hw_2/hw_2_code/ex4/src/main/java/com/ve472/h2/Main.java
<reponame>kx-Huang/ECE4721Jpackage com.ve472.h2;

public class Main {
    public static void main(String[] args) {
        String schema = "json/schema.json";
        String compactSrcDir = "data/small_generated";
        String largeDataDir = "data/large.avro";
        String extractDestDir = "data/small_extracted";

        CompactSmallFiles compactSmallFiles = new CompactSmallFiles();
        compactSmallFiles.compact(schema, compactSrcDir, largeDataDir);
        ExtractSmallFiles extractSmallFiles = new ExtractSmallFiles();
        extractSmallFiles.extract(largeDataDir, extractDestDir);
    }
}