Package org.terracotta.statistics
Class TableSkeleton
- java.lang.Object
-
- org.terracotta.statistics.TableSkeleton
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
Table,TableValueStatistic
public abstract class TableSkeleton extends Object implements Serializable
- Author:
- Mathieu Carbou
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedTableSkeleton(String... innerStatisticNames)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetRowCount()Collection<String>getRowLabels()<T extends Serializable>
Optional<ValueStatistic<T>>getStatistic(String row, String statisticName)intgetStatisticCount()String[]getStatisticNames()Map<String,ValueStatistic<? extends Serializable>[]>getStatistics()ValueStatistic<? extends Serializable>[]getStatistics(String row)protected <T extends Serializable>
voidinsert(String rowName, String statisticName, StatisticType type, T value)protected <T extends Serializable>
voidinsert(String rowName, String statisticName, ValueStatistic<T> accessor)booleanisEmpty()StringtoString()
-
-
-
Constructor Detail
-
TableSkeleton
protected TableSkeleton(String... innerStatisticNames)
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
-
getRowCount
public int getRowCount()
-
getRowLabels
public Collection<String> getRowLabels()
-
getStatisticNames
public String[] getStatisticNames()
-
getStatisticCount
public int getStatisticCount()
-
getStatistics
public ValueStatistic<? extends Serializable>[] getStatistics(String row)
-
getStatistics
public Map<String,ValueStatistic<? extends Serializable>[]> getStatistics()
-
getStatistic
public <T extends Serializable> Optional<ValueStatistic<T>> getStatistic(String row, String statisticName)
-
insert
protected <T extends Serializable> void insert(String rowName, String statisticName, StatisticType type, T value)
-
insert
protected <T extends Serializable> void insert(String rowName, String statisticName, ValueStatistic<T> accessor)
-
-