Interface PivotViewBuilder
- All Superinterfaces:
ViewFactory
- All Known Implementing Classes:
PivotViewBuilderImpl
A builder to create Pivot views. See
ViewFactory.addPivotView(String, Table, Color, String, String, String, AggType)-
Method Summary
Modifier and TypeMethodDescriptiondefault @NotNull PivotViewBuilderIdentifies that the side-panel for this view should start collapsed@NotNull PivotViewBuildercollapseSideView(boolean startCollapsed) Identifies if the side-panel for this view should start collapseddefault @NotNull PivotViewBuildergroupingColumns(@NotNull String... pivotGroupingCols) Adds additional column(s) whose distinct values may be used to define the rows in the resultant pivot-table.@NotNull PivotViewBuildergroupingColumns(@NotNull Collection<String> pivotGroupingCols) Adds additional column(s) whose distinct values may be used to define the rows in the resultant pivot-table.@NotNull PivotViewBuilderDefines a directional link to another view-tab.default @NotNull PivotViewBuilderAdds additional pivot aggregation column(s) whose values may be aggregated in the resultant pivot-table.default @NotNull PivotViewBuilderpivot(@NotNull Collection<String> pivotTypeCols) Adds additional pivot aggregation column(s) whose values may be aggregated in the resultant pivot-table.default @NotNull PivotViewBuilderAdds additional pivot aggregation column(s) whose values may be aggregated in the resultant pivot-table.@NotNull PivotViewBuilderpivot(@Nullable AggType aggType, @Nullable Collection<String> pivotTypeCols) Adds additional pivot aggregation column(s) whose values may be aggregated in the resultant pivot-table.default @NotNull PivotViewBuilderpivotColumns(@NotNull String... pivotCols) Adds additional column(s) whose distinct values may be used to define the columns in the resultant pivot-table.@NotNull PivotViewBuilderpivotColumns(@NotNull Collection<String> pivotCols) Adds additional column(s) whose distinct values may be used to define the columns in the resultant pivot-table.default @NotNull PivotViewBuilderpivotHeatMap(boolean centerZero) Used to enable heatmap coloration of numeric values in the resultant pivot-table.default @NotNull PivotViewBuilderpivotHeatMap(@NotNull Color minColor, @NotNull Color maxColor) Used to enable heatmap coloration of numeric values in the resultant pivot-table.default @NotNull PivotViewBuilderpivotHeatMap(@NotNull PivotHeatMapBuilder builder) default @NotNull PivotViewBuilderpivotHeatMap(@NotNull PivotHeatMapBuilder builder, @Nullable AggType aggType) @NotNull PivotViewBuilderpivotHeatMap(@NotNull PivotHeatMapBuilder builder, @Nullable AggType aggType, @Nullable String... aggCols) @NotNull PivotViewBuilderpivotHeatMap(@Nullable Color minColor, @Nullable Color maxColor, boolean centerZero) Used to enable heatmap coloration of numeric values in the resultant pivot-table.@NotNull PivotViewBuilderpivotMaxStaticCols(int maxCols) Defines the maximum number of columns allowed in a resultant pivot-table derived from a non-live source.@NotNull PivotViewBuilderpivotMaxTickingCols(int maxCols) Defines the maximum number of columns allowed in a resultant pivot-table derived from a live source.@NotNull PivotViewBuilderpivotSetDecimalFormat(@NotNull String pivotColumn, @NotNull PivotRole pivotRole, @NotNull String decimalFormat) Defines display format for a specific source-table column and its role in the current view.@NotNull PivotViewBuilderpivotSetIntegerFormat(@NotNull String pivotColumn, @NotNull PivotRole pivotRole, @NotNull String decimalFormat) Defines display format for a specific source-table column and its role in the current view.@NotNull PivotViewBuilderpivotSetMainDecimalFormat(@NotNull String decimalFormat) Defines display format for aggregated values when the aggregation results in a non-whole number type@NotNull PivotViewBuilderpivotSetMainIntegerFormat(@NotNull String decimalFormat) Defines display format for aggregated values when the aggregation results in a whole number type@NotNull PivotViewBuilderpivotSetRowDecimalFormat(@NotNull String decimalFormat) Defines display format for "Grouping Column(s)" when the column-type is non-whole numeric@NotNull PivotViewBuilderpivotSetRowIntegerFormat(@NotNull String decimalFormat) Defines display format for "Grouping Column(s)" when the column-type is a whole numberdefault @NotNull PivotViewBuilderpivotSortAscending(@NotNull String... pivotSortCols) Identifies columns used for sort-ordering of the resultant table@NotNull PivotViewBuilderpivotSortAscending(@NotNull Collection<String> pivotSortCols) Identifies columns used for sort-ordering of the resultant tabledefault @NotNull PivotViewBuilderpivotSortColumnAscending(@NotNull String... pivotSortCols) Identifies columns used for sort-ordering the columns of the resultant table@NotNull PivotViewBuilderpivotSortColumnAscending(@NotNull Collection<String> pivotSortCols) Identifies columns used for sort-ordering the columns of the resultant tabledefault @NotNull PivotViewBuilderpivotSortColumnDescending(@NotNull String... pivotSortCols) Identifies columns used for sort-ordering the columns of the resultant table@NotNull PivotViewBuilderpivotSortColumnDescending(@NotNull Collection<String> pivotSortCols) Identifies columns used for sort-ordering the columns of the resultant tabledefault @NotNull PivotViewBuilderpivotSortDescending(@NotNull String... pivotSortCols) Identifies columns used for sort-ordering of the resultant table@NotNull PivotViewBuilderpivotSortDescending(@NotNull Collection<String> pivotSortCols) Identifies columns used for sort-ordering of the resultant table@NotNull PivotViewBuilderwithTotals(boolean includeTotals) Identifies if the view should include totals calculations.@NotNull PivotViewBuilderwithTotalsAcross(boolean includeTotals) Identifies if the view should include a totals column.@NotNull PivotViewBuilderwithTotalsDown(boolean includeTotals) Identifies if the view should include a totals row.Methods inherited from interface io.deephaven.multiviewwidget.builder.ViewFactory
addAggView, addAggView, addGlobalFilter, addGlobalFilter, addLeafView, addLeafView, addPivotView, addPivotView, addPivotView, addPivotView, addPivotView, addPivotView, addPivotView, addPivotView, addPlotView, addPlotView, addPlotView, addPlotView, addRollupView, addRollupView, addStaticFilter, build, collapseGlobalFilter, collapseGlobalFilter, getBuilder, globalFilterBucket, globalFilterBucket
-
Method Details
-
groupingColumns
@ScriptApi @NotNull @NotNull PivotViewBuilder groupingColumns(@NotNull @NotNull Collection<String> pivotGroupingCols) Adds additional column(s) whose distinct values may be used to define the rows in the resultant pivot-table. These column names will be shown under the "Grouping Columns" selection table- Parameters:
pivotGroupingCols- additional grouping-column/rowCol names to list- Returns:
- this
PivotViewBuilder
-
groupingColumns
@ScriptApi @NotNull default @NotNull PivotViewBuilder groupingColumns(@NotNull @NotNull String... pivotGroupingCols) Adds additional column(s) whose distinct values may be used to define the rows in the resultant pivot-table. These column names will be shown under the "Grouping Columns" selection table- Parameters:
pivotGroupingCols- additional grouping-column/rowCol names to list- Returns:
- this
PivotViewBuilder
-
pivotColumns
@ScriptApi @NotNull @NotNull PivotViewBuilder pivotColumns(@NotNull @NotNull Collection<String> pivotCols) Adds additional column(s) whose distinct values may be used to define the columns in the resultant pivot-table. These column names will be shown under the "Pivot Column" selection table- Parameters:
pivotCols- additional grouping-column/rowCol names to list- Returns:
- this
PivotViewBuilder
-
pivotColumns
@ScriptApi @NotNull default @NotNull PivotViewBuilder pivotColumns(@NotNull @NotNull String... pivotCols) Adds additional column(s) whose distinct values may be used to define the columns in the resultant pivot-table. These column names will be shown under the "Pivot Column" selection table- Parameters:
pivotCols- additional grouping-column/rowCol names to list- Returns:
- this
PivotViewBuilder
-
pivot
@ScriptApi @NotNull @NotNull PivotViewBuilder pivot(@Nullable @Nullable AggType aggType, @Nullable @Nullable Collection<String> pivotTypeCols) Adds additional pivot aggregation column(s) whose values may be aggregated in the resultant pivot-table. These column names will be shown under the "Aggregation Type" selection menu, along with the aggregation-name- Parameters:
aggType- the aggregation-type that may be applied to each of the pivotTypeColspivotTypeCols- column-name(s) which may have the aggType applied- Returns:
- this
PivotViewBuilder
-
pivot
@ScriptApi @NotNull default @NotNull PivotViewBuilder pivot(@Nullable @Nullable AggType aggType, @NotNull @NotNull String... pivotTypeCols) Adds additional pivot aggregation column(s) whose values may be aggregated in the resultant pivot-table. These column names will be shown under the "Aggregation Type" selection menu, along with the aggregation-name- Parameters:
aggType- the aggregation-type that may be applied to each of the pivotTypeColspivotTypeCols- column-name(s) which may have the aggType applied- Returns:
- this
PivotViewBuilder
-
pivot
@ScriptApi @NotNull default @NotNull PivotViewBuilder pivot(@NotNull @NotNull Collection<String> pivotTypeCols) Adds additional pivot aggregation column(s) whose values may be aggregated in the resultant pivot-table. These column names will be shown under the "Aggregation Type" selection menu- Parameters:
pivotTypeCols- column-name(s) which may have the type-specific default aggregation applied- Returns:
- this
PivotViewBuilder
-
pivot
@ScriptApi @NotNull default @NotNull PivotViewBuilder pivot(@NotNull @NotNull String... pivotTypeCols) Adds additional pivot aggregation column(s) whose values may be aggregated in the resultant pivot-table. These column names will be shown under the "Aggregation Type" selection menu- Parameters:
pivotTypeCols- column-name(s) which may have the type-specific default aggregation applied- Returns:
- this
PivotViewBuilder
-
withTotals
Identifies if the view should include totals calculations.- Parameters:
includeTotals- if the view should include totals column and row.- Returns:
- this
PivotViewBuilder
-
withTotalsDown
Identifies if the view should include a totals row. This is 'true' by default.- Parameters:
includeTotals- if the view should include totals row.- Returns:
- this
PivotViewBuilder
-
withTotalsAcross
Identifies if the view should include a totals column. This is 'false' by default.- Parameters:
includeTotals- if the view should include totals column.- Returns:
- this
PivotViewBuilder
-
pivotSortAscending
@NotNull @ScriptApi @NotNull PivotViewBuilder pivotSortAscending(@NotNull @NotNull Collection<String> pivotSortCols) Identifies columns used for sort-ordering of the resultant table- Parameters:
pivotSortCols- column name(s) which will identify the resultant sorting- Returns:
- this
PivotViewBuilder
-
pivotSortAscending
@NotNull @ScriptApi default @NotNull PivotViewBuilder pivotSortAscending(@NotNull @NotNull String... pivotSortCols) Identifies columns used for sort-ordering of the resultant table- Parameters:
pivotSortCols- column name(s) which will identify the resultant sorting- Returns:
- this
PivotViewBuilder
-
pivotSortDescending
@NotNull @ScriptApi @NotNull PivotViewBuilder pivotSortDescending(@NotNull @NotNull Collection<String> pivotSortCols) Identifies columns used for sort-ordering of the resultant table- Parameters:
pivotSortCols- column name(s) which will identify the resultant sorting- Returns:
- this
PivotViewBuilder
-
pivotSortDescending
@NotNull @ScriptApi default @NotNull PivotViewBuilder pivotSortDescending(@NotNull @NotNull String... pivotSortCols) Identifies columns used for sort-ordering of the resultant table- Parameters:
pivotSortCols- column name(s) which will identify the resultant sorting- Returns:
- this
PivotViewBuilder
-
pivotSortColumnAscending
@NotNull @ScriptApi @NotNull PivotViewBuilder pivotSortColumnAscending(@NotNull @NotNull Collection<String> pivotSortCols) Identifies columns used for sort-ordering the columns of the resultant table- Parameters:
pivotSortCols- column name(s) which will identify the resultant column sorting- Returns:
- this
PivotViewBuilder
-
pivotSortColumnAscending
@NotNull @ScriptApi default @NotNull PivotViewBuilder pivotSortColumnAscending(@NotNull @NotNull String... pivotSortCols) Identifies columns used for sort-ordering the columns of the resultant table- Parameters:
pivotSortCols- column name(s) which will identify the resultant column sorting- Returns:
- this
PivotViewBuilder
-
pivotSortColumnDescending
@NotNull @ScriptApi @NotNull PivotViewBuilder pivotSortColumnDescending(@NotNull @NotNull Collection<String> pivotSortCols) Identifies columns used for sort-ordering the columns of the resultant table- Parameters:
pivotSortCols- column name(s) which will identify the resultant column sorting- Returns:
- this
PivotViewBuilder
-
pivotSortColumnDescending
@NotNull @ScriptApi default @NotNull PivotViewBuilder pivotSortColumnDescending(@NotNull @NotNull String... pivotSortCols) Identifies columns used for sort-ordering the columns of the resultant table- Parameters:
pivotSortCols- column name(s) which will identify the resultant column sorting- Returns:
- this
PivotViewBuilder
-
pivotSetRowDecimalFormat
@NotNull @ScriptApi @NotNull PivotViewBuilder pivotSetRowDecimalFormat(@NotNull @NotNull String decimalFormat) Defines display format for "Grouping Column(s)" when the column-type is non-whole numeric- Parameters:
decimalFormat- a valid numeric format- Returns:
- this
PivotViewBuilder
-
pivotSetRowIntegerFormat
@NotNull @ScriptApi @NotNull PivotViewBuilder pivotSetRowIntegerFormat(@NotNull @NotNull String decimalFormat) Defines display format for "Grouping Column(s)" when the column-type is a whole number- Parameters:
decimalFormat- a valid numeric format- Returns:
- this
PivotViewBuilder
-
pivotSetMainDecimalFormat
@NotNull @ScriptApi @NotNull PivotViewBuilder pivotSetMainDecimalFormat(@NotNull @NotNull String decimalFormat) Defines display format for aggregated values when the aggregation results in a non-whole number type- Parameters:
decimalFormat- a valid numeric format- Returns:
- this
PivotViewBuilder
-
pivotSetMainIntegerFormat
@NotNull @ScriptApi @NotNull PivotViewBuilder pivotSetMainIntegerFormat(@NotNull @NotNull String decimalFormat) Defines display format for aggregated values when the aggregation results in a whole number type- Parameters:
decimalFormat- a valid numeric format- Returns:
- this
PivotViewBuilder
-
pivotSetDecimalFormat
@NotNull @ScriptApi @NotNull PivotViewBuilder pivotSetDecimalFormat(@NotNull @NotNull String pivotColumn, @NotNull @NotNull PivotRole pivotRole, @NotNull @NotNull String decimalFormat) Defines display format for a specific source-table column and its role in the current view. Formats defined by this method will supersede those defined bypivotSetMainDecimalFormat(String)andpivotSetRowDecimalFormat(String), but only for the defined pivotColumn in the defined pivotRole- Parameters:
pivotColumn- a numeric column which will have this format applied in the context defined by pivotRolepivotRole- eitherPivotRole.MainColumnsorPivotRole.RowColumnsdecimalFormat- a valid numeric format- Returns:
- this
PivotViewBuilder
-
pivotSetIntegerFormat
@NotNull @ScriptApi @NotNull PivotViewBuilder pivotSetIntegerFormat(@NotNull @NotNull String pivotColumn, @NotNull @NotNull PivotRole pivotRole, @NotNull @NotNull String decimalFormat) Defines display format for a specific source-table column and its role in the current view. Formats defined by this method will supersede those defined bypivotSetMainIntegerFormat(String)andpivotSetRowIntegerFormat(String), but only for the defined pivotColumn in the defined pivotRole- Parameters:
pivotColumn- a numeric column which will have this format applied in the context defined by pivotRolepivotRole- eitherPivotRole.MainColumnsorPivotRole.RowColumnsdecimalFormat- a valid numeric format- Returns:
- this
PivotViewBuilder
-
pivotHeatMap
@NotNull @ScriptApi @NotNull PivotViewBuilder pivotHeatMap(@Nullable @Nullable Color minColor, @Nullable @Nullable Color maxColor, boolean centerZero) Used to enable heatmap coloration of numeric values in the resultant pivot-table. Min/Max values are calculated on a live basis to determine appropriate gradient scaling- Parameters:
minColor- the color to use for the calculated Min valuemaxColor- the color to use for the calculated Max valuecenterZero- identifies if the center of the heatmap should be forced to zero- Returns:
- this
PivotViewBuilder
-
pivotHeatMap
@NotNull @ScriptApi @NotNull PivotViewBuilder pivotHeatMap(@NotNull @NotNull PivotHeatMapBuilder builder, @Nullable @Nullable AggType aggType, @Nullable @Nullable String... aggCols) -
pivotHeatMap
@NotNull @ScriptApi default @NotNull PivotViewBuilder pivotHeatMap(@NotNull @NotNull PivotHeatMapBuilder builder, @Nullable @Nullable AggType aggType) -
pivotHeatMap
@NotNull @ScriptApi default @NotNull PivotViewBuilder pivotHeatMap(@NotNull @NotNull PivotHeatMapBuilder builder) -
pivotHeatMap
@NotNull @ScriptApi default @NotNull PivotViewBuilder pivotHeatMap(@NotNull @NotNull Color minColor, @NotNull @NotNull Color maxColor) Used to enable heatmap coloration of numeric values in the resultant pivot-table. Min/Max values are calculated on a live basis to determine appropriate gradient scaling, and will not be centered around zero- Parameters:
minColor- the color to use for the calculated Min valuemaxColor- the color to use for the calculated Max value- Returns:
- this
PivotViewBuilder
-
pivotHeatMap
Used to enable heatmap coloration of numeric values in the resultant pivot-table. Min/Max values are calculated on a live basis to determine appropriate gradient scaling. MinColor and MaxColor will be defaulted- Parameters:
centerZero- identifies if the center of the heatmap should be forced to zero- Returns:
- this
PivotViewBuilder
-
pivotMaxStaticCols
Defines the maximum number of columns allowed in a resultant pivot-table derived from a non-live source. In the case that the table will have more columns than are permitted, the build-request will throw an exception- Parameters:
maxCols- maximum number of pivoted-columns in a static table- Returns:
- this
PivotViewBuilder
-
pivotMaxTickingCols
Defines the maximum number of columns allowed in a resultant pivot-table derived from a live source. In the case that the table will have more columns than are permitted, the build-request will throw an exception. If the table grows to be larger than permitted, the table will stop receiving updates- Parameters:
maxCols- maximum number of pivoted-columns in a ticking table- Returns:
- this
PivotViewBuilder
-
collapseSideView
Identifies that the side-panel for this view should start collapsed- Returns:
- this
PivotViewBuilder
-
collapseSideView
Identifies if the side-panel for this view should start collapsed- Returns:
- this
PivotViewBuilder
-
linkTo
Defines a directional link to another view-tab. The cell-defined "Grouping Column(s)" and "Pivot Column" will be used as filters on the linked view- Parameters:
linkTarget- a view-tab to which this table is linked- Returns:
- this
PivotViewBuilder
-