Oracle® Fusion Middleware C++ API Reference for Oracle Coherence
12c (12.1.3.0.0)

E47891-01

AbstractInteger64Aggregator Class Reference

#include <coherence/util/aggregator/AbstractInteger64Aggregator.hpp>

Inherits AbstractAggregator.

Inherited by Integer64Max, Integer64Min, and Integer64Sum.

List of all members.


Detailed Description

Abstract aggregator that processes numeric values extracted from a set of entries in a Map.

All the extracted Number objects will be treated as int64_t values and the result of the aggregator is a Integer64. If the set of entries is empty, a NULL result is returned.

Author:
djl 2008.05.09

Public Types

typedef spec::Handle Handle
 AbstractInteger64Aggregator Handle definition.
typedef spec::View View
 AbstractInteger64Aggregator View definition.
typedef spec::Holder Holder
 AbstractInteger64Aggregator Holder definition.

Protected Member Functions

 AbstractInteger64Aggregator (String::View vsMethod)
 Construct an AbstractInteger64Aggregator that will aggregate values extracted from a set of InvocableMap::Entry objects.
virtual void init (bool fFinal)
 Initialize the aggregation result.

Parameters:
fFinal true is passed if the aggregation process that is being initialized must produce a final aggregation result; this will only be false if a parallel approach is being used and the initial (partial) aggregation process is being initialized

virtual Object::Holder finalizeResult (bool fFinal)
 Obtain the result of the aggregation.

If the fFinal parameter is true, the returned object must be the final result of the aggregation; otherwise, the returned object will be treated as a partial result that should be incorporated into the final result.

Parameters:
fFinal true to indicate that the final result of the aggregation process should be returned; this will only be false if a parallel approach is being used
Returns:
the result of the aggregation process


Protected Attributes

int32_t m_count
 The count of processed entries.
int64_t m_lResult
 The running result value.

Constructor & Destructor Documentation

AbstractInteger64Aggregator ( String::View  vsMethod  )  [protected]

Construct an AbstractInteger64Aggregator that will aggregate values extracted from a set of InvocableMap::Entry objects.

Parameters:
vsMethod the name of the method that could be invoked via reflection and that returns values to aggregate; this parameter can also be a dot-delimited sequence of method names which would result in an aggregator based on the ChainedExtractor that is based on an array of corresponding ReflectionExtractor objects
Since:
Coherence 12.1.2


The documentation for this class was generated from the following file:
Copyright © 2000, 2014, Oracle and/or its affiliates. All rights reserved.