Package com.orientechnologies.orient.core.record.impl

Examples of com.orientechnologies.orient.core.record.impl.ODocument.reset()


      }

      ODocument doc = new ODocument("Chunk");

      for (int i = 0; i < count; i++) {
        doc.reset();
        doc.setClassName("Chunk");
        doc.field("hash", "key" + Integer.toString(i));
        doc.field("binary", new ORecordBytes(database, data));
        doc.save();
View Full Code Here


    long time = System.currentTimeMillis();

    final ODocument document = new ODocument("Employee");
    for (int i = 0; i < DOCUMENTS; ++i) {
      document.reset();
      document.field("name", "Jay");
      document.field("surname", "Miner");
      document
          .field("description",
              "Jay Glenn Miner (May 31, 1932 to June 20, 1994), was a famous integrated circuit designer, known primarily for his "
View Full Code Here

          db.begin(TXTYPE.NOTX);
          int ktxn;
          for (ktxn = 0; ktxn < 10; ktxn++) {
            int ksave;
            for (ksave = 0; ksave < 1000; ++ksave) {
              foo.reset();
              foo.setClassName(CLASSNAME);
              foo.field(PROPKEY, PROPVAL);
              db.save(foo);
            }
            savecount += ksave;
View Full Code Here

      doc.field("val4", 255);
      doc.field("val5", "this is the description for a long comic books -" + i);
      doc.field("name", "this is secmask put on top - " + i);
      doc.setClassName("Account");
      doc.save();
      doc.reset();
      if (i % 100000 == 0) {
        double time = (double) (System.nanoTime() - block) / 1000000;
        System.out.println(i * 100 / ndoc + "%.\t" + time + "\t" + 100000.0d / time + " docs/ms");
        block = System.nanoTime();
      }
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.