@@ -0,0 +1,1291 @@
+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.plain.PlainValuesWriter;%0Aimport org.apache.parquet.column.values.rle.RunLengthBitPackingHybridEncoder;%0Aimport org.apache.parquet.io.api.Binary;%0A%0Apublic class GenerateByteArrayTestCases %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 genMiscByteArrays() throws IOException %7B%0A        PlainValuesWriter w = new PlainValuesWriter(10000, 10000,  A);%0A        %0A        for (String s: new String%5B%5D %7B%22123%22, %22%22, %22ABCDEF%22%7D) %7B%0A        %09out.print(%22%5B%5Dbyte(%5C%22%22 + s + %22%5C%22), %22);%0A        %09w.writeBytes(Binary.fromConstantByteArray(s.getBytes()));%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    %09genMiscByteArrays();%0A    %7D%0A%7D %0A

add class to generate tests for byte_array decoder