Examples of ORID


Examples of com.orientechnologies.orient.core.id.ORID

    checkConnection();

    do {

      try {
        final ORID rid = iRecord.getIdentity();

        final OChannelBinaryClient network = beginRequest(OChannelBinaryProtocol.REQUEST_INDEX_PUT);
        try {
          network.writeString(iKey);
          network.writeByte(iRecord.getRecordType());
View Full Code Here

Examples of com.orientechnologies.orient.core.id.ORID

        doc.setClassName("Chunk");
        doc.field("hash", "key" + Integer.toString(i));
        doc.field("binary", new ORecordBytes(database, data));
        doc.save();

        ORID rid = doc.getIdentity();
        if (i % 100 == 0)
          System.out.println("ORID=" + rid);
      }
    } finally {
      database.close();
View Full Code Here

Examples of com.orientechnologies.orient.core.id.ORID

    newDoc.field("embeddedList", list, OType.EMBEDDEDLIST);
    list.add(new ODocument().field("name", "Luca"));
    list.add(new ODocument(database, "Account").field("name", "Marcus"));

    database.save(newDoc);
    final ORID rid = newDoc.getIdentity();

    database.close();

    database = ODatabaseDocumentPool.global().acquire(url, "admin", "admin");
View Full Code Here

Examples of com.orientechnologies.orient.core.id.ORID

    newDoc.field("linkedList", list, OType.LINKLIST);
    list.add(new ODocument().field("name", "Luca"));
    list.add(new ODocument(database, "Account").field("name", "Marcus"));

    database.save(newDoc);
    final ORID rid = newDoc.getIdentity();

    database.close();

    database = ODatabaseDocumentPool.global().acquire(url, "admin", "admin");
View Full Code Here

Examples of com.orientechnologies.orient.core.id.ORID

    newDoc.field("embeddedSet", set, OType.EMBEDDEDSET);
    set.add(new ODocument().field("name", "Luca"));
    set.add(new ODocument(database, "Account").field("name", "Marcus"));

    database.save(newDoc);
    final ORID rid = newDoc.getIdentity();

    database.close();

    database = ODatabaseDocumentPool.global().acquire(url, "admin", "admin");
View Full Code Here

Examples of com.orientechnologies.orient.core.id.ORID

    newDoc.field("linkedSet", set, OType.LINKSET);
    set.add(new ODocument().field("name", "Luca"));
    set.add(new ODocument(database, "Account").field("name", "Marcus"));

    database.save(newDoc);
    final ORID rid = newDoc.getIdentity();

    database.close();

    database = ODatabaseDocumentPool.global().acquire(url, "admin", "admin");
View Full Code Here

Examples of com.orientechnologies.orient.core.id.ORID

    map.put("Luca", new ODocument().field("name", "Luca"));
    map.put("Marcus", new ODocument().field("name", "Marcus"));
    map.put("Cesare", new ODocument(database, "Account").field("name", "Cesare"));

    database.save(newDoc);
    final ORID rid = newDoc.getIdentity();

    database.close();

    database = ODatabaseDocumentPool.global().acquire(url, "admin", "admin");
View Full Code Here

Examples of com.orientechnologies.orient.core.id.ORID

    final Map<String, ODocument> map = new HashMap<String, ODocument>();
    newDoc.field("embeddedMap", map, OType.EMBEDDEDMAP);

    database.save(newDoc);
    final ORID rid = newDoc.getIdentity();

    database.close();

    database = ODatabaseDocumentPool.global().acquire(url, "admin", "admin");
View Full Code Here

Examples of com.orientechnologies.orient.core.id.ORID

    map.put("Luca", new ODocument().field("name", "Luca"));
    map.put("Marcus", new ODocument().field("name", "Marcus"));
    map.put("Cesare", new ODocument(database, "Account").field("name", "Cesare"));

    database.save(newDoc);
    final ORID rid = newDoc.getIdentity();

    database.close();

    database = ODatabaseDocumentPool.global().acquire(url, "admin", "admin");
View Full Code Here

Examples of com.orientechnologies.orient.core.id.ORID

    long totalRecords = 0;

    System.out.print("\nImporting records...");

    ORID rid;
    int lastClusterId = -1;
    long clusterRecords = 0;
    while (jsonReader.lastChar() != ']') {
      rid = importRecord();

      if (rid != null) {
        ++clusterRecords;

        if (rid.getClusterId() != lastClusterId || jsonReader.lastChar() == ']') {
          // CHANGED CLUSTERID: DUMP STATISTICS
          System.out.print("\n- Imported records into the cluster '" + database.getClusterNameById(lastClusterId) + "': "
              + clusterRecords + " records");
          clusterRecords = 0;
          lastClusterId = rid.getClusterId();
        }

        ++totalRecords;
      } else
        lastClusterId = 0;
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.