Class RowSetFormatter

java.lang.Object
org.apache.drill.exec.physical.rowSet.RowSetFormatter

public class RowSetFormatter extends Object
Helper class to obtain string representation of RowSet. Example of the output:
   #: `id` INT NOT NULL, `mapCol` STRUCT<`a` INT, `b` VARCHAR>, `arrayInt` ARRAY
   0: 1, {20, "say"}, [1, 1, 2]
   1: 2, {20, "hello"}, []
   2: 2, {20, null}, [3, 5, 8]
 
  • Constructor Details

    • RowSetFormatter

      public RowSetFormatter(RowSet rowSet, Writer writer)
  • Method Details

    • print

      public static void print(RowSet rowSet)
    • print

      public static void print(VectorContainer container)
    • print

      public static void print(BatchAccessor batch)
    • toString

      public static String toString(RowSet rowSet)
    • write

      public void write()