falcon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shwetha G S (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FALCON-114) JSON creation for entities
Date Wed, 06 Nov 2013 08:19:18 GMT

    [ https://issues.apache.org/jira/browse/FALCON-114?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13814695#comment-13814695
] 

Shwetha G S commented on FALCON-114:
------------------------------------

Please remove this:
+/**
+ * This code serves for falcon-37 of apache falcon jira entry.
+ * for any comments please contact srikanth.vittal@inmobi.com
+ */

Why not compare in the first for loop itself?
+        for (int i = 0; i < keySet.length; i++) {
+            keys[i] = keySet[i].toString();
         }
+        for (int i = 0; i < keys.length; i++) {
+            if (keyToFind.equalsIgnoreCase(keys[i])) {
+                return i;
+            }
+        }

Throw the exception:
+        } catch (ParseException pe) {
+            LOG.error("PARSE EXCEPTION");
+            return null;
+        } catch (Exception e) {
+            LOG.error("EXCEPTION");
+            return null;
+        }

> JSON creation for entities
> --------------------------
>
>                 Key: FALCON-114
>                 URL: https://issues.apache.org/jira/browse/FALCON-114
>             Project: Falcon
>          Issue Type: Sub-task
>          Components: general
>    Affects Versions: 0.4
>            Reporter: Srikanth Vittal
>            Assignee: Srikanth Vittal
>              Labels: UI
>         Attachments: FALCON-114.r1.patch
>
>   Original Estimate: 4h
>  Remaining Estimate: 4h
>
> Get the list of all the entities and create a single JSON file.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message