public class Collapse extends Object
场景举例:
app点餐场景下,我想吃八大菜系最火的菜。如果用传统的方法,我们可能需要对8个菜的type进行分别查询最火的菜。 但是我们通过设置Collapse为菜系type,就可以返回8个最火的菜(每个菜系只返回一个,因为Collapse帮我们进行了去重)。一次查询搞定用户的需求。
Collapse
Collapse()
String
getFieldName()
void
setFieldName(String fieldName)
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public Collapse()
public String getFieldName()
public void setFieldName(String fieldName)
Copyright © 2019. All Rights Reserved.