Examples of fieldNames()


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

          for (String fieldName : target.fieldNames())
            if (traverse(iRecord, iRootCondition, iCondition, target.field(fieldName), iLevel + 1, iEvaluatedRecords))
              return true;
        } else if (cfgField.equalsIgnoreCase(OSQLFilterItemFieldAny.FULL_NAME)) {
          // ALL
          for (String fieldName : target.fieldNames())
            if (!traverse(iRecord, iRootCondition, iCondition, target.field(fieldName), iLevel + 1, iEvaluatedRecords))
              return false;
          return true;
        } else {
          if (traverse(iRecord, iRootCondition, iCondition, target.field(cfgField), iLevel + 1, iEvaluatedRecords))
View Full Code Here

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

    OClass linkedClass;
    OType linkedType;
    String fieldClassName;
    int i = 0;

    final Set<String> fieldNamesIterator = iOnlyDelta && record.isTrackingChanges() ? record.getDirtyFields() : record.fieldNames();

    // MARSHALL ALL THE FIELDS OR DELTA IF TRACKING IS ENABLED
    for (String fieldName : fieldNamesIterator) {
      Object fieldValue = record.rawField(fieldName);
      if (i > 0)
View Full Code Here

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

      ODocument rec = (ODocument) currentRecord;
      out.println("--------------------------------------------------");
      out.printf("ODocument - Class: %s   id: %s   v.%d\n", rec.getClassName(), rec.getIdentity().toString(), rec.getVersion());
      out.println("--------------------------------------------------");
      Object value;
      for (String fieldName : rec.fieldNames()) {
        value = rec.field(fieldName);
        if (value instanceof byte[])
          value = "byte[" + ((byte[]) value).length + "]";
        out.printf("%20s : %-20s\n", fieldName, value);
      }
View Full Code Here

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

    // 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
View Full Code Here

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

      ODocument rec = (ODocument) currentRecord;
      out.println("--------------------------------------------------");
      out.printf("ODocument - Class: %s   id: %s   v.%d\n", rec.getClassName(), rec.getIdentity().toString(), rec.getVersion());
      out.println("--------------------------------------------------");
      Object value;
      for (String fieldName : rec.fieldNames()) {
        value = rec.field(fieldName);
        if (value instanceof byte[])
          value = "byte[" + ((byte[]) value).length + "]";
        out.printf("%20s : %-20s\n", fieldName, value);
      }
View Full Code Here

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

      if (!document.getIdentity().equals(anotherDocument.getIdentity()))
        return false;

      final String[] filedNames = document.fieldNames();
      final String[] anotherFieldNames = anotherDocument.fieldNames();

      if (filedNames.length != anotherFieldNames.length)
        return false;

      for (final String fieldName : filedNames) {
View Full Code Here

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

   * Returns the array of configured clusters
   */
  public String[] getClusterNames() {
    synchronized (configuration) {
      final ODocument clusters = configuration.field("clusters");
      return clusters.fieldNames();
    }
  }

  /**
   * Get the document representing the cluster configuration.
View Full Code Here

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

  public List<String> removeMasterServer(final String iServerName) {
    final List<String> changedPartitions = new ArrayList<String>();

    synchronized (configuration) {
      final ODocument clusters = configuration.field("clusters");
      for (String c : clusters.fieldNames()) {
        final List<String> serverList = getOriginalServers(c);
        if (serverList == null)
          continue;

        if (serverList.size() < 2)
View Full Code Here

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

          try {
            if (rec instanceof ODocument) {
              boolean changed = false;

              final ODocument doc = (ODocument) rec;
              for (String fieldName : doc.fieldNames()) {
                final Object fieldValue = doc.rawField(fieldName);

                if (fieldValue instanceof OIdentifiable) {
                  if (fixLink(fieldValue)) {
                    doc.field(fieldName, (OIdentifiable) null);
View Full Code Here

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

      message("\n--------------------------------------------------");
      message("\nODocument - Class: %s   id: %s   v.%s", rec.getClassName(), rec.getIdentity().toString(), rec.getRecordVersion()
          .toString());
      message("\n--------------------------------------------------");
      Object value;
      for (String fieldName : rec.fieldNames()) {
        value = rec.field(fieldName);
        if (value instanceof byte[])
          value = "byte[" + ((byte[]) value).length + "]";
        else if (value instanceof Iterator<?>) {
          final List<Object> coll = new ArrayList<Object>();
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.