Top Description Inners Fields Constructors Methods
org.terracotta.statistics

public Class Table

extends TableSkeleton
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Imports
java.io.Serializable, java.util.Collection, java.util.function.BiConsumer, .Consumer

A table statistic contains for each row a set of statistics.

Example: The table statistic TopQueries can contain for each prepared statement the total execution time and the count.

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
Table(String... innerStatisticNames)

Method Summary

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

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

Tableback to summary
private Table(String... innerStatisticNames)

Method Detail

newBuilderback to summary
public static Table.Builder newBuilder(String... innerStatisticNames)
org.terracotta.statistics back to summary

public Class Table.Builder

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final Table

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public Table
public <T extends Serializable> Table.Builder
setStatistic(String rowName, String statisticName, StatisticType type, T value)

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

Field Detail

tableback to summary
private final Table table

Constructor Detail

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

Method Detail

buildback to summary
public Table build()
setStatisticback to summary
public <T extends Serializable> Table.Builder setStatistic(String rowName, String statisticName, StatisticType type, T value)
withRowback to summary
public Table.Builder withRow(String rowName, Consumer<Table.RowBuilder> c)
withRowsback to summary
public Table.Builder withRows(Collection<String> rowNames, BiConsumer<String, Table.RowBuilder> c)
org.terracotta.statistics back to summary

public Interface Table.RowBuilder


Method Summary

Modifier and TypeMethod and Description
public <T extends Serializable> Table.RowBuilder
setStatistic(String statisticName, StatisticType type, T value)

Method Detail

setStatisticback to summary
public <T extends Serializable> Table.RowBuilder setStatistic(String statisticName, StatisticType type, T value)