Exemplo n.º 1
0
        ///
        ///	 <summary> * reduce each JDFAttributeMap in <code>this</code> by keySet
        ///	 *  </summary>
        ///	 * <param name="keySet"> </param>
        ///
        public virtual void reduceMap(ICollection <string> keySet)
        {
            VJDFAttributeMap v = new VJDFAttributeMap();

            for (int i = 0; i < m_vec.Count; i++)
            {
                JDFAttributeMap map      = m_vec[i];
                bool            bNullMap = map.IsEmpty();
                map.reduceMap(keySet);

                if (bNullMap || !map.IsEmpty())
                {
                    v.appendUnique(map);
                }
            }
            m_vec = v.getVector();
        }
Exemplo n.º 2
0
        public virtual void reduceKey(ICollection <string> vKeys)
        {
            VJDFAttributeMap v = new VJDFAttributeMap();

            for (int i = 0; i < m_vec.Count; i++)
            {
                JDFAttributeMap map = m_vec[i];
                map.reduceMap(vKeys);

                if (!map.IsEmpty())
                {
                    v.appendUnique(map);
                }
            }

            m_vec = v.getVector();
        }