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

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


      if (subSet != null) {
        for (Entry<Object, Set<OIdentifiable>> v : subSet.entrySet()) {
          for (OIdentifiable id : v.getValue()) {
            final ODocument document = new ODocument();
            document.field("key", v.getKey());
            document.field("rid", id.getIdentity());
            document.unsetDirty();
            result.add(document);
          }
        }
      }
View Full Code Here


      final ONavigableMap<Object, Set<OIdentifiable>> subSet = map.headMap(toKey, isInclusive);
      if (subSet != null) {
        for (Entry<Object, Set<OIdentifiable>> v : subSet.entrySet()) {
          for (OIdentifiable id : v.getValue()) {
            final ODocument document = new ODocument();
            document.field("key", v.getKey());
            document.field("rid", id.getIdentity());
            document.unsetDirty();
            result.add(document);
          }
        }
View Full Code Here

      if (subSet != null) {
        for (Entry<Object, Set<OIdentifiable>> v : subSet.entrySet()) {
          for (OIdentifiable id : v.getValue()) {
            final ODocument document = new ODocument();
            document.field("key", v.getKey());
            document.field("rid", id.getIdentity());
            document.unsetDirty();
            result.add(document);
          }
        }
      }
View Full Code Here

    Random random = new Random(1000);

    for (int i = 0; i < TOT; ++i) {
      doc.reset();
      doc.setClassName("Whiz");
      doc.field("id", i);
      doc.field("date", new Date());

      text.setLength(0);
      for (int w = 0; w < 10; ++w) {
        if (w > 0)
View Full Code Here

    for (int i = 0; i < TOT; ++i) {
      doc.reset();
      doc.setClassName("Whiz");
      doc.field("id", i);
      doc.field("date", new Date());

      text.setLength(0);
      for (int w = 0; w < 10; ++w) {
        if (w > 0)
          text.append(' ');
View Full Code Here

      final ONavigableMap<Object, Set<OIdentifiable>> subSet = map.subMap(iRangeFrom, iInclusive, iRangeTo, iInclusive);
      if (subSet != null) {
        for (Entry<Object, Set<OIdentifiable>> v : subSet.entrySet()) {
          for (OIdentifiable id : v.getValue()) {
            final ODocument document = new ODocument();
            document.field("key", v.getKey());
            document.field("rid", id.getIdentity());
            document.unsetDirty();
            result.add(document);
          }
        }
View Full Code Here

        if (w > 0)
          text.append(' ');
        text.append(words[random.nextInt(words.length - 1)]);
      }

      doc.field("text", text.toString());

      doc.save();
    }

    database.close();
View Full Code Here

      if (subSet != null) {
        for (Entry<Object, Set<OIdentifiable>> v : subSet.entrySet()) {
          for (OIdentifiable id : v.getValue()) {
            final ODocument document = new ODocument();
            document.field("key", v.getKey());
            document.field("rid", id.getIdentity());
            document.unsetDirty();
            result.add(document);
          }
        }
      }
View Full Code Here

    for (int i = 0; i < 10000; ++i) {
      point.reset();
      point.setClassName("MapPoint");

      point.field("x", (52.20472d + i / 100d));
      point.field("y", (0.14056d + i / 100d));

      point.save();
    }
View Full Code Here

    for (int i = 0; i < 10000; ++i) {
      point.reset();
      point.setClassName("MapPoint");

      point.field("x", (52.20472d + i / 100d));
      point.field("y", (0.14056d + i / 100d));

      point.save();
    }

    database.close();
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.