Examples of makeKey()


Examples of com.thinkaurelius.titan.graphdb.blueprints.TitanBlueprintsGraph.makeKey()

    public void testCompetingThreads() {
        TitanBlueprintsGraph graph = (TitanBlueprintsGraph) graphTest.generateGraph();
        //Need to define types before hand to avoid deadlock in transactions

        graph.makeLabel("friend").make();
        graph.makeKey("test").dataType(Long.class).make();
        graph.makeKey("blah").dataType(Float.class).make();
        graph.makeKey("bloop").dataType(Integer.class).make();


        graph.commit();
View Full Code Here

Examples of com.thinkaurelius.titan.graphdb.blueprints.TitanBlueprintsGraph.makeKey()

        TitanBlueprintsGraph graph = (TitanBlueprintsGraph) graphTest.generateGraph();
        //Need to define types before hand to avoid deadlock in transactions

        graph.makeLabel("friend").make();
        graph.makeKey("test").dataType(Long.class).make();
        graph.makeKey("blah").dataType(Float.class).make();
        graph.makeKey("bloop").dataType(Integer.class).make();


        graph.commit();
        graph.shutdown();
View Full Code Here

Examples of com.thinkaurelius.titan.graphdb.blueprints.TitanBlueprintsGraph.makeKey()

        //Need to define types before hand to avoid deadlock in transactions

        graph.makeLabel("friend").make();
        graph.makeKey("test").dataType(Long.class).make();
        graph.makeKey("blah").dataType(Float.class).make();
        graph.makeKey("bloop").dataType(Integer.class).make();


        graph.commit();
        graph.shutdown();
        super.testCompetingThreads();
View Full Code Here

Examples of com.thinkaurelius.titan.graphdb.database.StandardTitanGraph.makeKey()

    @Test
    public void testValueOrdering() {
        StandardTitanGraph graph = (StandardTitanGraph) StorageSetup.getInMemoryGraph();
        TitanLabel father = graph.makeLabel("father").manyToOne().make();
        for (int i=1;i<=5;i++) graph.makeKey("key"+i).single().dataType(Integer.class).make();

        TitanVertex v1 = graph.addVertex(null), v2 = graph.addVertex(null);
        TitanEdge e1 = v1.addEdge("father",v2);
        for (int i=1;i<=5;i++) e1.setProperty("key"+i,i);
View Full Code Here

Examples of gnu.javax.crypto.cipher.DES.makeKey()

    for (i = 0; i < DES.WEAK_KEYS.length; i++)
      {
        msg = "detecting weak key 0x" + Util.dumpString(DES.WEAK_KEYS[i]);
        try
          {
            des.makeKey(DES.WEAK_KEYS[i], DES.KEY_SIZE);
            harness.fail(msg);
          }
        catch (WeakKeyException x)
          {
            harness.check(true, msg);
View Full Code Here

Examples of gnu.javax.crypto.cipher.DES.makeKey()

      {
        msg = "detecting semi-weak key 0x"
              + Util.dumpString(DES.SEMIWEAK_KEYS[i]);
        try
          {
            des.makeKey(DES.SEMIWEAK_KEYS[i], DES.KEY_SIZE);
            harness.fail(msg);
          }
        catch (WeakKeyException x)
          {
            harness.check(true, msg);
View Full Code Here

Examples of gnu.javax.crypto.cipher.DES.makeKey()

      {
        msg = "detecting possible weak key 0x"
              + Util.dumpString(DES.POSSIBLE_WEAK_KEYS[i]);
        try
          {
            des.makeKey(DES.POSSIBLE_WEAK_KEYS[i], DES.KEY_SIZE);
            harness.fail(msg);
          }
        catch (WeakKeyException x)
          {
            harness.check(true, msg);
View Full Code Here

Examples of net.windwards.dnsfrontend.api.Backend.makeKey()

        if (backend == null) {
            this.refuse();
            return;
        }

        this.ident = backend.makeKey(question);

        logger.debug("Checking cache [key={}]", this.ident);

        // check cache
        Element lmnt = this.cache.get(this.getIdent());
View Full Code Here

Examples of net.windwards.dnsfrontend.api.Backend.makeKey()

            pack.task.timeout();
            return;
        }

        Backend backend = this.repo.lookup(record.getType());
        String key = backend.makeKey(record);
        pack = this.futures.remove(key);

        if (pack == null) {
            logger.info("Unsolicited cache insert [key={}, record={}]", key, record);
            return;
View Full Code Here

Examples of org.lab41.dendrite.metagraph.DendriteGraph.makeKey()

                      response.put("status", "error");
                      response.put("msg", "unknown type '" + type + "'");
                      return new ResponseEntity<>(response, HttpStatus.NOT_FOUND);
                  }

                  graph.makeKey(key)
                          .dataType(cls)
                          .indexed(Vertex.class)
                          .indexed(DendriteGraph.INDEX_NAME, Vertex.class, parameters.toArray(new Parameter[parameters.size()]))
                          .make();
              }
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.