Class CalciteAssert.ResultSetFormatter

  • Enclosing class:
    CalciteAssert

    static class CalciteAssert.ResultSetFormatter
    extends java.lang.Object
    Converts a ResultSet to string.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.lang.StringBuilder buf  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.String adjustValue​(java.lang.String string)  
      CalciteAssert.ResultSetFormatter resultSet​(java.sql.ResultSet resultSet)  
      (package private) CalciteAssert.ResultSetFormatter rowToString​(java.sql.ResultSet resultSet, java.sql.ResultSetMetaData metaData)
      Converts one row to a string.
      java.lang.String string()
      Flushes the buffer and returns its previous contents.
      java.util.Collection<java.lang.String> toStringList​(java.sql.ResultSet resultSet, java.util.Collection<java.lang.String> list)  
      • Methods inherited from class java.lang.Object

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

      • buf

        final java.lang.StringBuilder buf
    • Constructor Detail

      • ResultSetFormatter

        ResultSetFormatter()
    • Method Detail

      • rowToString

        CalciteAssert.ResultSetFormatter rowToString​(java.sql.ResultSet resultSet,
                                                     java.sql.ResultSetMetaData metaData)
                                              throws java.sql.SQLException
        Converts one row to a string.
        Throws:
        java.sql.SQLException
      • adjustValue

        protected java.lang.String adjustValue​(java.lang.String string)
      • toStringList

        public java.util.Collection<java.lang.String> toStringList​(java.sql.ResultSet resultSet,
                                                                   java.util.Collection<java.lang.String> list)
                                                            throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • string

        public java.lang.String string()
        Flushes the buffer and returns its previous contents.