如何查询字段为RealmList<RealmString>
的记录是不是空的?有可能还是我必须遍历所有记录?
public class Type extends RealmObject {
private boolean isSearchable;
private RealmList<RealmString> types = new RealmList<>();
}
如何查询Realm DB得到非空类型的记录?
最佳答案
List<Type> recordsWithNoEmptyTypes = Realm.getDefaultInstance()
.where(Type.class)
.isNotEmpty("types")
.findAll();
关于Android - 在 Realm DB 中如何查询 RealmList<RealmString> 不为空的记录?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33336764/