Examples of values()


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

            // Assume for now that this will be the result.
            result = headers;

            // Check to see if we actually need to localize anything
            boolean localize = false;
            for (Iterator it = headers.values().iterator(); !localize && it.hasNext(); )
            {
                if (((String) it.next()).startsWith("%"))
                {
                    localize = true;
                }
View Full Code Here

Examples of org.apache.gora.persistency.StatefulHashMap.values()

      StatefulHashMap map = (StatefulHashMap)value;
      if (map.size() == 0) {
        serializer = ByteBufferSerializer.get();
      }
      else {
        Object value0 = map.values().iterator().next();
        Schema schema = TypeUtils.getSchema(value0);
        serializer = StatefulHashMapSerializer.get(schema);
      }
    } else {
      serializer = SerializerTypeInferer.getSerializer(value);
View Full Code Here

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

    Scanner s = table.getScanner(columns);
    try {
      int index = 0;
      RowResult r = null;
      while ((r = s.next()) != null) {
        for (Cell c: r.values()) {
          times[index++] = c.getTimestamp();
        }
      }
    } finally {
      s.close();
View Full Code Here

Examples of org.apache.hadoop.mapreduce.v2.hs.HistoryFileManager.JobIdHistoryFileInfoMap.values()

    NavigableSet<JobId> set = mapWithSize.navigableKeySet();
    assertEquals("Incorrect navigableKeySet()", 1, set.size());
    assertTrue("Incorrect navigableKeySet()", set.contains(jobId));

    // check values()
    Collection<HistoryFileInfo> values = mapWithSize.values();
    assertEquals("Incorrect values()", 1, values.size());
    assertTrue("Incorrect values()", values.contains(fileInfo1));
  }
}
View Full Code Here

Examples of org.apache.hadoop.mapreduce.v2.hs.HistoryFileManager.JobListCache.values()

    Mockito.when(fileInfo.getJobId()).thenReturn(jobId);

    cache.addIfAbsent(fileInfo);
    cache.addIfAbsent(fileInfo);
    assertEquals("Incorrect number of cache entries", 1,
        cache.values().size());
  }

  @Test (timeout = 1000)
  public void testEviction() throws InterruptedException {
    int maxSize = 2;
View Full Code Here

Examples of org.apache.karaf.shell.api.action.Completion.values()

                Argument argument = field.getAnnotation(Argument.class);
                multi = (argument != null && argument.multiValued());
                Completion ann = field.getAnnotation(Completion.class);
                if (ann != null) {
                    Class<?> clazz = ann.value();
                    String[] value = ann.values();
                    if (clazz != null) {
                        if (value.length > 0 && clazz == StringsCompleter.class) {
                            completer = new StringsCompleter(value, ann.caseSensitive());
                        } else {
                            completer = command.getCompleter(clazz);
View Full Code Here

Examples of org.apache.ldap.common.util.MultiMap.values()

                return map.remove( arg0 );
            }

            public Collection values()
            {
                return map.values();
            }

            public boolean isEmpty()
            {
                return map.isEmpty();
View Full Code Here

Examples of org.apache.mahout.vectorizer.encoders.Dictionary.values()

        newsGroups.intern(newsgroup.getName());
        files.addAll(Arrays.asList(newsgroup.listFiles()));
      }
    }
    System.out.printf("%d test files\n", files.size());
    ResultAnalyzer ra = new ResultAnalyzer(newsGroups.values(), "DEFAULT");
    for (File file : files) {
      String ng = file.getParentFile().getName();

      int actual = newsGroups.intern(ng);
      NewsgroupHelper helper = new NewsgroupHelper();
View Full Code Here

Examples of org.apache.myfaces.mc.test.core.annotation.ManagedBeans.values()

            {
                if (facesConfig == null)
                {
                    facesConfig = new org.apache.myfaces.config.impl.digester.elements.FacesConfigImpl();
                }
                for (PageBean annoPageBean : annoManagedBeans.values())
                {
                    org.apache.myfaces.config.impl.digester.elements.ManagedBeanImpl bean = new
                        org.apache.myfaces.config.impl.digester.elements.ManagedBeanImpl();
                    bean.setBeanClass(annoPageBean.clazz().getName());
                    bean.setName(annoPageBean.name() == null ? annoPageBean.clazz().getName() : annoPageBean.name());
View Full Code Here

Examples of org.apache.nutch.crawl.MapWritable.values()

      assertEquals(i, map.size());
      map.put(key, value);
      assertEquals(value, map.get(key));
      assertFalse(map.isEmpty());
      assertTrue(map.keySet().contains(key));
      assertEquals(i + 1, map.values().size());
      assertTrue(map.values().contains(value));
    }
    testWritable(map);
    MapWritable map2 = new MapWritable();
    testWritable(map2);
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.