Class DataFramePrinter


  • public class DataFramePrinter
    extends Object
    A class that can pretty print a DataFrame to text for visualization in a console

    Based off of https://github.com/zavtech/morpheus-core/blob/master/src/main/java/com/zavtech/morpheus/reference/XDataFramePrinter.java under Apache 2 license

    • Constructor Detail

      • DataFramePrinter

        public DataFramePrinter​(int maxRows,
                                OutputStream stream)
        Constructor
        Parameters:
        maxRows - the max rows to print
        stream - the print stream to write to
    • Method Detail

      • print

        public void print​(Relation frame)
        Prints the specified DataFrame to the stream bound to this printer
        Parameters:
        frame - the DataFrame to print