Top Description Inners Fields Constructors Methods
org.terracotta.statistics

public Class TableValueStatistic

extends TableSkeleton
implements ValueStatistic<Table>
Class Inheritance
All Implemented Interfaces
org.terracotta.statistics.ValueStatistic
Imports
java.io.Serializable, java.util.Collection, java.util.function.BiConsumer, .Consumer

A statistic that can dynamically construct and provide a table statistic based on provided suppliers
Author
Mathieu Carbou

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
public static interface

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
private
TableValueStatistic(String... innerStatisticNames)

Method Summary

Modifier and TypeMethod and Description
public static TableValueStatistic.Builder
newBuilder(String... innerStatisticNames)

public StatisticType
public Table
Inherited from org.terracotta.statistics.TableSkeleton:
getRowCountgetRowLabelsgetStatisticgetStatisticCountgetStatisticNamesgetStatisticsgetStatisticsinsertinsertisEmptytoString

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides org.terracotta.statistics.TableSkeleton.serialVersionUID.

Constructor Detail

TableValueStatisticback to summary
private TableValueStatistic(String... innerStatisticNames)

Method Detail

newBuilderback to summary
public static TableValueStatistic.Builder newBuilder(String... innerStatisticNames)
typeback to summary
public StatisticType type()

Implements org.terracotta.statistics.ValueStatistic.type.

Returns:StatisticType

Doc from org.terracotta.statistics.ValueStatistic.type.

The statistic type

Annotations
@Override
valueback to summary
public Table value()

Implements org.terracotta.statistics.ValueStatistic.value.

Returns:Table

Doc from org.terracotta.statistics.ValueStatistic.value.

The current statistic value

Annotations
@Override
org.terracotta.statistics back to summary

public Class TableValueStatistic.Builder

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final TableValueStatistic

Constructor Summary

AccessConstructor and Description
private
Builder(String... innerStatisticNames)

Method Summary

Modifier and TypeMethod and Description
public ValueStatistic<Table>
public <T extends Serializable> TableValueStatistic.Builder
registerStatistic(String rowName, String statisticName, ValueStatistic<T> accessor)

public TableValueStatistic.Builder
public TableValueStatistic.Builder
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

statback to summary
private final TableValueStatistic stat

Constructor Detail

Builderback to summary
private Builder(String... innerStatisticNames)

Method Detail

buildback to summary
public ValueStatistic<Table> build()
registerStatisticback to summary
public <T extends Serializable> TableValueStatistic.Builder registerStatistic(String rowName, String statisticName, ValueStatistic<T> accessor)
withRowback to summary
public TableValueStatistic.Builder withRow(String rowName, Consumer<TableValueStatistic.RowBuilder> c)
withRowsback to summary
public TableValueStatistic.Builder withRows(Collection<String> rowNames, BiConsumer<String, TableValueStatistic.RowBuilder> c)
org.terracotta.statistics back to summary

public Interface TableValueStatistic.RowBuilder


Method Summary

Modifier and TypeMethod and Description
public <T extends Serializable> TableValueStatistic.RowBuilder
registerStatistic(String statisticName, ValueStatistic<T> accessor)

Method Detail

registerStatisticback to summary
public <T extends Serializable> TableValueStatistic.RowBuilder registerStatistic(String statisticName, ValueStatistic<T> accessor)