@@ -0,0 +1,1288 @@
+package enc;%0A%0Aimport static java.lang.System.out;%0A%0Aimport java.io.IOException;%0A%0Aimport org.apache.parquet.bytes.HeapByteBufferAllocator;%0Aimport org.apache.parquet.column.values.rle.RunLengthBitPackingHybridValuesWriter;%0A%0Apublic class GenerateBooleanTestCases %7B%0A    private static final HeapByteBufferAllocator A = new HeapByteBufferAllocator();%0A%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        out.print(%22%5B%5Dbyte%7B%22);%0A        for (byte b : bytes) %7B%0A            out.printf(%220x%2502X, %22, b);%0A        %7D%0A        out.println(%22%7D%22);%0A    %7D%0A%0A    private static void gen(boolean... values) throws IOException %7B%0A        RunLengthBitPackingHybridValuesWriter w = new RunLengthBitPackingHybridValuesWriter(1, 1000, 1000, A);%0A        %0A        for (boolean v: values) %7B%0A        %09out.print(v + %22, %22);%0A        %09w.writeBoolean(v);%0A        %7D%0A        out.println();%0A%0A        printBytes(w.getBytes().toByteArray());%0A        printLine();%0A    %7D%0A%0A    public static void main(String%5B%5D args) throws IOException %7B%0A    %09gen(true, false, true, false, true);%0A    %09gen(true, true, true, true, true, true, true, true);%0A    %09gen(false, false, false, false, false, false, false, false);%0A    %7D%0A%7D %0A

test cases generator for BOOLEAN RLE encoding