Examples of combine()


Examples of javax.security.auth.SubjectDomainCombiner.combine()

        Principal[] principals = new Principal[] { p };

        ProtectionDomain domain = new ProtectionDomain(source, permissions,
                classLoader, principals);

        pd = combiner.combine(new ProtectionDomain[] { domain }, null);

        assertSame("CodeSource", source, pd[0].getCodeSource());
        assertSame("PermissionCollection", permissions, pd[0]
                .getPermissions());
        assertSame("ClassLoader", classLoader, pd[0].getClassLoader());
View Full Code Here

Examples of javax.security.auth.SubjectDomainCombiner.combine()

        assertEquals("Size", 1, pd[0].getPrincipals().length);
        assertSame("Principal", principal, (pd[0].getPrincipals())[0]);

        // test case: check inherited domains
        pd = combiner.combine(null, new ProtectionDomain[] { domain });
        assertSame("Inherited domain", domain, pd[0]);
    }

    public final void testSecurityException() {
View Full Code Here

Examples of org.apache.commons.collections.ExtendedProperties.combine()

            try {
                File config = new File(props.getProperty("dspace.dir")
                        + "/config/dspace-solr-search.cfg");
                if (config.exists()) {
                    props.combine(new ExtendedProperties(config.getAbsolutePath()));
                } else {
                    ExtendedProperties defaults = new ExtendedProperties();
                    defaults.load(SolrServiceImpl.class.getResourceAsStream("dspace-solr-search.cfg"));
                    props.combine(defaults);
                }
View Full Code Here

Examples of org.apache.giraph.combiner.MinimumIntCombiner.combine()

    IntWritable vertexId = new IntWritable(1);
    IntWritable result = combiner.createInitialMessage();
    combiner.combine(vertexId, result, new IntWritable(39947466));
    combiner.combine(vertexId, result, new IntWritable(199));
    combiner.combine(vertexId, result, new IntWritable(42));
    combiner.combine(vertexId, result, new IntWritable(19998888));
    assertEquals(42, result.get());
  }
}
View Full Code Here

Examples of org.apache.giraph.combiner.MinimumIntCombiner.combine()

    Combiner<IntWritable, IntWritable> combiner =
        new MinimumIntCombiner();

    IntWritable vertexId = new IntWritable(1);
    IntWritable result = combiner.createInitialMessage();
    combiner.combine(vertexId, result, new IntWritable(39947466));
    combiner.combine(vertexId, result, new IntWritable(199));
    combiner.combine(vertexId, result, new IntWritable(42));
    combiner.combine(vertexId, result, new IntWritable(19998888));
    assertEquals(42, result.get());
  }
View Full Code Here

Examples of org.apache.giraph.combiner.MinimumIntCombiner.combine()

        new MinimumIntCombiner();

    IntWritable vertexId = new IntWritable(1);
    IntWritable result = combiner.createInitialMessage();
    combiner.combine(vertexId, result, new IntWritable(39947466));
    combiner.combine(vertexId, result, new IntWritable(199));
    combiner.combine(vertexId, result, new IntWritable(42));
    combiner.combine(vertexId, result, new IntWritable(19998888));
    assertEquals(42, result.get());
  }
}
View Full Code Here

Examples of org.apache.giraph.combiner.MinimumIntCombiner.combine()

    IntWritable vertexId = new IntWritable(1);
    IntWritable result = combiner.createInitialMessage();
    combiner.combine(vertexId, result, new IntWritable(39947466));
    combiner.combine(vertexId, result, new IntWritable(199));
    combiner.combine(vertexId, result, new IntWritable(42));
    combiner.combine(vertexId, result, new IntWritable(19998888));
    assertEquals(42, result.get());
  }
}
View Full Code Here

Examples of org.apache.giraph.combiner.MinimumIntMessageCombiner.combine()

        messageCombiner =
        new MinimumIntMessageCombiner();

    IntWritable vertexId = new IntWritable(1);
    IntWritable result = messageCombiner.createInitialMessage();
    messageCombiner.combine(vertexId, result, new IntWritable(39947466));
    messageCombiner.combine(vertexId, result, new IntWritable(199));
    messageCombiner.combine(vertexId, result, new IntWritable(42));
    messageCombiner.combine(vertexId, result, new IntWritable(19998888));
    assertEquals(42, result.get());
  }
View Full Code Here

Examples of org.apache.giraph.combiner.MinimumIntMessageCombiner.combine()

        new MinimumIntMessageCombiner();

    IntWritable vertexId = new IntWritable(1);
    IntWritable result = messageCombiner.createInitialMessage();
    messageCombiner.combine(vertexId, result, new IntWritable(39947466));
    messageCombiner.combine(vertexId, result, new IntWritable(199));
    messageCombiner.combine(vertexId, result, new IntWritable(42));
    messageCombiner.combine(vertexId, result, new IntWritable(19998888));
    assertEquals(42, result.get());
  }
}
View Full Code Here

Examples of org.apache.hama.examples.MindistSearch.MinTextCombiner.combine()

    Text a = new Text("1");
    Text b = new Text("2");
    Text d = new Text("4");
    Text c = new Text("3");
    List<Text> asList = Arrays.asList(new Text[] { a, b, c, d });
    Text combine = combiner.combine(asList);
    assertEquals(combine, a);
  }

  private void verifyResult() throws IOException {
    FileStatus[] globStatus = fs.globStatus(new Path(OUTPUT + "/part-*"));
 
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.