在ParseObject中查找最大值

时间:2015-12-04 18:38:42

标签: android parse-platform nosql

我的Parse数据库中有两列。该类称为Nowcast。相关列为LocationWeatherNew YorkLocation Weather下有多个"rainy"条目,有些条目"sunny"中有ParseQuery

我可以写一个Weather来获取纽约特定类型天气最大值的"sunny"数据吗?

例如,如果纽约数据库中有4个"rainy"条目和2个"sunny"条目,我可以编写一个查询来获取纽约的 <div class="col-lg-2"> </div> <div class="col-lg-5"> <div class="panel panel-success"> <div class="panel-heading">Keterangan Badan</div> <div class="panel-body"> <label class="col-sm-2 col-sm-2 control-label">Tinggi Badan</label> <div class="col-sm-10"> <input type="text" class="form-control" name="tinggi_badan" id="tinggi_badan" placeholder="Tinggi Badan"> </div><br><br> <label class="col-sm-2 col-sm-2 control-label">Berat Badan</label> <div class="col-sm-10"> <input type="text" class="form-control" name="berat_badan" id="berat_badan" placeholder="Berat Badan"> </div><br><br> <label class="col-sm-2 col-sm-2 control-label">Jenis Rambut</label> <div class="col-sm-10"> <input type="text" class="form-control" name="alamat" id="alamat" placeholder="Jenis Rambut"> </div><br><br> <label class="col-sm-2 col-sm-2 control-label">Bentuk Wajah</label> <div class="col-sm-10"> <input type="text" class="form-control" name="alamat" id="alamat" placeholder="Bentuk Wajah"> </div><br><br> <label class="col-sm-2 col-sm-2 control-label">Warna Kulit</label> <div class="col-sm-10"> <input type="text" class="form-control" name="warna_kulit" id="warna_kulit" placeholder="Warna Kulit"> </div><br><br> </div> </div> </div> <div class="col-lg-5"> <div class="panel panel-success"> <div class="panel-heading">Keterangan Lainnya</div> <div class="panel-body"> </div> </div> </div> 吗?

1 个答案:

答案 0 :(得分:1)

Parse的查询语言不支持这些聚合查询。您需要查询与纽约匹配的所有对象,并分析客户端上每种类型天气的发生情况。