query-by method for field city
@param city the specified attribute
@return an Iterable of DContacts for the specified city
164095
public Iterable<DContact> queryByCity(Object parent, java.lang.String city) {
    return queryByField(parent, DContactMapper.Field.CITY.getFieldName(), city);
  }
223224
public Iterable<BoxMetadataCascadePolicy.Info> getMetadataCascadePolicies(String... fields) {
        Iterable<BoxMetadataCascadePolicy.Info> cascadePoliciesInfo =
                BoxMetadataCascadePolicy.getAll(this.getAPI(), this.getID(), fields);

        return cascadePoliciesInfo;
    }
1226945
public Iterable<DContact> queryByPrimaryCustomIndex(Object parent, java.lang.String primaryCustomIndex) {
    return queryByField(parent, DContactMapper.Field.PRIMARYCUSTOMINDEX.getFieldName(), primaryCustomIndex);
  }
398918
protected Map<String, List<Object>> buildMutableAttributeMap(final Map<String, List<Object>> attributes) {
        final Map<String, List<Object>> mutableValuesBuilder = this.createMutableAttributeMap(attributes.size());

        for (final Map.Entry<String, List<Object>> attrEntry : attributes.entrySet()) {
            final String key = attrEntry.getKey();
            List<Object> value = attrEntry.getValue();

            if (value != null) {
                value = new ArrayList<>(value);
            }

            mutableValuesBuilder.put(key, value);
        }

        return mutableValuesBuilder;
    }
242881
public Iterable<DConnection> queryByUserRoles(java.lang.String userRoles) {
    return queryByField(null, DConnectionMapper.Field.USERROLES.getFieldName(), userRoles);
  }
1360471
def city(self):
        
        pattern = self.random_element(self.city_formats)
        return self.generator.parse(pattern)
26370
public Iterable<DContact> queryByCountry(Object parent, java.lang.String country) {
    return queryByField(parent, DContactMapper.Field.COUNTRY.getFieldName(), country);
  }
589614
def city(anon, obj, field, val):
    
    return anon.faker.city(field=field)
865687
public Iterable<DContact> queryByAddress1(Object parent, java.lang.String address1) {
    return queryByField(parent, DContactMapper.Field.ADDRESS1.getFieldName(), address1);
  }
1257596
private QueryBuilder nestedQueryBuilder(
      List<Attribute> attributePath, QueryBuilder queryBuilder) {
    if (attributePath.size() == 1) {
      return queryBuilder;
    } else if (attributePath.size() == 2) {
      return QueryBuilders.nestedQuery(
          getQueryFieldName(attributePath.get(0)), queryBuilder, ScoreMode.Avg);
    } else {
      throw new UnsupportedOperationException(CANNOT_FILTER_DEEP_REFERENCE_MSG);
    }
  }
672399
@Override
    public List<String> queryForNames() throws Exception
    {
        List<String> names = client.getChildren().forPath(basePath);
        return ImmutableList.copyOf(names);
    }
1261249
public Iterable<DContact> queryByCreatedDate(Object parent, java.util.Date createdDate) {
    return queryByField(parent, DContactMapper.Field.CREATEDDATE.getFieldName(), createdDate);
  }
629811
private Object getAttribute( DBCollection content,
                                 String fieldName ) {
        return content.findOne(HEADER_QUERY).get(fieldName);
    }
353079
public static Insert insert(final CIType _ciType)
    {
        return (Insert) EQL2.insert(_ciType.getType().getName());
    }
1252658
public Iterable<DFactory> queryByUpdatedDate(java.util.Date updatedDate) {
    return queryByField(null, DFactoryMapper.Field.UPDATEDDATE.getFieldName(), updatedDate);
  }
1371556
@Override
    protected String appendAttributeToQuery(final String queryBuilder, final String dataAttribute, final List<Object> queryValues) {
        if (queryBuilder != null) {
            return queryBuilder;
        }

        final String keyAttributeName;
        if (this.queryAttributeName != null) {
            keyAttributeName = this.queryAttributeName;
        } else {
            final IUsernameAttributeProvider usernameAttributeProvider = this.getUsernameAttributeProvider();
            keyAttributeName = usernameAttributeProvider.getUsernameAttribute();
        }

        if (keyAttributeName.equals(dataAttribute)) {
            return String.valueOf(queryValues.get(0));
        }

        return null;
    }
1311807
public Iterable<DConnection> queryByUpdatedBy(java.lang.String updatedBy) {
    return queryByField(null, DConnectionMapper.Field.UPDATEDBY.getFieldName(), updatedBy);
  }