cassandra-pr mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [cassandra] codacy-bot commented on a change in pull request #361: Expose schema via new DESCRIBE CQL statement
Date Mon, 07 Oct 2019 12:23:33 GMT
codacy-bot commented on a change in pull request #361: Expose schema via new DESCRIBE CQL statement
URL: https://github.com/apache/cassandra/pull/361#discussion_r331987503
 
 

 ##########
 File path: src/java/org/apache/cassandra/utils/FBUtilities.java
 ##########
 @@ -824,6 +827,87 @@ public static long abs(long index)
         return (index ^ negbit) - negbit;
     }
 
+    /**
+     * Produces a columnized output showing the input strings.
+     *
+     * The literally sorted first element is shown in the upper left "corner" and
+     * the last element in the lower right.
+     *
+     * Columns are separated by two spaces.
+     *
+     * @param input input elements to sort and arrange in columns
+     * @param width maximum line length
+     * @return stream of lines
+     */
+    public static Stream<String> columnize(Stream<String> input, int width)
 
 Review comment:
   ![Codacy](https://app.codacy.com/assets/images/favicon.png) Issue found: [The method 'columnize(Stream,
int)' has an NPath complexity of 1160](https://app.codacy.com/app/Wen1234/cassandra/pullRequest?prid=4274613)

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org


Mime
View raw message