plugins/tech/neo4j/src/main/java/org/apache/hop/neo4j/model/validation/ModelValidator.java
private int validateNodePropertyIndexed(
      ILogChannel log, GraphNode node, GraphProperty property, boolean unique) {
    int nrErrors = 0;
    boolean found = false;
    for (IndexDetails indexDetails : indexesList) {
      if (!unique || "UNIQUE".equalsIgnoreCase(indexDetails.getUniqueness())) {
        for (String label : node.getLabels()) {
          if (indexDetails.getLabelsOrTypes().contains(label)) {
            if (indexDetails.getProperties().contains(property.getName())) {
              found = true;
            }
          }
        }
      }
    }
    if (!found) {
      log.logError(
          "Property '"
              + property.getName()
              + "' of node '"
              + node.getName()
              + "' doesn't seem to be "
              + (unique ? "uniquely " : "")
              + "indexed.");
      nrErrors++;
    }

    return nrErrors;
  }
/**
   * See if the specified node property is indexes. If it's not, write an error to the log and
   * return true
   *
   * @param log
   * @param node
   * @param property
   * @return the number of validation errors.
   */
See if the specified node property is indexes. If it's not, write an error to the log and
return true

@param log
@param node
@param property
@return the number of validation errors.
See if the specified node property is indexes . If it ' s not write an error to the log and return true @param log @param node @param property @return the number of validation errors .
private int validateNodePropertyIndexed(
      ILogChannel log, GraphNode node, GraphProperty property, boolean unique) {
    int nrErrors = 0;
    boolean found = false;
    for (IndexDetails indexDetails : indexesList) {
      if (!unique || "UNIQUE".equalsIgnoreCase(indexDetails.getUniqueness())) {
        for (String label : node.getLabels()) {
          if (indexDetails.getLabelsOrTypes().contains(label)) {
            if (indexDetails.getProperties().contains(property.getName())) {
              found = true;
            }
          }
        }
      }
    }
    if (!found) {
      log.logError(
          "Property '"
              + property.getName()
              + "' of node '"
              + node.getName()
              + "' doesn't seem to be "
              + (unique ? "uniquely " : "")
              + "indexed.");
      nrErrors++;
    }
    return nrErrors;
  }
private int validateNodePropertyIndexed ( ILogChannel log , GraphNode node , GraphProperty property , boolean unique ) { int nrErrors = 0 ; boolean found = false ; for ( IndexDetails indexDetails : indexesList ) { if ( ! unique || "UNIQUE" . equalsIgnoreCase ( indexDetails . getUniqueness ( ) ) ) { for ( String label : node . getLabels ( ) ) { if ( indexDetails . getLabelsOrTypes ( ) . contains ( label ) ) { if ( indexDetails . getProperties ( ) . contains ( property . getName ( ) ) ) { found = true ; } } } } } if ( ! found ) { log . logError ( "Property '" + property . getName ( ) + "' of node '" + node . getName ( ) + "' doesn't seem to be " + ( unique ? "uniquely " : "" ) + "indexed." ) ; nrErrors ++ ; } return nrErrors ; }
See if the specified node property is indexes.
See if the specified node property is indexes .