Examples of map()


Examples of speculoos.core.Mapper.map()

    manager.start();
    Map env = new HashMap();
    env.put("groupname", "Directory Administrators");
    // create filter object
    Mapper jm = manager.getMapper("usersInGroup");
    List l = (List)jm.map(null, env);
    assertEquals(4,l.size());
    /* check correctness of DNs with round trip query */
    Person p = (Person)l.get(0);
    System.err.println("DN="+p.getDN());
    Mapper sm = manager.getMapper("searchUserRoot");
View Full Code Here

Examples of speculoos.jndi.mappers.SearchMapperImpl.map()

    /* populate input */
    Personne input = new Personne();
    input.setName("NAQUIN");
    input.setSurname("thiery");
    sm.setOutput(Personne.class,h);
    sm.map(input, null);
    src.release(sm);
    try {
      src.release(sm);
    } catch (Exception e) {
      fail("Multiple releases should not throw exceptions");
View Full Code Here

Examples of voldemort.store.readonly.io.MappedFileReader.map()

            MappedFileReader idxFileReader = null;
            try {
                idxFileReader = new MappedFileReader(index);
                mappedIndexFileReader.add(idxFileReader);
                indexFiles.add(idxFileReader.map(enforceMlock));
            } catch(IOException e) {

                logger.error("Error in mlock", e);
            }
View Full Code Here

Examples of weka.core.matrix.DoubleVector.map()

    if( Math.abs(x) > 10 ) return x; // pratical consideration; modify later
    DoubleVector d =
    Maths.dnormLog( x, mixingDistribution.getPointValues(), 1 );
   
    d.minusEquals( d.max() );
    d = d.map("java.lang.Math", "exp");
    d.timesEquals( mixingDistribution.getFunctionValues() );
    return mixingDistribution.getPointValues().innerProduct( d ) / d.sum();
  }

  /**
 
View Full Code Here

Examples of xerial.larray.LIntArray.map()

            System.out.println(String.format("l(%d) = %d", index, (Integer)e));
            index += 1;
        }

        // manipulate LArray
        LIterator<?> l2 = l.map(new AbstractFunction1<Object, Object>(){
            public Object apply(Object v1) {
                return Integer.class.cast(v1) * 10;
            }
        });
        LIterator<?> f = l.filter(new AbstractFunction1<Object, Object>(){
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.