@@ -0,0 +1,1449 @@
+package enc;%0A%0Aimport static java.lang.System.out;%0A%0Aimport java.io.IOException;%0A%0Aimport org.apache.parquet.column.values.rle.RunLengthBitPackingHybridEncoder;%0A%0Apublic class GenerateRLETestCases %7B%0A    private static void printLine() %7B%0A        out.println(%22===============================================%5Cn%22);%0A    %7D%0A%0A    private static void printBytes(byte%5B%5D bytes) %7B%0A        for (byte b : bytes) %7B%0A            out.printf(%220x%2502X %22, b);%0A        %7D%0A        out.println();%0A    %7D%0A%0A    private static void genSingleRLERun_10_Zeroes_1_bit() throws IOException %7B%0A        out.println(%22Single RLE run: 1-bit per value, 10x0%22);%0A        RunLengthBitPackingHybridEncoder e = new RunLengthBitPackingHybridEncoder(%0A                1, 10, 10000);%0A        for (int i = 0; i %3C 10; i++) %7B%0A            e.writeInt(0);%0A        %7D%0A        printBytes(e.toBytes().toByteArray());%0A        printLine();%0A    %7D%0A%0A    private static void genSingleRLERun_300_Ones_20_bit() throws IOException %7B%0A        out.println(%22Single RLE run: 20-bits per value, 300x1%22);%0A        RunLengthBitPackingHybridEncoder e = new RunLengthBitPackingHybridEncoder(%0A                20, 10, 10000);%0A        for (int i = 0; i %3C 300; i++) %7B%0A            e.writeInt(1);%0A        %7D%0A        printBytes(e.toBytes().toByteArray());%0A        printLine();%0A    %7D%0A%0A    public static void main(String%5B%5D args) throws IOException %7B%0A        genSingleRLERun_10_Zeroes_1_bit();%0A        genSingleRLERun_300_Ones_20_bit();%0A    %7D%0A%7D%0A

add class to generate test cases for RLE decoder