Backendless API中定义的BackendlessCollection.getTotalObjects()在哪里

时间:2016-08-18 17:00:09

标签: backendless

BackendlessCollection的属性getTotalObjects()在此示例中使用,但我无法在GitHub SDK或供应商站点上找到对它的引用。

public void handleResponse( BackendlessCollection<Restaurant> restaurants )
        {
            if( firstResponse )
            {
                System.out.println( "Total restaurants - " + 
                restaurants.getTotalObjects() );

https://backendless.com/feature-17-data-paging-or-how-to-efficiently-load-large-data-sets-in-a-mobile-app/

1 个答案:

答案 0 :(得分:0)

它在AbstractBackendlessCollection类中定义。将来的SDK版本中将删除“getTotalObjects()”方法,它将替换为一个单独的API方法,用于计算查询的对象数。