[
https://issues.apache.org/jira/browse/HTRACE-6?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14247494#comment-14247494
]
Colin Patrick McCabe commented on HTRACE-6:
-------------------------------------------
Hmm. How about just adding a {{getRunnable}} method to {{TraceRunnable}},
which gets the underlying {{Runnable}}? Then you can just write a comparator
for your application that compares them however you like.
Keep in mind, different people may want to compare these things differently--
there is no "obvious" way to compare them, since as I mentioned, most
{{Runnables}} aren't {{Comparable}}. And even if they were, it's not obvious
whether we should compare by Span first, and then Runnable, and then
description, or description first, and then Span, and then runnable, etc. etc.
Just adding the {{getRunnable}} method is easy and it should do everything
Accumulo needs, right?
> Make TraceRunnable implement Comparable
> ---------------------------------------
>
> Key: HTRACE-6
> URL: https://issues.apache.org/jira/browse/HTRACE-6
> Project: HTrace
> Issue Type: Wish
> Reporter: Billie Rinaldi
> Attachments: HTRACE-6.1.patch
>
>
> Accumulo would be able to use htrace's TraceRunnable if it implemented
> Comparable<TraceRunnable>.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)