Class RowFormatterImpl

    • Constructor Summary

      Constructors 
      Constructor Description
      RowFormatterImpl​(java.lang.String delimiter, boolean quoted)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String format​(java.util.List<? extends java.lang.Object> row)
      Formats objects to string.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RowFormatterImpl

        public RowFormatterImpl​(java.lang.String delimiter,
                                boolean quoted)
        Constructor.
        Parameters:
        delimiter - used delimiter
        quoted - flag if the strings should be quoted
    • Method Detail

      • format

        public java.lang.String format​(java.util.List<? extends java.lang.Object> row)
        Formats objects to string. Just convert objects to strings with toString method and quotes it if required or needed because delimiter is inside of string. Number is formatted without quotations.
        Specified by:
        format in interface RowFormatter
        Parameters:
        row - row to be formatted
        Returns:
        resulted string