00001 /* 00002 * Integer64Min.hpp 00003 * 00004 * Copyright (c) 2000, 2010, 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_MIX_HPP 00017 #define COH_INTEGER64_MIX_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 minimum 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.12 00033 */ 00034 class COH_EXPORT Integer64Min 00035 : public class_spec<Integer64Min, 00036 extends<AbstractInteger64Aggregator> > 00037 { 00038 friend class factory<Integer64Min>; 00039 00040 // ----- constructors --------------------------------------------------- 00041 00042 protected: 00043 /** 00044 * Default constructor (necessary for the PortableObject interface). 00045 */ 00046 Integer64Min(); 00047 00048 /** 00049 * Construct a Integer64Min aggregator. 00050 * 00051 * @param vExtractor the extractor that provides a value in the form 00052 * of any object that is a Number 00053 */ 00054 Integer64Min(ValueExtractor::View vExtractor); 00055 00056 00057 // ----- AbstractAggregator Interface ---------------------------------- 00058 00059 protected: 00060 /** 00061 * {@inheritDoc} 00062 */ 00063 virtual void init(bool fFinal); 00064 00065 /** 00066 * {@inheritDoc} 00067 */ 00068 virtual void process(Object::View v, bool fFinal); 00069 }; 00070 00071 COH_CLOSE_NAMESPACE3 00072 00073 #endif // COH_INTEGER64_MIX_HPP