Is it possible to have a computed property on Google App Engine using Java?

前端 未结 2 959
遥遥无期
遥遥无期 2021-01-07 13:46

I have an app engine application and I want to run a query that sorts the result based on a expression involving two properties. Best way I thought of doing it so far is to

2条回答
  •  一向
    一向 (楼主)
    2021-01-07 14:40

    You can create an index which involves multiple properties. Something like this:

    class X{
       @Indexed public String a;
       @Indexed public String b;
    }
    
    
        
        
    
    

    Read more about it here: https://cloud.google.com/appengine/docs/java/config/indexconfig

提交回复
热议问题