Examples of field()


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

    final ODocument database = clusterDbConfigurations.get(iDatabaseName);
    if (database == null)
      return null;

    final ODocument clusters = database.field("clusters");
    return (ODocument) (clusters.containsField(iClusterName) ? clusters.field(iClusterName) : clusters.field("*"));
  }

  /**
   * Distributed the request to all the configured nodes. Each node has the responsibility to bring the message early (synch-mode)
   * or using an asynchronous queue.
View Full Code Here

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

    final ODocument database = clusterDbConfigurations.get(iDatabaseName);
    if (database == null)
      return null;

    final ODocument clusters = database.field("clusters");
    return (ODocument) (clusters.containsField(iClusterName) ? clusters.field(iClusterName) : clusters.field("*"));
  }

  /**
   * Distributed the request to all the configured nodes. Each node has the responsibility to bring the message early (synch-mode)
   * or using an asynchronous queue.
View Full Code Here

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

      if (servers == null)
        return;

      nodeList = new HashMap<ODistributedServerNodeRemote, ODistributedServerNodeRemote.SYNCH_TYPE>();
      if (servers.field("synch") != null)
        for (String s : (Collection<String>) servers.field("synch")) {
          nodeList.put(nodes.get(s), ODistributedServerNodeRemote.SYNCH_TYPE.SYNCHRONOUS);
        }
      if (servers.field("asynch") != null)
        for (String s : (Collection<String>) servers.field("asynch")) {
View Full Code Here

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

      if (servers == null)
        return;

      nodeList = new HashMap<ODistributedServerNodeRemote, ODistributedServerNodeRemote.SYNCH_TYPE>();
      if (servers.field("synch") != null)
        for (String s : (Collection<String>) servers.field("synch")) {
          nodeList.put(nodes.get(s), ODistributedServerNodeRemote.SYNCH_TYPE.SYNCHRONOUS);
        }
      if (servers.field("asynch") != null)
        for (String s : (Collection<String>) servers.field("asynch")) {
          nodeList.put(nodes.get(s), ODistributedServerNodeRemote.SYNCH_TYPE.ASYNCHRONOUS);
View Full Code Here

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

      nodeList = new HashMap<ODistributedServerNodeRemote, ODistributedServerNodeRemote.SYNCH_TYPE>();
      if (servers.field("synch") != null)
        for (String s : (Collection<String>) servers.field("synch")) {
          nodeList.put(nodes.get(s), ODistributedServerNodeRemote.SYNCH_TYPE.SYNCHRONOUS);
        }
      if (servers.field("asynch") != null)
        for (String s : (Collection<String>) servers.field("asynch")) {
          nodeList.put(nodes.get(s), ODistributedServerNodeRemote.SYNCH_TYPE.ASYNCHRONOUS);
        }

    } finally {
View Full Code Here

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

      if (servers.field("synch") != null)
        for (String s : (Collection<String>) servers.field("synch")) {
          nodeList.put(nodes.get(s), ODistributedServerNodeRemote.SYNCH_TYPE.SYNCHRONOUS);
        }
      if (servers.field("asynch") != null)
        for (String s : (Collection<String>) servers.field("asynch")) {
          nodeList.put(nodes.get(s), ODistributedServerNodeRemote.SYNCH_TYPE.ASYNCHRONOUS);
        }

    } finally {
      lock.releaseSharedLock();
View Full Code Here

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

    // MERGE CONFIG
    final ODocument cfgDoc = new ODocument().fromJSON(iServerClusterConfiguration);

    Object fieldValue;
    for (String fieldName : cfgDoc.fieldNames()) {
      fieldValue = cfgDoc.field(fieldName);

      ODocument clusterConfig = clusters.field(fieldName);
      if (clusterConfig == null)
        // GET THE CONFIG OF THE NEW SERVER
        clusterConfig = (ODocument) fieldValue;
View Full Code Here

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

      final ONavigableMap<Object, Set<OIdentifiable>> subSet = map.tailMap(fromKey, 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

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

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

      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
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.