AngularJS |如何使用多维对象进行排序?

时间:2018-01-05 13:12:05

标签: angularjs angularjs-ng-repeat angularjs-orderby

我想让 DataFrame tempDf = df.sqlContext().sql("SELECT * FROM my_table"); // without repartition, the next transformation will run with 1 task only. JavaRDD<IMSSummaryPOJO> inputData = tempDf.toJavaRDD().flatMap(new FlatMapFunction<Row, IMSSummaryPOJO>() { //map operation }).repartition(repartition); // Even though i've extra executors, if the previous transformation(inputData) is not repartitioned, then this transformation runs with single task. JavaPairRDD<Text,IMSMetric> inputRecordRdd = inputData.flatMapToPair(new IMSInputRecordFormat(dimensionName,hllCounterPValue,hllCounterKValue,dimensionConfigMapBroadCast)); ng-repeat排序,我该如何编写表达式?

rank

1 个答案:

答案 0 :(得分:1)

Order by只能应用于数组而不能应用于对象。您必须将对象转换为数组或创建自己的过滤器:https://justinklemm.com/angularjs-filter-ordering-objects-ngrepeat/