Examples of keys()


Examples of fr.dyade.aaa.common.stream.Properties.keys()

    Properties properties = msg.getHeaderMessage().properties;
    if (properties != null) {
      props = new String[properties.size()];
      int i = 0;
      StringBuffer strbuf = new StringBuffer();
      for (Enumeration e = properties.keys(); e.hasMoreElements();) {
        String key = (String) e.nextElement();
        strbuf.append(key).append('=').append(properties.get(key));
        props[i++] = strbuf.toString();
        strbuf.setLength(0);
      }
View Full Code Here

Examples of freemarker.template.TemplateHashModelEx.keys()

            return list;
        }
        if(model instanceof TemplateHashModelEx) {
            TemplateHashModelEx hash = (TemplateHashModelEx)model;
            HashMap map = new HashMap();
            TemplateModelIterator keys = hash.keys().iterator();
            while(keys.hasNext()) {
                String key = (String)unwrap(keys.next(), nullModel, permissive);
                map.put(key, unwrap(hash.get(key), nullModel, permissive));
            }
            return map;
View Full Code Here

Examples of freenet.node.stats.DataStoreStats.keys()

      }
     
      row = storeSizeTable.addChild("tr");
      row.addChild("th", l10n(instance.store.name()) + "\n" + " (" + l10n(instance.key.name()) + ")");

      row.addChild("td", thousandPoint.format(stats.keys()));
      row.addChild("td", thousandPoint.format(stats.capacity()));
      row.addChild("td", SizeUtil.formatSize(stats.dataSize()));
      row.addChild("td", fix3p1pct.format(stats.utilization()));
      row.addChild("td", thousandPoint.format(sessionAccess.readRequests()) +
          (totalAccess == null ? "" : (" ("+thousandPoint.format(totalAccess.readRequests())+")")));
View Full Code Here

Examples of gnu.trove.TIntByteHashMap.keys()

      return null;
    //deal with empty case
    if (list.size() == 0)
      return new FeedbackDocument[0];
    final List<FeedbackDocument> rtrList = new ArrayList<FeedbackDocument>(list.size());
    for(int id: list.keys())
    {
      FeedbackDocument doc = new FeedbackDocument();
      doc.docid = id;
      doc.score = -1;
      doc.rank = -1;
View Full Code Here

Examples of gnu.trove.TIntFloatHashMap.keys()

      final String [] parts = line.split("\t");
      term = parts[1];
     
      // prune and write the vector
      if(prevTerm != null && !prevTerm.equals(term)){
        int [] arrDocs = hmap.keys();
          float [] arrScores = hmap.getValues();
         
          HeapSort.heapSort(arrScores, arrDocs);
         
          // prune the vector
View Full Code Here

Examples of gnu.trove.TIntIntHashMap.keys()

        if (sample < topicBetaMass) {
          //betaTopicCount++;

          sample /= beta;

          topicTermIndices = localTopicCounts.keys();
          topicTermValues = localTopicCounts.getValues();

          for (i=0; i < topicTermIndices.length; i++) {
            newTopic = topicTermIndices[i];
View Full Code Here

Examples of gnu.trove.TIntObjectHashMap.keys()

  }

  public int[] keys2 (int key1)
  {
    TIntObjectHashMap inner = (TIntObjectHashMap) backing.get (key1);
    return inner.keys ();
  }

  private static final long serialVersionUID = 1;

  private static final int CURRENT_SERIAL_VERSION = 1;
View Full Code Here

Examples of gnu.trove.TLongObjectHashMap.keys()

      while (it.hasNext())
      {
         String calledClass = (String) it.next();
         TLongObjectHashMap map = (TLongObjectHashMap) called.get(calledClass);
         Object[] values = map.getValues();
         long[] keys = map.keys();
         for (int i = 0; i < values.length; i++)
         {
            CallerMethodInfo caller = (CallerMethodInfo) values[i];
            nodes.add(createTreeNode(
                    caller.getMethod().toString(),
View Full Code Here

Examples of gnu.trove.TObjectIntHashMap.keys()

        if (context.m_exprIndexToTargetIndex.isEmpty()) {
            // restore
            context.m_exprIndexToTargetIndex = exprIndexToTargetIndexSoFar;
        } else if (!exprIndexToTargetIndexSoFar.isEmpty()) {
            //should merge ?
            for (int i = 0; i < exprIndexToTargetIndexSoFar.keys().length; i++) {
                Object o = exprIndexToTargetIndexSoFar.keys()[i];
                context.m_exprIndexToTargetIndex.put(o, exprIndexToTargetIndexSoFar.get(o));
            }
        }
        return match;
View Full Code Here

Examples of gnu.trove.map.TIntLongMap.keys()

        }

        ForEach foreach = new ForEach();
        map.forEachKey( foreach );
        TIntList built = foreach.getBuilt();
        TIntList keys = new TIntArrayList( map.keys() );
        assertEquals( keys, built );

        built.sort();
        keys.sort();
        assertEquals( keys, built );
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.