001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.kernel.search;
016    
017    import java.io.Serializable;
018    
019    /**
020     * @author Michael C. Han
021     */
022    public class StatsResults implements Serializable {
023    
024            public StatsResults(String field) {
025                    _field = field;
026            }
027    
028            public long getCount() {
029                    return _count;
030            }
031    
032            public String getField() {
033                    return _field;
034            }
035    
036            public double getMax() {
037                    return _max;
038            }
039    
040            public double getMean() {
041                    return _mean;
042            }
043    
044            public double getMin() {
045                    return _min;
046            }
047    
048            public int getMissing() {
049                    return _missing;
050            }
051    
052            public double getStandardDeviation() {
053                    return _standardDeviation;
054            }
055    
056            public double getSum() {
057                    return _sum;
058            }
059    
060            public double getSumOfSquares() {
061                    return _sumOfSquares;
062            }
063    
064            public void setCount(long count) {
065                    _count = count;
066            }
067    
068            public void setMax(double max) {
069                    _max = max;
070            }
071    
072            public void setMean(double mean) {
073                    _mean = mean;
074            }
075    
076            public void setMin(double min) {
077                    _min = min;
078            }
079    
080            public void setMissing(int missing) {
081                    _missing = missing;
082            }
083    
084            public void setStandardDeviation(double standardDeviation) {
085                    _standardDeviation = standardDeviation;
086            }
087    
088            public void setSum(double sum) {
089                    _sum = sum;
090            }
091    
092            public void setSumOfSquares(double sumOfSquares) {
093                    _sumOfSquares = sumOfSquares;
094            }
095    
096            private long _count;
097            private final String _field;
098            private double _max;
099            private double _mean;
100            private double _min;
101            private int _missing;
102            private double _standardDeviation;
103            private double _sum;
104            private double _sumOfSquares;
105    
106    }