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

E80355-01

coherence/util/aggregator/Integer64Max.hpp

00001 /*
00002 * Integer64Max.hpp
00003 *
00004 * Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
00005 *
00006 * Oracle is a registered trademarks of Oracle Corporation and/or its
00007 * affiliates.
00008 *
00009 * This software is the confidential and proprietary information of Oracle
00010 * Corporation. You shall not disclose such confidential and proprietary
00011 * information and shall use it only in accordance with the terms of the
00012 * license agreement you entered into with Oracle.
00013 *
00014 * This notice may not be removed or altered.
00015 */
00016 #ifndef COH_INTEGER64_MAX_HPP
00017 #define COH_INTEGER64_MAX_HPP
00018 
00019 #include "coherence/lang.ns"
00020 
00021 #include "coherence/util/aggregator/AbstractInteger64Aggregator.hpp"
00022 #include "coherence/util/ValueExtractor.hpp"
00023 
00024 COH_OPEN_NAMESPACE3(coherence,util,aggregator)
00025 
00026 
00027 /**
00028 * Calculates a maximum of numeric values extracted from a set of entries in a
00029 * Map. All the extracted Number objects will be treated as <tt>int64_t</tt>
00030 * values.
00031 *
00032 * @author djl  2008.05.09
00033 */
00034 class COH_EXPORT Integer64Max
00035     : public class_spec<Integer64Max,
00036         extends<AbstractInteger64Aggregator> >
00037     {
00038     friend class factory<Integer64Max>;
00039 
00040     // ----- constructors ---------------------------------------------------
00041 
00042     protected:
00043         /**
00044         * Default constructor (necessary for the PortableObject interface).
00045         */
00046         Integer64Max();
00047 
00048         /**
00049         * Construct a Integer64Max aggregator.
00050         *
00051         * @param vExtractor  the extractor that provides a value in the form
00052         *                    of any object that is aNumber
00053         */
00054         Integer64Max(ValueExtractor::View vExtractor);
00055 
00056         /**
00057         * Construct an Integer64Max that will aggregate values extracted
00058         * from a set of InvocableMap::Entry objects.
00059         *
00060         * @param vsMethod  the name of the method that could be invoked via
00061         *                  reflection and that returns values to aggregate;
00062         *                  this parameter can also be a dot-delimited
00063         *                  sequence of method names which would result in
00064         *                  an aggregator based on the ChainedExtractor that
00065         *                  is based on an array of corresponding
00066         *                  ReflectionExtractor objects
00067         *
00068         * @since Coherence 12.1.2
00069         */
00070         Integer64Max(String::View vsMethod);
00071 
00072     private:
00073         /**
00074         * Blocked copy constructor.
00075         */
00076         Integer64Max(const Integer64Max&);
00077 
00078 
00079     // ----- AbstractAggregator Interface  ----------------------------------
00080 
00081     protected:
00082         /**
00083         * {@inheritDoc}
00084         */
00085         virtual void init(bool fFinal);
00086 
00087         /**
00088         * {@inheritDoc}
00089         */
00090         virtual void process(Object::View v, bool fFinal);
00091     };
00092 
00093 COH_CLOSE_NAMESPACE3
00094 
00095 #endif // COH_INTEGER64_MAX_HPP
Copyright © 2000, 2017, Oracle and/or its affiliates. All rights reserved.