Package org.intermine.client.results
Class ResultRowMap
- java.lang.Object
-
- java.util.AbstractMap<java.lang.String,java.lang.Object>
-
- org.intermine.client.results.ResultRowMap
-
- All Implemented Interfaces:
java.util.Map<java.lang.String,java.lang.Object>
public class ResultRowMap extends java.util.AbstractMap<java.lang.String,java.lang.Object>
A class that represents a row of a result set as a map from column names to values.
-
-
Constructor Summary
Constructors Constructor Description ResultRowMap(java.lang.String json, java.util.List<java.lang.String> views)
Construct a result-row with a String as its backing data store.ResultRowMap(org.json.JSONArray ja, java.util.List<java.lang.String> views)
Construct a result-row with a JSONArray as its backing data store.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.Object>>
entrySet()
java.lang.Object
get(java.lang.Object key)
-
Methods inherited from class java.util.AbstractMap
clear, clone, containsKey, containsValue, equals, hashCode, isEmpty, keySet, put, putAll, remove, size, toString, values
-
-
-
-
Constructor Detail
-
ResultRowMap
public ResultRowMap(org.json.JSONArray ja, java.util.List<java.lang.String> views)
Construct a result-row with a JSONArray as its backing data store.- Parameters:
ja
- The source of the data.views
- The column names.
-
ResultRowMap
public ResultRowMap(java.lang.String json, java.util.List<java.lang.String> views)
Construct a result-row with a String as its backing data store.- Parameters:
json
- The source of the data.views
- The column names.
-
-
Method Detail
-
entrySet
public java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.Object>> entrySet()
- Specified by:
entrySet
in interfacejava.util.Map<java.lang.String,java.lang.Object>
- Specified by:
entrySet
in classjava.util.AbstractMap<java.lang.String,java.lang.Object>
-
get
public java.lang.Object get(java.lang.Object key)
- Specified by:
get
in interfacejava.util.Map<java.lang.String,java.lang.Object>
- Overrides:
get
in classjava.util.AbstractMap<java.lang.String,java.lang.Object>
-
-