com.facebook.presto.orc.metadata.ColumnStatistics Maven / Gradle / Ivy
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.facebook.presto.orc.metadata;
public class ColumnStatistics
{
private final Long numberOfValues;
private final BooleanStatistics booleanStatistics;
private final IntegerStatistics integerStatistics;
private final DoubleStatistics doubleStatistics;
private final StringStatistics stringStatistics;
private final DateStatistics dateStatistics;
private final DecimalStatistics decimalStatistics;
public ColumnStatistics(
Long numberOfValues,
BooleanStatistics booleanStatistics,
IntegerStatistics integerStatistics,
DoubleStatistics doubleStatistics,
StringStatistics stringStatistics,
DateStatistics dateStatistics,
DecimalStatistics decimalStatistics)
{
this.numberOfValues = numberOfValues;
this.booleanStatistics = booleanStatistics;
this.integerStatistics = integerStatistics;
this.doubleStatistics = doubleStatistics;
this.stringStatistics = stringStatistics;
this.dateStatistics = dateStatistics;
this.decimalStatistics = decimalStatistics;
}
public boolean hasNumberOfValues()
{
return numberOfValues != null;
}
public long getNumberOfValues()
{
return numberOfValues == null ? 0 : numberOfValues;
}
public BooleanStatistics getBooleanStatistics()
{
return booleanStatistics;
}
public DateStatistics getDateStatistics()
{
return dateStatistics;
}
public DoubleStatistics getDoubleStatistics()
{
return doubleStatistics;
}
public IntegerStatistics getIntegerStatistics()
{
return integerStatistics;
}
public StringStatistics getStringStatistics()
{
return stringStatistics;
}
public DecimalStatistics getDecimalStatistics()
{
return decimalStatistics;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy