def test_long_sum_with_attribute_path(self): sum_ = self.map.aggregate(long_sum("this")) self.assertEqual(1225, sum_)
def test_long_sum(self): sum_ = self.map.aggregate(long_sum()) self.assertEqual(1225, sum_)
), "InstanceOfPredicate": predicate.instance_of( "com.hazelcast.nio.serialization.compatibility.CustomStreamSerializable" ), "DistinctValuesAggregator": aggregator.distinct(_sql_string), "MaxAggregator": aggregator.max_(_sql_string), "MaxByAggregator": aggregator.max_by(_sql_string), "MinAggregator": aggregator.min_(_sql_string), "MinByAggregator": aggregator.min_by(_sql_string), "CountAggregator": aggregator.count(_sql_string), "NumberAverageAggregator": aggregator.number_avg(_sql_string), "IntegerAverageAggregator": aggregator.int_avg(_sql_string), "LongAverageAggregator": aggregator.long_avg(_sql_string), "DoubleAverageAggregator": aggregator.double_avg(_sql_string), "IntegerSumAggregator": aggregator.int_sum(_sql_string), "LongSumAggregator": aggregator.long_sum(_sql_string), "DoubleSumAggregator": aggregator.double_sum(_sql_string), "FixedSumAggregator": aggregator.fixed_point_sum(_sql_string), "FloatingPointSumAggregator": aggregator.floating_point_sum(_sql_string), "SingleAttributeProjection": projection.single_attribute(_sql_string), "MultiAttributeProjection": projection.multi_attribute( _sql_string, _sql_string, _sql_string ), "IdentityProjection": projection.identity(), } ) _SKIP_ON_SERIALIZE = { "Character", "Float", "boolean[]",
def test_long_sum_with_predicate(self): sum_ = self.map.aggregate(long_sum(), greater_or_equal("this", 47)) self.assertEqual(144, sum_)
"MinByAggregator": aggregator.min_by(_sql_string), "CountAggregator": aggregator.count(_sql_string), "NumberAverageAggregator": aggregator.number_avg(_sql_string), "IntegerAverageAggregator": aggregator.int_avg(_sql_string), "LongAverageAggregator": aggregator.long_avg(_sql_string), "DoubleAverageAggregator": aggregator.double_avg(_sql_string), "IntegerSumAggregator": aggregator.int_sum(_sql_string), "LongSumAggregator": aggregator.long_sum(_sql_string), "DoubleSumAggregator": aggregator.double_sum(_sql_string), "FixedSumAggregator": aggregator.fixed_point_sum(_sql_string), "FloatingPointSumAggregator": aggregator.floating_point_sum(_sql_string), "SingleAttributeProjection": projection.single_attribute(_sql_string), "MultiAttributeProjection": projection.multi_attribute(_sql_string, _sql_string, _sql_string), "IdentityProjection": projection.identity(), }) _SKIP_ON_SERIALIZE = {