Interface Row

    • Method Detail

      • getColumnDefinitions

        @NonNull
        ColumnDefinitions getColumnDefinitions()
        Returns:
        the column definitions contained in this result set.
      • getFormattedContents

        @NonNull
        default String getFormattedContents()
        Returns a string representation of the contents of this row.

        This produces a comma-separated list enclosed in square brackets. Each column is represented by its name, followed by a column and the value as a CQL literal. For example:

         [id:1, name:'test']
         
        Notes:
        • This method does not sanitize its output in any way. In particular, no effort is made to limit output size: all columns are included, and large strings or blobs will be appended as-is.
        • Be mindful of how you expose the result. For example, in high-security environments, it might be undesirable to leak data in application logs.
      • toString

        String toString()
        Returns an abstract representation of this object, that may not include the row's contents.

        The driver's built-in Row implementation returns the default format of Object.toString(): the class name, followed by the at-sign and the hash code of the object.

        Omitting the contents was a deliberate choice, because we feel it would make it too easy to accidentally leak data (e.g. in application logs). If you want the contents, use getFormattedContents().

        Overrides:
        toString in class Object