You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "William Slacum (JIRA)" <ji...@apache.org> on 2012/11/22 09:36:58 UTC
[jira] [Updated] (ACCUMULO-871) ColumnVisibilities should do more
to create normalized representations of expressions
[ https://issues.apache.org/jira/browse/ACCUMULO-871?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
William Slacum updated ACCUMULO-871:
------------------------------------
Attachment: CVTest.java
A small test that shows how flatten() behaves depending on input.
> ColumnVisibilities should do more to create normalized representations of expressions
> -------------------------------------------------------------------------------------
>
> Key: ACCUMULO-871
> URL: https://issues.apache.org/jira/browse/ACCUMULO-871
> Project: Accumulo
> Issue Type: Improvement
> Affects Versions: 1.5.0
> Environment: OSX
> Reporter: William Slacum
> Assignee: William Slacum
> Priority: Minor
> Attachments: col.vis.patch, CVTest.java
>
>
> ColumnVisibilities offer a `flatten()` functionality, which attempts to normalize a given expression. So, if I had an expression, `b&a&c`, and I `flatten`'d it, I'd get back `a&b&c`.
> Through some testing, I found that this is applied and not applied depending on how the expression is written. For instance, if I had something like `(b&a)&c`, I would get back something like `c&a&b`.
> It's not much more code to provide a correct normalized form of expressions as well do some more work to detect and eliminate expressions that boil down to `expr&expr` or `expr|expr`.
> I've attached a sample program that shows some output of what the current capability is and what I think it should output.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira