Class 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.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.util.AbstractMap

        java.util.AbstractMap.SimpleEntry<K extends java.lang.Object,​V extends java.lang.Object>, java.util.AbstractMap.SimpleImmutableEntry<K extends java.lang.Object,​V extends java.lang.Object>
      • Nested classes/interfaces inherited from interface java.util.Map

        java.util.Map.Entry<K extends java.lang.Object,​V extends java.lang.Object>
    • 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
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Map

        compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
    • 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 interface java.util.Map<java.lang.String,​java.lang.Object>
        Specified by:
        entrySet in class java.util.AbstractMap<java.lang.String,​java.lang.Object>
      • get

        public java.lang.Object get​(java.lang.Object key)
        Specified by:
        get in interface java.util.Map<java.lang.String,​java.lang.Object>
        Overrides:
        get in class java.util.AbstractMap<java.lang.String,​java.lang.Object>