[ 
https://issues.apache.org/jira/browse/KNOX-2018?focusedWorklogId=320490&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-320490
 ]

ASF GitHub Bot logged work on KNOX-2018:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 30/Sep/19 13:23
            Start Date: 30/Sep/19 13:23
    Worklog Time Spent: 10m 
      Work Description: risdenk commented on pull request #158: KNOX-2018 - 
KnoxShellTable Filtering needs greaterThan and lessThan, equals Methods
URL: https://github.com/apache/knox/pull/158#discussion_r329572909
 
 

 ##########
 File path: 
gateway-shell/src/main/java/org/apache/knox/gateway/shell/table/KnoxShellTableFilter.java
 ##########
 @@ -82,4 +84,23 @@ public KnoxShellTable greaterThan(Comparable<? extends 
Object> comparable) throw
     return filter(s -> s.compareTo(comparable) > 0);
 
 Review comment:
   I think you can store the predicate as a variable name and reuse it.
   
   Something like:
   
   `Predicate greaterThan = s -> s.compareTo(comparable) > 0;`
   
   Might have to fix it up a bit but it would make the new methods simpler 
since you could say `greaterThan(s, comparable) || equalTo(s, comparable)`
 
----------------------------------------------------------------
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:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 320490)
    Time Spent: 3h  (was: 2h 50m)

> KnoxShellTable Filtering needs greaterThan and lessThan, equals Methods
> -----------------------------------------------------------------------
>
>                 Key: KNOX-2018
>                 URL: https://issues.apache.org/jira/browse/KNOX-2018
>             Project: Apache Knox
>          Issue Type: Improvement
>          Components: KnoxShell
>            Reporter: Larry McCay
>            Assignee: Ljmiv
>            Priority: Major
>              Labels: noob
>             Fix For: 1.4.0
>
>          Time Spent: 3h
>  Remaining Estimate: 0h
>
> It would be useful to have greaterThan and lessThan filtering for 
> KnoxShellTable.
> Currently we have a regex match to filter matches.
> Some easier methods for greaterThan, lessThan, equals, equalsIgnoreCare, etc 
> would be very helpful as regex for those things may be possible but more 
> complicated than necessary.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to