incubator-blur-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aaron McCurry (JIRA)" <>
Subject [jira] [Created] (BLUR-237) Investigate the use of Thrift Unions to remove some complexity in the Blur API
Date Fri, 20 Sep 2013 15:07:51 GMT
Aaron McCurry created BLUR-237:

             Summary: Investigate the use of Thrift Unions to remove some complexity in the
Blur API
                 Key: BLUR-237
             Project: Apache Blur
          Issue Type: Improvement
          Components: Blur
    Affects Versions: 0.3.0
            Reporter: Aaron McCurry
             Fix For: 0.3.0

I believe that we can use this feature to provide a simpler API for Blur data structures.

One place where this would be of benefit would be in changing the Column object from having
a string name and a string value.  To having a string name and a new Union type as the value.
 This ColumnValue union could contain one of each of the primary thrift types (string, i32,
i64, binary, double, etc).  This would allow for the original data type to be delivered in
the correct form (instead of just a string).  It could also make the assignment of new types
in none strict tables to be easier.  For example if the Union had a integer provided and the
column had not been seen before, then the type could be assigned as an integer instead of
using whatever the default type on the table (TableDescriptor).

Another place is in the results of a query and fetch call.  Currently you can get either a
Record or a Row back so I think a union type of the result would work better here.

Union references:

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:

View raw message