Class ObjectStatisticsImpl
- java.lang.Object
-
- org.apache.ignite.internal.processors.query.stat.ObjectStatisticsImpl
-
- All Implemented Interfaces:
Cloneable,ObjectStatistics
- Direct Known Subclasses:
ObjectPartitionStatisticsImpl
public class ObjectStatisticsImpl extends Object implements Cloneable, ObjectStatistics
All statistics by some object (table or index).
-
-
Constructor Summary
Constructors Constructor Description ObjectStatisticsImpl(long rowsCnt, Map<String,ColumnStatistics> colNameToStat)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectStatisticsImplclone()Map<String,ColumnStatistics>columnsStatistics()ColumnStatisticscolumnStatistics(String colName)Get column statistics.booleanequals(Object o)inthashCode()longrowCount()<T extends ObjectStatisticsImpl>
Tsubtract(Set<String> cols)Remove specified columns from clone of current ObjectStatistics object.StringtoString()
-
-
-
Constructor Detail
-
ObjectStatisticsImpl
public ObjectStatisticsImpl(long rowsCnt, Map<String,ColumnStatistics> colNameToStat)Constructor.- Parameters:
rowsCnt- Total rows count.colNameToStat- Column names to statistics map.
-
-
Method Detail
-
rowCount
public long rowCount()
- Returns:
- Object rows count.
-
columnStatistics
public ColumnStatistics columnStatistics(String colName)
Get column statistics.- Parameters:
colName- Column name.- Returns:
- Column statistics or
nullif there are no statistics for specified column.
-
columnsStatistics
public Map<String,ColumnStatistics> columnsStatistics()
- Returns:
- Column statistics map.
-
clone
public ObjectStatisticsImpl clone()
-
subtract
public <T extends ObjectStatisticsImpl> T subtract(Set<String> cols)
Remove specified columns from clone of current ObjectStatistics object.- Parameters:
cols- Columns to remove.- Returns:
- Cloned object without specified columns statistics.
-
-