Class DataSetIndexStatsImpl
- java.lang.Object
-
- org.dashbuilder.dataset.engine.index.stats.DataSetIndexStatsImpl
-
- All Implemented Interfaces:
DataSetIndexStats,DataSetIndexVisitor
public class DataSetIndexStatsImpl extends Object implements DataSetIndexStats, DataSetIndexVisitor
A DataSetIndex stats
-
-
Constructor Summary
Constructors Constructor Description DataSetIndexStatsImpl(DataSetIndex index)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetBuildTime()Time required to "build" (load, create, filter, ...) the data set.longgetIndexSize()Return the estimated memory (in bytes) the data set index is consuming.DataSetIndexElementgetLessReused()An index reference to the less reused element.DataSetIndexElementgetLongestBuild()An index reference to the element that takes more time to get instantiated.DataSetIndexElementgetMostReused()An index reference to the most reused element.intgetNumberOfAggFunctions()Total number of aggregate function calculations executed over the data setintgetNumberOfFilterOps()Total number of filter operations executed over the data setintgetNumberOfGroupOps()Total number of group operations over the data setintgetNumberOfSortOps()Total number of sort operations executed over the data setdoublegetReuseRate()The ratio between the reuse time and the build time.longgetReuseTime()The real usage time this element would have if was not indexed.DataSetIndexElementgetShortestBuild()An index reference to the element that takes less time to get instantiated.StringtoString()StringtoString(String sep)Prints a stats summary.voidvisit(DataSetIndexElement element)
-
-
-
Constructor Detail
-
DataSetIndexStatsImpl
public DataSetIndexStatsImpl(DataSetIndex index)
-
-
Method Detail
-
visit
public void visit(DataSetIndexElement element)
- Specified by:
visitin interfaceDataSetIndexVisitor
-
getReuseRate
public double getReuseRate()
Description copied from interface:DataSetIndexStatsThe ratio between the reuse time and the build time.- Specified by:
getReuseRatein interfaceDataSetIndexStats
-
getBuildTime
public long getBuildTime()
Description copied from interface:DataSetIndexStatsTime required to "build" (load, create, filter, ...) the data set.- Specified by:
getBuildTimein interfaceDataSetIndexStats- Returns:
- Time in nanoseconds
-
getReuseTime
public long getReuseTime()
Description copied from interface:DataSetIndexStatsThe real usage time this element would have if was not indexed.- Specified by:
getReuseTimein interfaceDataSetIndexStats- Returns:
- Time in nanoseconds
-
getLongestBuild
public DataSetIndexElement getLongestBuild()
Description copied from interface:DataSetIndexStatsAn index reference to the element that takes more time to get instantiated.- Specified by:
getLongestBuildin interfaceDataSetIndexStats
-
getShortestBuild
public DataSetIndexElement getShortestBuild()
Description copied from interface:DataSetIndexStatsAn index reference to the element that takes less time to get instantiated.- Specified by:
getShortestBuildin interfaceDataSetIndexStats
-
getLessReused
public DataSetIndexElement getLessReused()
Description copied from interface:DataSetIndexStatsAn index reference to the less reused element.- Specified by:
getLessReusedin interfaceDataSetIndexStats
-
getMostReused
public DataSetIndexElement getMostReused()
Description copied from interface:DataSetIndexStatsAn index reference to the most reused element.- Specified by:
getMostReusedin interfaceDataSetIndexStats
-
getIndexSize
public long getIndexSize()
Description copied from interface:DataSetIndexStatsReturn the estimated memory (in bytes) the data set index is consuming.- Specified by:
getIndexSizein interfaceDataSetIndexStats- Returns:
- The number of bytes
-
getNumberOfGroupOps
public int getNumberOfGroupOps()
Description copied from interface:DataSetIndexStatsTotal number of group operations over the data set- Specified by:
getNumberOfGroupOpsin interfaceDataSetIndexStats
-
getNumberOfFilterOps
public int getNumberOfFilterOps()
Description copied from interface:DataSetIndexStatsTotal number of filter operations executed over the data set- Specified by:
getNumberOfFilterOpsin interfaceDataSetIndexStats
-
getNumberOfSortOps
public int getNumberOfSortOps()
Description copied from interface:DataSetIndexStatsTotal number of sort operations executed over the data set- Specified by:
getNumberOfSortOpsin interfaceDataSetIndexStats
-
getNumberOfAggFunctions
public int getNumberOfAggFunctions()
Description copied from interface:DataSetIndexStatsTotal number of aggregate function calculations executed over the data set- Specified by:
getNumberOfAggFunctionsin interfaceDataSetIndexStats
-
toString
public String toString(String sep)
Description copied from interface:DataSetIndexStatsPrints a stats summary.- Specified by:
toStringin interfaceDataSetIndexStats- Parameters:
sep- The separator string to insert between every stat.
-
-