replace switch with conditional expression
replace switch with conditional expression

mruse/beansdb,mashuai/beansdb,mruse/beansdb,donglei/beansdb,mashuai/beansdb,donglei/beansdb,amyvmiwei/beansdb,donglei/beansdb,mashuai/beansdb,mruse/beansdb,mashuai/beansdb,amyvmiwei/beansdb,donglei/beansdb,amyvmiwei/beansdb,amyvmiwei/beansdb,mruse/beansdb