Examples of entrySet()


Examples of org.apache.felix.connect.felix.framework.util.StringMap.entrySet()

                // Otherwise, perform the localization based on the discovered
                // properties and cache the result.
                else
                {
                    // Resolve all localized header entries
                    for (Iterator it = headers.entrySet().iterator(); it
                            .hasNext();)
                    {
                        Map.Entry entry = (Map.Entry) it.next();
                        String value = (String) entry.getValue();
                        if (value.startsWith("%"))
View Full Code Here

Examples of org.apache.felix.framework.util.StringMap.entrySet()

                // Otherwise, perform the localization based on the discovered
                // properties and cache the result.
                else
                {
                    // Resolve all localized header entries
                    for (Iterator it = headers.entrySet().iterator(); it.hasNext(); )
                    {
                        Map.Entry entry = (Map.Entry) it.next();
                        String value = (String) entry.getValue();
                        if (value.startsWith("%"))
                        {
View Full Code Here

Examples of org.apache.felix.utils.properties.Properties.entrySet()

            } catch (IOException e) {
                logger.warn("Error reading configuration file " + configFile.toString(), e);
            }
        }
        Dictionary<String, String> props = new Hashtable<>();
        for (Map.Entry<String, String> entry : configuration.entrySet()) {
            props.put(entry.getKey(), entry.getValue());
        }
        updated(props);
    }
View Full Code Here

Examples of org.apache.geronimo.interop.properties.PropertyMap.entrySet()

        PropertyMap props = urlInfo.getProperties();
        props.putAll(env);
        PropertyMap copyProps = new PropertyMap();
        copyProps.putAll(props);
        for (Iterator i = copyProps.entrySet().iterator(); i.hasNext();)
        {
            Map.Entry entry = (Map.Entry)i.next();
            String property = (String)entry.getKey();
            Object value = entry.getValue();
View Full Code Here

Examples of org.apache.gora.persistency.StatefulMap.entrySet()

                }
               
              }
            } else {
              Map map = (Map) o;
              Set<?> es = map.entrySet();
              for (Object entry : es) {
                Object mapKey = ((Entry) entry).getKey();
                Object mapVal = ((Entry) entry).getValue();
                m.put(col.getFirst(), new Text(toBytes(mapKey)), new Value(toBytes(mapVal)));
                count++;
View Full Code Here

Examples of org.apache.hadoop.chukwa.extraction.demux.processor.mapper.JobLog.JobLogLine.entrySet()

      log = jobLog.getJobLogLine(line);
      if(log == null) {
        continue;
      }
      System.out.println(log.getLogType());
      for(Entry<String, String> entry : log.entrySet()) {
        String k = entry.getKey();
        String v = entry.getValue();
        System.out.println(k + ": " + v);
        if(k.equals("START_TIME") || k.equals("FINISH_TIME"))
          assertTrue(v!=null && !v.equals("0"));
View Full Code Here

Examples of org.apache.hadoop.hbase.io.HbaseMapWritable.entrySet()

        HbaseMapWritable values = server.next(scannerId);
        if (values == null || values.size() == 0) {
          break;
        }
        boolean found = false;
        for (Map.Entry<Writable, Writable> e: values.entrySet()) {
          HStoreKey key = (HStoreKey) e.getKey();
          if (key.getColumn().equals(COL_REGIONINFO)) {
            info = (HRegionInfo) Writables.getWritable(
                  ((ImmutableBytesWritable) e.getValue()).get(), info);
           
View Full Code Here

Examples of org.apache.hadoop.hbase.io.RowResult.entrySet()

      if (results == null) {
        return false;
      }
      key.setRow(results.getRow());
      values.clear();
      for (Map.Entry<byte [], Cell> entry : results.entrySet()) {
        values.put(entry.getKey(), entry.getValue());
      }
      return true;
    }
   
View Full Code Here

Examples of org.apache.hadoop.io.MapWritable.entrySet()

        ((TypedBytesWritable) writables2[i]).getValue());
    }
    assertEquals(MapWritable.class, in.readType());

    MapWritable mw = in.readMap();
    assertEquals(map.entrySet(), mw.entrySet());

    assertEquals(Type.LIST, TypedBytesInput.get(distream).readType());
    assertEquals(r1.getBoolVal(), TypedBytesInput.get(distream).read());
    assertEquals(r1.getByteVal(), TypedBytesInput.get(distream).read());
    assertEquals(r1.getIntVal(), TypedBytesInput.get(distream).read());
View Full Code Here

Examples of org.apache.ivy.util.PropertiesFile.entrySet()

                // origin artifact for it
                if (!location.endsWith("." + artifact.getExt())) {
                    // try to find other cached artifact info with same location. This must be the
                    // origin. We must parse the key as we do not know for sure what the original
                    // artifact is named.
                    Iterator it = cdf.entrySet().iterator();
                    String ownLocationKey = getLocationKey(artifact);
                    while (it.hasNext()) {
                        Map.Entry entry = (Map.Entry) it.next();
                        if (entry.getValue().equals(location)
                                && !ownLocationKey.equals(entry.getKey())) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.