Class AggViewBuilderImpl
java.lang.Object
io.deephaven.multiviewwidget.impl.AggViewBuilderImpl
- All Implemented Interfaces:
AggViewBuilder,ViewFactory
-
Constructor Summary
ConstructorsConstructorDescriptionAggViewBuilderImpl(WidgetBuilder widgetBuilder, String name, Table liveTable, Color tabColor, String... defaultGroupingCols) -
Method Summary
Modifier and TypeMethodDescription@NotNull AggViewBuilderagg(@Nullable AggType aggType, @NotNull Collection<String> aggTypeCols) Defines aggregation-type for identified columns.@NotNull AggViewBuilderaggColumnOrder(@NotNull Collection<String> aggFrontCols) Identifies columns which should be displayed toward the beginning of the resultant columns@NotNull AggViewBuilderaggFormatColumns(@NotNull Collection<String> aggFormatCols) Defines a number of column-level formats which will be applied to the resultant table.@NotNull AggViewBuilderaggFormatColumnWhere(@NotNull String aggFormatCol, @NotNull String aggFormatCondition, String aggFormatColor) Defines a conditional columnar format.@NotNull AggViewBuilderaggSortAscending(@NotNull Collection<String> aggSortCols) Identifies columns used for sort-ordering of the resultant table@NotNull AggViewBuilderaggSortDescending(@NotNull Collection<String> aggSortCols) Identifies columns used for sort-ordering of the resultant table@NotNull AggViewBuildercollapseSideView(boolean startCollapsed) Identifies if the side-panel for this view should start collapsed@NotNull WidgetBuilderGet the parent builder in its current state.@NotNull AggViewBuilderImplgroupingColumns(@NotNull Collection<String> aggGroupingCols) Set the allowable set of grouping columns.@NotNull AggViewBuilderlinkFilterColumn(@NotNull Collection<String> linkColumns) Identifies column(s) used to filter on the linked view.@NotNull AggViewBuilderDefines a directional link to another view-tab.@NotNull AggViewBuilderwithTotals(boolean includeTotals) Identifies if the view should include a totals row.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.deephaven.multiviewwidget.builder.AggViewBuilder
agg, agg, agg, aggColumnOrder, aggColumns, aggColumns, aggFormatColumns, aggSortAscending, aggSortDescending, collapseSideView, groupingColumns, linkFilterColumnMethods 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, globalFilterBucket, globalFilterBucket
-
Constructor Details
-
AggViewBuilderImpl
public AggViewBuilderImpl(WidgetBuilder widgetBuilder, String name, Table liveTable, Color tabColor, String... defaultGroupingCols)
-
-
Method Details
-
groupingColumns
@NotNull public @NotNull AggViewBuilderImpl groupingColumns(@NotNull @NotNull Collection<String> aggGroupingCols) Description copied from interface:AggViewBuilderSet the allowable set of grouping columns. These will be displayed to the user for customization.- Specified by:
groupingColumnsin interfaceAggViewBuilder- Parameters:
aggGroupingCols- the allowable grouping columns.- Returns:
- this
AggViewBuilder
-
agg
@NotNull public @NotNull AggViewBuilder agg(@Nullable @Nullable AggType aggType, @NotNull @NotNull Collection<String> aggTypeCols) Description copied from interface:AggViewBuilderDefines aggregation-type for identified columns. In the case that multiple aggregation-types are desired for a single column, then a call to this builder-method for each aggregation-type will be required. Columns which have non-standard aggregation will have the resultant column-header identify the underlying column-name and agg-type, unless explicitly defined using "targetColumnName=aggregatingColumnName" notation.- Specified by:
aggin interfaceAggViewBuilder- Parameters:
aggType- the desired aggregation-typeaggTypeCols- the column(s) which will have the aggregation-type applied- Returns:
- this
AggViewBuilder
-
withTotals
Description copied from interface:AggViewBuilderIdentifies if the view should include a totals row. This is 'true' by default.- Specified by:
withTotalsin interfaceAggViewBuilder- Parameters:
includeTotals- if the view should include totals.- Returns:
- this
AggViewBuilder
-
aggColumnOrder
@NotNull public @NotNull AggViewBuilder aggColumnOrder(@NotNull @NotNull Collection<String> aggFrontCols) Description copied from interface:AggViewBuilderIdentifies columns which should be displayed toward the beginning of the resultant columns- Specified by:
aggColumnOrderin interfaceAggViewBuilder- Parameters:
aggFrontCols- column name(s) which should be shown near the beginning of the resultant columns- Returns:
- this
AggViewBuilder
-
aggSortAscending
@NotNull public @NotNull AggViewBuilder aggSortAscending(@NotNull @NotNull Collection<String> aggSortCols) Description copied from interface:AggViewBuilderIdentifies columns used for sort-ordering of the resultant table- Specified by:
aggSortAscendingin interfaceAggViewBuilder- Parameters:
aggSortCols- column name(s) which will identify the resultant sorting- Returns:
- this
AggViewBuilder
-
aggSortDescending
@NotNull public @NotNull AggViewBuilder aggSortDescending(@NotNull @NotNull Collection<String> aggSortCols) Description copied from interface:AggViewBuilderIdentifies columns used for sort-ordering of the resultant table- Specified by:
aggSortDescendingin interfaceAggViewBuilder- Parameters:
aggSortCols- column name(s) which will identify the resultant sorting- Returns:
- this
AggViewBuilder
-
aggFormatColumns
@NotNull public @NotNull AggViewBuilder aggFormatColumns(@NotNull @NotNull Collection<String> aggFormatCols) Description copied from interface:AggViewBuilderDefines a number of column-level formats which will be applied to the resultant table. The formatting is identical to that defined byTable.formatColumns(String...)- Specified by:
aggFormatColumnsin interfaceAggViewBuilder- Parameters:
aggFormatCols- Columnar formatting to be applied to the resultant table- Returns:
- this
AggViewBuilder
-
aggFormatColumnWhere
@NotNull public @NotNull AggViewBuilder aggFormatColumnWhere(@NotNull @NotNull String aggFormatCol, @NotNull @NotNull String aggFormatCondition, String aggFormatColor) Description copied from interface:AggViewBuilderDefines a conditional columnar format. SeeTable.formatColumnWhere(String, String, String)- Specified by:
aggFormatColumnWherein interfaceAggViewBuilder- Parameters:
aggFormatCol- the columns which will have conditional formatting appliedaggFormatCondition- the condition used to identify if the color should be appliedaggFormatColor- the color to conditionally apply- Returns:
- this
AggViewBuilder
-
collapseSideView
Description copied from interface:AggViewBuilderIdentifies if the side-panel for this view should start collapsed- Specified by:
collapseSideViewin interfaceAggViewBuilder- Returns:
- this
AggViewBuilder
-
linkTo
Description copied from interface:AggViewBuilderDefines a directional link to another view-tab. By default, current "Group-By" column(s) on the current view will be used as filters on the linked view- Specified by:
linkToin interfaceAggViewBuilder- Parameters:
linkTarget- a view-tab to which this table is linked- Returns:
- this
AggViewBuilder
-
linkFilterColumn
@NotNull public @NotNull AggViewBuilder linkFilterColumn(@NotNull @NotNull Collection<String> linkColumns) Description copied from interface:AggViewBuilderIdentifies column(s) used to filter on the linked view. When following a link from the specified column(s), then the default "Group-By" column(s) will not be used as filters on the linked view- Specified by:
linkFilterColumnin interfaceAggViewBuilder- Parameters:
linkColumns- a column in the existing view, which will be used as a filter on the linked view- Returns:
- this
AggViewBuilder
-
getBuilder
Description copied from interface:ViewFactoryGet the parent builder in its current state. May be used to store intermediary states of the builder in order to separate widget-creation into multiple distinct sections- Specified by:
getBuilderin interfaceViewFactory- Returns:
- the parent builder
-