gora-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lewis John McGibbney (JIRA)" <j...@apache.org>
Subject [jira] [Created] (GORA-204) Don't store empty arrays in CassandraClient#addGenericArray() & addStatefulHashMap()
Date Sat, 09 Feb 2013 20:53:12 GMT
Lewis John McGibbney created GORA-204:
-----------------------------------------

             Summary: Don't store empty arrays in CassandraClient#addGenericArray() &
addStatefulHashMap()
                 Key: GORA-204
                 URL: https://issues.apache.org/jira/browse/GORA-204
             Project: Apache Gora
          Issue Type: Improvement
          Components: avro, storage-cassandra
    Affects Versions: 0.2.1
            Reporter: Lewis John McGibbney
            Priority: Minor
             Fix For: 0.4


We have two TODO's in this issue.
Namely 

{code}
        // TODO: hack, do not store empty arrays
        if (itemValue instanceof GenericArray<?>) {
          if (((GenericArray)itemValue).size() == 0) {
            continue;
          }
        } else if (itemValue instanceof StatefulHashMap<?,?>) {
          if (((StatefulHashMap)itemValue).size() == 0) {
            continue;
          }
        }
{code}

and 

{code}
        // TODO: hack, do not store empty arrays
        Object mapValue = map.get(mapKey);
        if (mapValue instanceof GenericArray<?>) {
          if (((GenericArray)mapValue).size() == 0) {
            continue;
          }
        } else if (mapValue instanceof StatefulHashMap<?,?>) {
          if (((StatefulHashMap)mapValue).size() == 0) {
            continue;
          }
        }
{code}

in assGenericArray and addStateulHashMap respectively.

--
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

Mime
View raw message