Examples of keySet()


Examples of org.apache.uima.ducc.transport.event.common.IDuccReservationMap.keySet()

      while(iteratorR.hasNext()) {
        DuccId reservationId = iteratorR.next();
        IDuccWorkReservation reservation = (IDuccWorkReservation)duccWorkMap.findDuccWork(reservationId);
        if(reservation.isOperational()) {
          IDuccReservationMap reservationMap = reservation.getReservationMap();
          Iterator<DuccId> iteratorS = reservationMap.keySet().iterator();
          while(iteratorS.hasNext()) {
            DuccId spid = iteratorS.next();
            IDuccReservation rs = reservationMap.get(spid);
            NodeIdentity nodeIdentity = rs.getNodeIdentity();
            String key = nodeIdentity.getIp().trim();

Examples of org.apache.uima.ducc.transport.event.jd.DuccProcessWorkItemsMap.keySet()

  private void copyProcessWorkItemsReport(DuccWorkJob job, DriverStatusReport jdStatusReport) {
    String methodName = "copyProcessWorkItemsReport";
    try {
      IDuccProcessMap processMap = job.getProcessMap();
      DuccProcessWorkItemsMap pwiMap = jdStatusReport.getDuccProcessWorkItemsMap();
      Iterator<DuccId> iterator = pwiMap.keySet().iterator();
      while(iterator.hasNext()) {
        DuccId processId = iterator.next();
        IDuccProcess process = processMap.get(processId);
        IDuccProcessWorkItems pwi = pwiMap.get(processId);
        process.setProcessWorkItems(pwi);

Examples of org.apache.wicket.PageParameters.keySet()

    // Get page parameters
    final PageParameters parameters = requestTarget.getPageParameters();
    if (parameters != null)
    {
      final Iterator<String> iterator = parameters.keySet().iterator();
      while (iterator.hasNext())
      {
        final String key = iterator.next();
        final String values[] = parameters.getStringArray(key);
        if (values != null)

Examples of org.apache.wicket.util.value.IValueMap.keySet()

    IValueMap attributeMap = openTag.getAttributes();

    if (attributeMap != null)
    {
      for (String attr : attributeMap.keySet())
      {
        if (attr.equalsIgnoreCase(attribute))
        {
          value = attributeMap.getString(attr);
        }

Examples of org.apache.wicket.util.value.ValueMap.keySet()

    }

    @Override
    public ValueMap decodeParameters(String urlFragment, Map urlParameters) {
        ValueMap back = super.decodeParameters(urlFragment, urlParameters);
        for (String key : back.keySet()) {
            back.put(key, urlDecode(back.getString((String)key)));
        }
        return back;
    }
}

Examples of org.apache.wink.json4j.JSONObject.keySet()

   */
  public void init(String config) {
    final String method = "init";
    try {
      JSONObject configJson = new JSONObject(config);
      Set<String> keys = configJson.keySet();
      for(String key : keys) {
        JSONObject consumerInfo = configJson.getJSONObject(key);
       
        //BEGIN code from org.apache.shindig.gadgets.oauth.BasicOAuthStore.realStoreConsumerInfo
        String callbackUrl = consumerInfo.optString(CALLBACK_URL, null);

Examples of org.asynchttpclient.FluentCaseInsensitiveStringsMap.keySet()

        headerMap.remove("foo");
        headerMap.remove("bar");
        headerMap.remove("baz");

        assertEquals(map.keySet(), new LinkedHashSet<String>(Arrays.asList("foo", "baz", "bar")));
        assertEquals(map.getFirstValue("foo"), "baz,foo");
        assertEquals(map.getJoinedValue("foo", ", "), "baz,foo");
        assertEquals(map.get("foo"), Arrays.asList("baz,foo"));
        assertEquals(map.getFirstValue("baz"), "bar");
        assertEquals(map.getJoinedValue("baz", ", "), "bar");

Examples of org.asynchttpclient.FluentStringsMap.keySet()

        assertEquals(map.getJoinedValue("baz", ", "), "foo, bar");
        assertEquals(map.get("baz"), Arrays.asList("foo", "bar"));

        map.replaceWith("foo", "blub", "bla");

        assertEquals(map.keySet(), new LinkedHashSet<String>(Arrays.asList("foo", "baz")));
        assertEquals(map.getFirstValue("foo"), "blub");
        assertEquals(map.getJoinedValue("foo", ", "), "blub, bla");
        assertEquals(map.get("foo"), Arrays.asList("blub", "bla"));
        assertEquals(map.getFirstValue("baz"), "foo");
        assertEquals(map.getJoinedValue("baz", ", "), "foo, bar");

Examples of org.bson.BSONObject.keySet()

      BSONObject splitObj = (BasicBSONObject) split;
      BSONObject query = (BasicBSONObject) (splitObj.get("Query"));
      String sql = new String((byte[]) query.get("Sql"));
      BSONObject bindVars = (BasicBSONObject) query.get("BindVariables");
      List<BindVariable> bindVariables = new LinkedList<>();
      for (String key : bindVars.keySet()) {
        BindVariable bv = null;
        Object val = bindVars.get(key);
        if (val == null) {
          bv = BindVariable.forNull(key);
        }

Examples of org.bson.BasicBSONObject.keySet()

                    s = field.getSchema();
                    fs = s != null ? s.getFields() : null;
                    BasicBSONObject inputMap = (BasicBSONObject) obj;

                    Map outputMap = new HashMap();
                    for (String key : inputMap.keySet()) {
                        if (fs != null) {
                            outputMap.put(key, readField(inputMap.get(key), fs[0]));
                        } else {
                            outputMap.put(key, readField(inputMap.get(key), null));
                        }
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.