Examples of rawIterator()


Examples of com.orientechnologies.orient.core.db.record.ORecordLazyList.rawIterator()

            // APPEND STREAMED CONTENT
            iOutput.append(coll.getStreamedContent());
            OProfiler.getInstance().updateCounter("serializer.rec.str.linkList2string.cached", +1);
            it = coll.newItemsIterator();
          } else
            it = coll.rawIterator();
        }

        if (it != null && it.hasNext()) {
          final StringBuilder buffer = new StringBuilder();
          for (int items = 0; it.hasNext(); items++) {
View Full Code Here

Examples of com.orientechnologies.orient.core.db.record.ORecordLazyList.rawIterator()

          coll = new ORecordLazyList(iRecord);
          coll.addAll((Collection<? extends OIdentifiable>) iValue);
          ((Collection<? extends OIdentifiable>) iValue).clear();

          iRecord.field(iName, coll);
          it = coll.rawIterator();
        } else {
          // LAZY LIST
          coll = (ORecordLazyList) iValue;
          if (coll.getStreamedContent() != null) {
            // APPEND STREAMED CONTENT
View Full Code Here

Examples of com.orientechnologies.orient.core.db.record.ORecordLazyList.rawIterator()

            // APPEND STREAMED CONTENT
            iOutput.append(coll.getStreamedContent());
            OProfiler.getInstance().updateCounter("serializer.rec.str.linkList2string.cached", +1);
            it = coll.newItemsIterator();
          } else
            it = coll.rawIterator();
        }

        if (it != null && it.hasNext()) {
          final StringBuilder buffer = new StringBuilder();
          for (int items = 0; it.hasNext(); items++) {
View Full Code Here

Examples of com.orientechnologies.orient.core.db.record.ORecordLazyList.rawIterator()

          coll = new ORecordLazyList(iRecord);
          coll.addAll((Collection<? extends OIdentifiable>) iValue);
          ((Collection<? extends OIdentifiable>) iValue).clear();

          iRecord.field(iName, coll);
          it = coll.rawIterator();
        } else {
          // LAZY LIST
          coll = (ORecordLazyList) iValue;
          if (coll.getStreamedContent() != null) {
            // APPEND STREAMED CONTENT
View Full Code Here

Examples of com.orientechnologies.orient.core.db.record.ORecordLazyList.rawIterator()

            // APPEND STREAMED CONTENT
            iOutput.append(coll.getStreamedContent());
            OProfiler.getInstance().updateCounter("serializer.rec.str.linkList2string.cached", +1);
            it = coll.newItemsIterator();
          } else
            it = coll.rawIterator();
        }

        if (it != null && it.hasNext()) {
          final StringBuilder buffer = new StringBuilder();
          for (int items = 0; it.hasNext(); items++) {
View Full Code Here

Examples of com.orientechnologies.orient.core.db.record.ridbag.ORidBag.rawIterator()

      final ORidBag bag = (ORidBag) fieldValue;

      if (iVertexToRemove != null) {
        // SEARCH SEQUENTIALLY (SLOWER)
        boolean found = false;
        for (Iterator<OIdentifiable> it = bag.rawIterator(); it.hasNext();) {
          final ODocument curr = it.next().getRecord();

          if (iVertexToRemove.equals(curr)) {
            // FOUND AS VERTEX
            it.remove();
View Full Code Here

Examples of com.orientechnologies.orient.core.db.record.ridbag.ORidBag.rawIterator()

        deleteEdgeIfAny(iVertexToRemove);

      } else {

        // DELETE ALL THE EDGES
        for (Iterator<OIdentifiable> it = bag.rawIterator(); it.hasNext();) {
          final OIdentifiable edge = it.next();

          if (iAlsoInverse)
            removeInverseEdge(iVertex, iFieldName, null, edge, useVertexFieldsForEdgeLabels);
View Full Code Here

Examples of com.orientechnologies.orient.core.db.record.ridbag.ORidBag.rawIterator()

    } else if (fieldValue instanceof ORidBag) {
      // COLLECTION OF RECORDS: REMOVE THE ENTRY
      final ORidBag bag = (ORidBag) fieldValue;

      boolean found = false;
      final Iterator<OIdentifiable> it = bag.rawIterator();
      while (it.hasNext()) {
        if (it.next().equals(iVertexToRemove)) {
          // REMOVE THE OLD ENTRY
          found = true;
          it.remove();
View Full Code Here

Examples of com.orientechnologies.orient.core.db.record.ridbag.ORidBag.rawIterator()

    ODocument documentSource = new ODocument();
    documentSource.fromJSON("{FirstName:\"Student A 0\",in_EHasGoodStudents:[#57:0],@fieldTypes:\"in_EHasGoodStudents=g\"}");

    ORidBag bag = documentSource.field("in_EHasGoodStudents");
    Assert.assertEquals(bag.size(), 1);
    OIdentifiable rid = bag.rawIterator().next();
    Assert.assertTrue(rid.getIdentity().getClusterId() == 57);
    Assert.assertTrue(rid.getIdentity().getClusterPosition().intValue() == 0);
  }

  public void testNestedLinkCreation() {
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.