commit | 58528896a5f15e8713da07564c8cb4f8870dfa8f | [log] [tgz] |
---|---|---|
author | madhusudancs@gmail.com <madhusudancs@gmail.com@eaa15691-b419-025a-1212-ee371bd00084> | Fri Feb 22 06:07:26 2013 +0000 |
committer | madhusudancs@gmail.com <madhusudancs@gmail.com@eaa15691-b419-025a-1212-ee371bd00084> | Fri Feb 22 06:07:26 2013 +0000 |
tree | c4ee07a626e24247ab52996de46c471b0c757de0 | |
parent | f9e53e128ca5505784fccc7fdceb05088c591eba [diff] |
Implement a stub toJSON method for the new type AInterval, we will remove this stub when visitor pattern based JSON printer is implemented. git-svn-id: https://asterixdb.googlecode.com/svn/branches/asterix_stabilization_result_distribution@1227 eaa15691-b419-025a-1212-ee371bd00084
diff --git a/asterix-om/src/main/java/edu/uci/ics/asterix/om/base/AInterval.java b/asterix-om/src/main/java/edu/uci/ics/asterix/om/base/AInterval.java index 66a587a..f1352f1 100644 --- a/asterix-om/src/main/java/edu/uci/ics/asterix/om/base/AInterval.java +++ b/asterix-om/src/main/java/edu/uci/ics/asterix/om/base/AInterval.java
@@ -14,6 +14,9 @@ */ package edu.uci.ics.asterix.om.base; +import org.json.JSONException; +import org.json.JSONObject; + import edu.uci.ics.asterix.common.exceptions.AsterixException; import edu.uci.ics.asterix.om.base.temporal.GregorianCalendarSystem; import edu.uci.ics.asterix.om.types.ATypeTag; @@ -141,4 +144,9 @@ return typetag; } + @Override + public JSONObject toJSON() throws JSONException { + // TODO(madhusudancs): Remove this method when a printer based JSON serializer is implemented. + return null; + } }